Loading...
Loading...
Compare original and translation side by side
Setup: 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": "..."}
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"}'异步处理: 请查看异步任务轮询。通过接口并传入POST /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 |
| 模型 | 画质 | 速度 | 尺寸 | 适用场景 |
|---|---|---|---|---|
| 良好 | 快速 | 256–1440px | 快速生成(默认) |
| 高 | 中等 | 256–1440px | 生产环境使用 |
| 良好 | 最快 | 256–1440px | 轻量/最低延迟的Flux 2生成 |
| 高 | 快速 | 256–1440px | 更快的高质量生成 |
| 更高 | 中等 | 256–1440px | 更好的提示词遵循度 |
| 最高 | 缓慢 | 256–1440px | 最高画质生成 |
| 高 | 中等 | 宽高比 | 图片编辑 |
| 最高 | 缓慢 | 宽高比 | 复杂编辑 |
POST /flux/images
{
"prompt": "a minimalist logo of a mountain",
"action": "generate",
"model": "flux-2-pro",
"size": "1024x1024",
"count": 1
}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""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"
}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
"1024x1024""16:9"flux-kontext-proflux-kontext-maxcountflux-2-kleinflux-2-max"callback_url"{"id":"<task_id>"}{"ids":[...],"action":"retrieve_batch"}/flux/tasksMCP:| 托管地址:pip install mcp-flux-pro| 查看所有MCP服务器https://flux.mcp.acedata.cloud/mcp