Loading...
Loading...
Generate and edit images with Flux (Black Forest Labs) via AceDataCloud API. Use when creating images from text prompts, editing existing images with text instructions, or when high-quality image generation is needed. Supports multiple Flux models including dev, pro, Flux 2 variants, and kontext for editing.
npx skill4agent add acedatacloud/skills flux-imageSetup: See authentication for token setup.
curl -X POST https://api.acedata.cloud/flux/images \
-H "Authorization: Bearer $ACEDATACLOUD_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"prompt": "a cat wearing a space helmet, photorealistic", "model": "flux-dev", "callback_url": "https://api.acedata.cloud/health"}'Async: See async task polling. Poll viawithPOST /flux/tasks.{"id": "..."}
| Model | Quality | Speed | Sizes | Best For |
|---|---|---|---|---|
| Good | Fast | 256–1440px | Quick generation (default) |
| High | Medium | 256–1440px | Production work |
| Good | Fastest | 256–1440px | Compact / lowest-latency Flux 2 generation |
| High | Fast | 256–1440px | Faster high-quality generation |
| Higher | Medium | 256–1440px | Better prompt following |
| Highest | Slow | 256–1440px | Maximum quality generation |
| High | Medium | Aspect ratios | Image editing |
| Highest | Slow | Aspect ratios | Complex editing |
POST /flux/images
{
"prompt": "a minimalist logo of a mountain",
"action": "generate",
"model": "flux-2-pro",
"size": "1024x1024",
"count": 1
}"1024x1024""1344x768""768x1344""1024x576""576x1024""1:1""16:9""9:16""4:3""3:4""3:2""2:3""21:9""9:21"POST /flux/images
{
"prompt": "change the background to a beach sunset",
"action": "edit",
"image_url": "https://example.com/photo.jpg",
"model": "flux-kontext-pro"
}"1024x1024""16:9"flux-kontext-proflux-kontext-maxcountflux-2-kleinflux-2-max"callback_url"/flux/tasks{"id":"<task_id>"}{"ids":[...],"action":"retrieve_batch"}MCP:| Hosted:pip install mcp-flux-pro| See all MCP servershttps://flux.mcp.acedata.cloud/mcp