Flux MCP
Use Flux to generate and edit images in the AI Agent through MCP.
Flux AI image generation service.
Your API key is pre-filled in the snippet — copy and run it in your terminal or IDE.
This is only a basic call example. See the full docs for more parameters and advanced usage.
Based on the Flux series models from Black Forest Labs, quickly generate and edit high-quality AI images through a unified API, supporting Flux Dev, Pro, Kontext, and the latest Flux 2 series.
Covers the entire process of image generation and editing, supporting various Flux models from basic to professional.
Generate high-resolution images from natural language descriptions, supporting various models including Flux Dev, Pro, Kontext, and Flux 2 to meet different precision needs.
Use Flux Kontext Pro/Max models for context-aware image editing, accurately modifying local details of images while maintaining overall consistency.
Poll results using Task ID after submitting generation requests; the polling interface is completely free, suitable for batch and background processing scenarios.
Supports custom width, height, seed, quantity, and other parameters to precisely control generation results, meeting product-level image production needs.
Use the standard RESTful API, authenticate with Bearer Token, and quickly submit image generation tasks.
curl -X POST "https://api.acedata.cloud/flux/images" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "flux-pro",
"prompt": "A futuristic cityscape at sunset",
"width": 1024,
"height": 1024,
"count": 1
}'
From registration to generating the first image, it only takes a few minutes.
Create an account on the platform and go to the console to generate the API key.
Use the /flux/images endpoint to submit a generation request and get the Task ID.
Query the task status through /flux/tasks to get the generated image.
Various application scenarios to meet creative design and product-level image needs.
Quickly generate concept images, illustrations, and design materials to accelerate the creative workflow.
Batch generate product display images and scene images to reduce shooting costs.
Quickly produce high-quality graphic content to enhance social media operation efficiency.
Generate game characters and scene concept images to assist game development and content creation.
Use the Kontext model for local editing to modify specific elements in the image.
Quickly produce advertising ideas, marketing materials, and brand visual content.
Billing is based on the number of images generated, with prices depending on the model. The polling interface is completely free.
| Model | Price per Image | Description |
|---|---|---|
| Flux Dev | $0.023 | For development and testing |
| Flux Pro | $0.030 | Professional-grade generation |
| Flux 2 Pro | $0.027 | Recommended · Next generation · Cost-effective |
| Flux 2 Flex | $0.045 | Next generation · Flexible generation |
| Flux 2 Max | $0.063 | Next generation · Highest quality |
| Flux Kontext Pro | $0.045 | Recommended · Context editing |
| Flux Kontext Max | $0.075 | Strongest editing capabilities |
Billing is based on multiples of count when generating multiple images · The polling task status interface /flux/tasks is completely free
Common questions about using the Flux API
Flux Dev is a model for development and testing, priced lower ($0.023/image). Flux Pro and the latest Flux 2 series are production-grade models with higher image quality and more detail, recommended for official products.
The Flux Kontext model supports context-aware image editing—input an existing image along with text instructions to precisely modify specific parts of the image without affecting other areas.
No charge. The /flux/tasks interface is completely free, and charges only apply when submitting a generation request.
Custom width and height parameters are supported. Common sizes include 1024×1024, 1024×1792, 1792×1024, etc. Kontext and Flux 2 series control output based on image ratios (e.g., 1:1, 16:9, 9:16).
Yes. Specify the number of images to generate per request using the count parameter, with costs calculated based on the quantity.
Ace Data Cloud offers a variety of AI image generation and editing services
Seamlessly access the entire range of Flux models and easily integrate AI image generation capabilities into your products.
Flux AI image generation API, generates 1 image per request.
Can be used to query the current Flux task status.
We offer various credit packages. The more you purchase, the higher the discount you receive.
up to46% OFFUse Flux to generate and edit images in the AI Agent through MCP.
Configuration Method
Connect to the current service in Claude Code:
/mcp to check the connection and tool list.export ACEDATACLOUD_API_TOKEN='YOUR_API_TOKEN'
claude mcp add --scope user --transport http 'flux-mcp' 'https://flux.mcp.acedata.cloud/mcp' --header 'Authorization: Bearer ${ACEDATACLOUD_API_TOKEN}'
Provide prompt words, parameter selection, and result processing guidelines for AI Agent in Flux image generation and editing.
Install the current Skill to Claude Code. Project-level configurations are shared across the repository, while user-level configurations apply to all projects on this machine.
npx skills add acedatacloud/skills --skill 'flux-image' -a 'claude-code' --yes