Flux pro overview
Flux pro by Black Forest Labs
Discover FLUX.1 [pro] API, the cutting-edge AI image generation model that delivers stunning results for professional applications.
Flux pro specs
- Model ID
flux-pro- Developer
- Black Forest Labs
- Input
- Text
- Output
- Text, Image
- Endpoint
POST https://api.aimlapi.com/v1/images/generations
Basic Information
Developer/Creator: Black Forest Labs
Model Type: Text-to-Image Generation
Overview:
FLUX.1 [pro] is a state-of-the-art AI model designed for professional-grade image generation from text descriptions. It pushes the boundaries of visual creativity and quality, delivering stunning results that rival human-created artwork.
Key Features:
- 12 billion parameter model for exceptional detail and quality
- Hybrid architecture combining multimodal and parallel diffusion transformer blocks
- Rotary positional embeddings and parallel attention layers for enhanced performance
- Unmatched image quality, outperforming popular models like Midjourney v6.0, DALL·E 3 (HD), and SD3-Ultra
- FLUX models can generate images in various sizes and resolutions, from 0.1 megapixel up to 2 megapixels.
Intended Use:
FLUX.1 [pro] is tailored for professional applications where top-tier image generation is essential. It caters to graphic designers, digital artists, creative professionals, and anyone seeking to harness the power of AI for their visual projects.
Architecture:
FLUX.1 [pro] utilizes a hybrid architecture that combines multimodal and parallel diffusion transformer blocks, scaling up to 12 billion parameters. This innovative approach leverages flow matching to improve upon previous diffusion models, delivering superior performance and hardware efficiency.
Training Data:
The model was trained on a diverse dataset of high-quality images and associated text descriptions, ensuring a broad understanding of visual concepts and the ability to generate a wide range of subjects and styles.
Use cases
Generate marketing visuals, high-fidelity concept art, or publication-ready graphics.
Produce large-format images (up to 4 MP) for print, editorial, or banner applications.
Utilize fast generation speed to explore multiple versions in real-time design workflows.
Inpaint, outpaint, or stylize existing images using integrated Flux toolset.
Flux pro API pricing
| Usage | Price | Unit |
|---|---|---|
| Image generation | $0.05 | per Megapixel |
The final price depends on request parameters such as resolution or duration.
Prices from the AI/ML API price list, checked on Nov 4, 2026.
Flux pro vs other image models: prices
AI/ML API rates for 5 models, per Megapixel.
| Model | Per Megapixel |
|---|---|
| $0.05 | |
| $0.014 | |
| $0.015 | |
| $0.015 | |
| $0.05 |
How to use the Flux pro API
View docsBuild with your agent
Give your agent the model details, code and documentation.
1Get your API key
Create API keyexport AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"2Make your first request
curl 'https://api.aimlapi.com/v1/images/generations' \
-H "Authorization: Bearer $AIMLAPI_KEY" \
-H 'Content-Type: application/json' \
-d '{
"model": "flux-pro",
"prompt": "A ginger cat asleep on a stack of exactly three hardcover books in a rainy bookshop window at dusk. Gold lettering on the glass reads OPEN LATE. Warm lamp light inside, raindrops and blurred neon reflections outside, 35mm film photo."
}'import os
import requests
headers = {
"Authorization": f"Bearer {os.environ['AIMLAPI_KEY']}",
"Content-Type": "application/json",
}
payload = {
"model": "flux-pro",
"prompt": "A ginger cat asleep on a stack of exactly three hardcover books in a rainy bookshop window at dusk. Gold lettering on the glass reads OPEN LATE. Warm lamp light inside, raindrops and blurred neon reflections outside, 35mm film photo."
}
response = requests.post("https://api.aimlapi.com/v1/images/generations", headers=headers, json=payload, timeout=120)
response.raise_for_status()
print(response.json())const response = await fetch("https://api.aimlapi.com/v1/images/generations", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.AIMLAPI_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"model": "flux-pro",
"prompt": "A ginger cat asleep on a stack of exactly three hardcover books in a rainy bookshop window at dusk. Gold lettering on the glass reads OPEN LATE. Warm lamp light inside, raindrops and blurred neon reflections outside, 35mm film photo."
}),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());Related articles
Flux pro FAQ
What inputs and outputs does Flux pro support?
Flux pro takes image, text as input and returns image.
How much does Flux pro cost?
Flux pro costs $0.05 per Megapixel on AI/ML API, billed as you go with no subscription.
How is Flux pro billed?
Flux pro is billed per generation, a fixed charge per output rather than by prompt length.
Can Flux pro take an existing image as input?
Yes, Flux pro accepts image input as well as a text prompt.
Who created Flux pro?
Flux pro was built by Black Forest Labs.
How do I call Flux pro on AI/ML API?
Send a request to https://api.aimlapi.com/v1/images/generations with flux-pro as the model id.
Is Flux pro available through a single API key?
Yes. Flux pro is served through AI/ML API, so the same key and endpoint format used for other models applies.
What is the model identifier for Flux Pro on the API?
Its model ID is flux-pro.



.webp)