Flux AI Image Generation API
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.
Core Features
Covers the entire process of image generation and editing, supporting various Flux models from basic to professional.
High-Quality Text to Image
Generate high-resolution images from natural language descriptions, supporting various models including Flux Dev, Pro, Kontext, and Flux 2 to meet different precision needs.
Kontext Image Editing
Use Flux Kontext Pro/Max models for context-aware image editing, accurately modifying local details of images while maintaining overall consistency.
Asynchronous Task Architecture
Poll results using Task ID after submitting generation requests; the polling interface is completely free, suitable for batch and background processing scenarios.
Flexible Parameter Control
Supports custom width, height, seed, quantity, and other parameters to precisely control generation results, meeting product-level image production needs.
One request to generate an image
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
}'
Quick Start in 3 Steps
From registration to generating the first image, it only takes a few minutes.
Register and Get API Key
Create an account on the platform and go to the console to generate the API key.
Call the Image Generation API
Use the /flux/images endpoint to submit a generation request and get the Task ID.
Poll for Results
Query the task status through /flux/tasks to get the generated image.
What is Flux Suitable For?
Various application scenarios to meet creative design and product-level image needs.
Creative Design
Quickly generate concept images, illustrations, and design materials to accelerate the creative workflow.
E-commerce Product Images
Batch generate product display images and scene images to reduce shooting costs.
Social Media Content
Quickly produce high-quality graphic content to enhance social media operation efficiency.
Games and Entertainment
Generate game characters and scene concept images to assist game development and content creation.
Image Editing
Use the Kontext model for local editing to modify specific elements in the image.
Corporate Marketing
Quickly produce advertising ideas, marketing materials, and brand visual content.
Flux API Pricing
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
Frequently Asked Questions
Common questions about using the Flux API
What is the difference between Flux Dev and Flux Pro?›
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.
What is the Kontext model for?›
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.
Is polling task status charged?›
No charge. The /flux/tasks interface is completely free, and charges only apply when submitting a generation request.
What image sizes are supported?›
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).
Can images be generated in bulk?›
Yes. Specify the number of images to generate per request using the count parameter, with costs calculated based on the quantity.
Explore More AI Image Services
Ace Data Cloud offers a variety of AI image generation and editing services
Get Started with Flux API
Seamlessly access the entire range of Flux models and easily integrate AI image generation capabilities into your products.
