flux-image

v2026.09.24

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.

GitHub
安装命令
npx skhub add acedatacloud/flux-image
Markdown
SKILL.md

Flux Image Generation

Generate and edit images through AceDataCloud's Flux API.

Setup: See authentication for token setup.

Quick Start

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", "callback_url": "https://api.acedata.cloud/health"}'

Async: See async task polling. Poll via POST /flux/tasks with {"id": "..."}.

Models

ModelQualitySpeedSizesBest For
flux-devGoodFast256–1440pxQuick generation (default)
flux-proHighMedium256–1440pxProduction work
flux-2-kleinGoodFastest256–1440pxCompact / lowest-latency Flux 2 generation
flux-2-flexHighFast256–1440pxFaster high-quality generation
flux-2-proHigherMedium256–1440pxBetter prompt following
flux-2-maxHighestSlow256–1440pxMaximum quality generation
flux-kontext-proHighMediumAspect ratiosImage editing
flux-kontext-maxHighestSlowAspect ratiosComplex editing

Generate Images

POST /flux/images
{
  "prompt": "a minimalist logo of a mountain",
  "action": "generate",
  "model": "flux-2-pro",
  "size": "1024x1024",
  "count": 1
}

Size Options

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"

Edit Images

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"
}

Gotchas

  • Use pixel dimensions (e.g., "1024x1024") with dev/pro/flux-2 models, aspect ratios (e.g., "16:9") with kontext models
  • Editing requires kontext models (flux-kontext-pro or flux-kontext-max) — other models only support generation
  • count 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 quality
  • flux-2-max produces highest quality but is slowest — use dev/klein/flex for iteration and max for final output
  • All generation is async — always set "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

发现
标签

此技能尚未发布标签。

版本
最新版本元数据

版本

v2026.09.24

发布时间

Sep 24, 2026

分类

未分类

许可证

NOASSERTION

源路径

skills/flux-image

默认分支

main

最新提交

57cc298

Tree SHA

acaa402