DiffusionBear
DiffusionBear Labs · v0.5.1 pipeline

Anima → RMBG → FLUX: an anime scene, 100% on your M1

Four original chibi parts drawn by Anima Turbo 2B, cut out with RMBG-3.0, then composed into one scene by FLUX.2-klein 9B — every step local, every asset an original design (no franchise characters), timed on a 2021 MacBook Pro M1 16 GB.

Hero — original RGBA part generated with Anima Turbo 2B
Hero Anima Turbo 2B · 4 steps 18.45 s on M1 16 GB 512×512 → RMBG-3.0 RGBA
Companion creature — original RGBA part generated with Anima Turbo 2B
Companion creature Anima Turbo 2B · 4 steps 14.79 s on M1 16 GB 512×512 → RMBG-3.0 RGBA
Magic staff — original RGBA part generated with Anima Turbo 2B
Magic staff Anima Turbo 2B · 4 steps 14.76 s on M1 16 GB 512×512 → RMBG-3.0 RGBA
Energy orb — original RGBA part generated with Anima Turbo 2B
Energy orb Anima Turbo 2B · 4 steps 14.70 s on M1 16 GB 512×512 → RMBG-3.0 RGBA
Final anime scene composed by FLUX.2-klein 9B from the four RGBA parts

Final compose — FLUX.2-klein 9B · 4 steps × 3 passes (2 refs each, 16 GB safety cap) · 1055.03 s total on M1 pass 1: 275.83 spass 2: 400.14 spass 3: 379.06 s

Why this pipeline

All images on this page were generated by DiffusionBear v0.5.1 itself on a 16 GB M1. Prompt + params are in each gallery sidecar (JSON) — open the image in the app Browser tab.

Reproduce it from an agent, via the local API

DiffusionBear exposes a loopback REST API. Create a dbk_… key in Parameters → API, then drive the same pipeline from any agent (Claude Code, Cursor, Cline, your own scripts):

# 1) generate a part with Anima (4 steps)
curl -s -X POST http://127.0.0.1:8001/api/generate \
  -H "X-API-Key: $DBK" -H "Content-Type: application/json" \
  -d '{"model":"anima-turbo","prompt":"original chibi hero, orange scarf, cel shading, white background, no franchise characters","width":512,"height":512,"steps":4,"seed":42}'

# 2) cut it out with RMBG-3.0
curl -s -X POST http://127.0.0.1:8001/api/images/<id>/remove-background \
  -H "X-API-Key: $DBK"

# 3) compose the scene with FLUX.2-klein 9B (2 refs per call on 16 GB)
curl -s -X POST http://127.0.0.1:8001/api/generate \
  -H "X-API-Key: $DBK" -H "Content-Type: application/json" \
  -d '{"model":"flux2-klein-9b","prompt":"vibrant anime manga panel, chibi hero with orange scarf next to a pastel creature, cel shading, sunset rooftop","width":768,"height":1024,"steps":4,"reference_images":["<cutout1.png>","<cutout2.png>"]}'

# 4) poll the job, then fetch the image
curl -s http://127.0.0.1:8001/api/jobs/<job_id> -H "X-API-Key: $DBK"

Full endpoint reference: agentic-api.html and assets/agentic-api-reference.md. The MCP server (mcp-server/) wraps the same API for Claude Desktop / Cursor.