Flux dev overview
Flux dev by Black Forest Labs
Explore FLUX.1 [dev] API, a cutting-edge image generation model designed for developers, featuring high-quality outputs and open weights.
Flux dev specs
- Model ID
flux/dev- 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: Image Generation (Text-to-Image)
Overview:
FLUX.1 [dev] is a state-of-the-art image generation model that utilizes a 12 billion parameter rectified flow transformer architecture. It is designed to generate high-quality images from textual descriptions, making it a powerful tool for developers and creatives.
Key Features:
- High-Quality Output: Produces images with exceptional detail and realism.
- Prompt Adherence: Effectively follows complex prompts, maintaining contextual integrity.
- Open Weights: Provides open access to model weights, encouraging research and experimentation.
- Guidance Distillation: Utilizes advanced training techniques for improved efficiency.
- Versatile Applications: Suitable for personal, scientific, and commercial use under specific licensing.
- FLUX models can generate images in various sizes and resolutions, from 0.1 megapixel up to 2 megapixels.
Intended Use:
FLUX.1 [dev] is ideal for developers and artists looking to create unique visual content from text prompts. It can be used in various applications, including graphic design, advertising, content creation, and research.
Language Support:
The model primarily supports English but can handle prompts in multiple languages to varying degrees.
Architecture:
FLUX.1 [dev] employs a rectified flow transformer architecture, which integrates multimodal and parallel diffusion transformer blocks. This design allows for efficient processing and generation of images from text.
Use cases
- Research & experimentation: Ideal for academic or personal creative prototyping
- ComfyUI workflows: Local inference, image editing, and tweaking pipelines
- Prompt engineering: Excellent fidelity for testing creative prompts
- Diffusers integration: Plug into Python pipelines for fine-grained control
Flux dev API pricing
| Usage | Price | Unit |
|---|---|---|
| Image generation | $0.025 | 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 dev vs other image models: prices
AI/ML API rates for 5 models, per Megapixel.
| Model | Per Megapixel |
|---|---|
| $0.025 | |
| $0.014 | |
| $0.015 | |
| $0.015 | |
| $0.05 |
How to use the Flux dev 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/dev",
"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/dev",
"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/dev",
"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 dev FAQ
What inputs and outputs does Flux dev support?
Flux dev takes image, text as input and returns image.
How much does Flux dev cost?
Flux dev costs $0.025 per Megapixel on AI/ML API, billed as you go with no subscription.
How is Flux dev billed?
Flux dev is billed per generation, a fixed charge per output rather than by prompt length.
Can Flux dev take an existing image as input?
Yes, Flux dev accepts image input as well as a text prompt.
Who created Flux dev?
Flux dev was built by Black Forest Labs.
How do I call Flux dev on AI/ML API?
Send a request to https://api.aimlapi.com/v1/images/generations with flux/dev as the model id.
Is Flux dev available through a single API key?
Yes. Flux dev is served through AI/ML API, so the same key and endpoint format used for other models applies.
What is the Flux dev model ID?
Use flux/dev as the model parameter. Requests go to https://api.aimlapi.com/v1/images/generations with your AI/ML API key.



.webp)