Black Forest Labs · AI Image Generation

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 the entire range of Flux Dev, Pro, and Kontext.

🎨 Text-to-Image & Image-to-Image ⚡ Multiple Models Available 🔗 Unified API Access
6+
Available Flux Models
2
Operation Modes: Generate & Edit
$0.0095
Minimum per Image
0.5
Free Quota

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 through natural language descriptions, supporting various models including Flux Dev, Pro, and Ultra 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

After submitting a generation request, poll for results using Task ID; 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, allowing precise control over generation results to meet product-level image production needs.

Generate Images with a Single Request

Use the standard RESTful API, authenticate via Bearer Token, and quickly submit image generation tasks.

cURL
curl -X POST "https://api.acedata.cloud/flux/images" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "flux-pro-1.1",
"prompt": "A futuristic cityscape at sunset",
"width": 1024,
"height": 1024,
"count": 1
}'

3 Steps to Get Started Quickly

From registration to generating the first image, it only takes a few minutes.

1

Register and Obtain API Key

Create an account on the platform and go to the console to generate an API key.

2

Call the Image Generation API

Use the /flux/images endpoint to submit a generation request and obtain a Task ID.

3

Poll for Results

Check the task status via /flux/tasks to obtain 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 art, illustrations, and design materials to accelerate creative workflows.

🛒

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 art to assist in game development and content creation.

📝

Image Editing

Use Kontext models for local editing, modifying specific elements within images.

🏢

Corporate Marketing

Quickly produce advertising concepts, marketing materials, and brand visual content.

Flux API Pricing

Charged 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.0095 For development and testing
Flux Pro 1.1 $0.015 Recommended · High-Quality Production
Flux Pro $0.019 Professional-Level Generation
Flux Pro 1.1 Ultra $0.023 Ultra High Resolution
Flux Kontext Pro $0.015 Recommended · Context Editing
Flux Kontext Max $0.030 Strongest Editing Capability

For multiple images generated, charged by the count quantity multiplier · 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, with the lowest price ($0.0095/image). Flux Pro and Pro 1.1 are production-level models, offering higher image quality and richer details, recommended for formal 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 accurately modify specific parts of the image without affecting other areas.

Is polling the task status charged?

No charge. The /flux/tasks interface is completely free; 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. The Ultra model supports higher resolutions.

Can images be generated in bulk?

Yes. Specify the number of images to generate per request using the count parameter, with costs calculated by quantity multiplier.

Start Using Flux API Now

Unified access to the entire range of Flux models, easily integrate AI image generation capabilities into your products.