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.
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
- Anima Turbo 2B is the fast anime engine: ~15–18 s per 512×512 part at 4 steps on M1 16 GB (see the benchmark).
- RMBG-3.0 (Bria, 4-bit MLX) turns each part into a clean RGBA cutout in seconds — no green screen.
- FLUX.2-klein 9B merges the cutouts into one coherent scene with multi-reference conditioning. On 16 GB the app caps FLUX.2 at 2 references per pass for RAM safety, so the scene is composed in 3 quick passes.
- Licence-safe by design: prompts ask for original characters only — no Pokémon, no existing IP — so you can publish what you make.
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.