API Reference
POST /api/upload
Content-Type: multipart/form-data; field=image
→ { "image_id": "abc123ef.png",
"url": "/uploads/abc123ef.png",
"comfy_name": "abc123ef.png" }
GET /api/images
→ [{ "image_id": "...", "url": "...", "original_name": "..." }]
POST /api/generate
{ "mode": "txt2img",
"prompt": "bedroom, soft lighting",
"steps": 25, "cfg": 7.0,
"lora_strength": 0.4, "seed": -1,
"width": 512, "height": 512 }
POST /api/generate
{ "mode": "lineart",
"image_id": "abc123ef.png",
"prompt": "bedroom, soft lighting",
"controlnet_strength": 1.0,
"lora_strength": 0.4,
"steps": 25, "seed": -1 }