技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
flux-image【数据与研究】Generate and edit Flux images or generate FLUX 3 videos 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 image models plus text/image/video generation and temporary owned video drafts.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Generate and edit images through AceDataCloud's Flux API.
clawhub install @acedatacloud/flux. Check that the ClawHub publisher is @acedatacloud.Bearer ; a platform-... management token is not a service API key./flux/images and /flux/tasks. Advanced workflows below may call additional routes.ACEDATACLOUD_API_TOKEN=your_api_key_here in ~/.openclaw/.env, then restart the Gateway and start a new session. For a direct terminal test, run export ACEDATACLOUD_API_TOKEN="your_api_key_here" in that shell. Never put the key in a prompt or commit an .env file.Illustrated key setup, first run, and troubleshooting · Token details
curl -X POST https://api.acedata.cloud/flux/images \
-H "Authorization: Bearer $ACEDATACLOUD_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"action": "generate", "prompt": "a cat wearing a space helmet, photorealistic", "model": "flux-dev", "async": true}'
Async: See async task polling. Poll via
POST /flux/taskswith{"id": "..."}.
| Model | Quality | Speed | Sizes | Best For |
|---|---|---|---|---|
flux-dev | Good | Fast | 256–1440px | Quick generation (default) |
flux-pro | High | Medium | 256–1440px | Production work |
flux-2-klein | Good | Fastest | 256–1440px | Compact / lowest-latency Flux 2 generation |
flux-2-flex | High | Fast | 256–1440px | Faster high-quality generation |
flux-2-pro | Higher | Medium | 256–1440px | Better prompt following |
flux-2-max | Highest | Slow | 256–1440px | Maximum quality generation |
flux-kontext-pro | High | Medium | Aspect ratios | Image editing |
flux-kontext-max | 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
}
For dev/pro/flux-2 (pixel dimensions):
"1024x1024", "1344x768", "768x1344", "1024x576", "576x1024"For kontext (aspect ratios):
"1:1", "16:9", "9:16", "4:3", "3:4", "3:2", "2:3", "21:9", "9:21"Use kontext models for text-guided image editing:
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") with dev/pro/flux-2 models, aspect ratios (e.g., "16:9") with kontext modelsflux-kontext-pro or flux-kontext-max) — other models only support generationcount parameter generates multiple images in one request (increases cost proportionally)flux-2-klein is the lightest Flux 2 model — useful when latency matters more than peak qualityflux-2-max produces highest quality but is slowest — use dev/klein/flex for iteration and max for final output"callback_url" to get a task id immediately, then poll /flux/tasks using {"id":"<task_id>"} or {"ids":[...],"action":"retrieve_batch"}MCP:
pip install mcp-flux-pro| Hosted:https://flux.mcp.acedata.cloud/mcp| See all MCP servers
POST /flux/videos generates videos with action=generate (default). Use mode=t2v/i2v/v2v/draft_enhance. T2V needs prompt; I2V also needs keyframes; V2V also needs start_video. Normal video requests support hd/fhd/qhd/uhd, integer duration 5–20 seconds (V2V up to 15) or auto, draft and generate_audio flags. Preserve explicit false.
Draft enhancement uses an owned platform draft_task_id and requires its temporary cache to remain available. It does not promise indefinite retention.
Companion MCP tool: flux_generate_video. CLI command: flux video --request-file. MCP/CLI requests submit asynchronously by default and are polled through the existing /flux/tasks endpoint. For raw HTTP requests, set async=true to receive a task ID immediately. Generation charges use actual output seconds; do not substitute requested duration for measured final usage.