Text to image
Elo · text-to-image arena
Custom pricing for production workloads
FLUX 2 Pro delivers professional-grade text-to-image generation with the highest quality output from Black Forest Labs.
Perfect for designers, marketers, and creative teams seeking speed, consistency, and professional-grade results.
blackforestlabs/flux-2-proPOST https://api.aimlapi.com/v1/images/generationsFlux.2 Pro is the premium iteration of the Flux.2 model family, designed for creators and professionals who demand exceptional control, clarity, and consistency in AI‑generated visuals. Unlike general‑purpose models, Flux.2 Pro is built to serve real‑world production needs, maintaining fidelity across high‑resolution outputs, handling complex natural‑language directives, and preserving visual integrity throughout iterative workflows.
Flux.2 Pro Edit expands these capabilities by offering context‑aware transformation tools that go beyond simple alterations, allowing precise refinement of existing visuals with language‑based instructions that feel intuitive yet meticulously accurate.
Whether generating product images, marketing assets, or campaign visuals, the model interprets prompts with profundo semantic understanding and returns outputs at up to 4 megapixels of detail, robust enough for high‑end campaigns and large‑format use. The underlying design supports multi‑image reference input, meaning users can anchor style, lighting, layout, and character consistency across every image produced. This empowers teams to maintain a unified visual language throughout a series of assets without repetitive manual refinement.
Flux.2 Pro’s proficiency extends to natural language editing as well. Instead of traditional editing interfaces with layers and masks, users describe desired changes from swapping backgrounds to adjusting garment color and the model executes transformations while preserving original context and visual logic.
Flux.2 Pro Edit takes Flux.2 Pro’s generative strength and applies it specifically to editing tasks that require precision and nuance. Rather than applying generic effects, the model interprets the structure and meaning of a visual scene, allowing creators to refine images in ways that feel both creative and deliberate.
This means you can evolve an existing image step by step, improving composition, refining lighting, enhancing realism, or fine‑tuning elements like text and layout, all driven by clear, natural instructions. Flux.2 Pro Edit reduces the friction of traditional editing while amplifying expressive control.
From subtle adjustments to more ambitious revisions, this workflow supports both iterative experimentation and professional polish.
Flux.2 Pro is designed for users who need quality without compromise. It supports brand consistency across batches of assets, preserves character and design continuity, and renders textual elements, such as product labels, banners, and headlines with remarkable clarity.
The result is a tool that feels both powerful and responsive, capable of producing studio‑grade visuals without the steep learning curve of traditional creative software. This makes Flux.2 Pro particularly valuable for advertising teams, content studios, product designers, UX/UI creators, and anyone who relies on compelling imagery as a core part of their workflow.
Human-preference results for FLUX.2 in text to image, next to models available on AI/ML API. Data retrieved Nov 3, 2026.
Elo · text-to-image arena
USD per Megapixel
Arena results for models you can call with the same API key.
Blind pairwise human votes on images generated from text prompts. FLUX.2 ranks #44 of 98.
| Usage | Price | Unit |
|---|---|---|
| Image generation | $0.03 | 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.
AI/ML API rates for 5 models, per Megapixel.
| Model | Per Megapixel |
|---|---|
| $0.03 | |
| $0.014 | |
| $0.015 | |
| $0.015 | |
| $0.05 |
Give your agent the model details, code and documentation.
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"curl 'https://api.aimlapi.com/v1/images/generations' \
-H "Authorization: Bearer $AIMLAPI_KEY" \
-H 'Content-Type: application/json' \
-d '{
"model": "blackforestlabs/flux-2-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": "blackforestlabs/flux-2-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": "blackforestlabs/flux-2-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());FLUX.2 [pro] takes image, text as input and returns image.
FLUX.2 costs $0.03 per Megapixel on AI/ML API, billed as you go with no subscription.
FLUX.2 [pro] is billed per generation, a fixed charge per output rather than by prompt length.
Yes, FLUX.2 [pro] accepts image input as well as a text prompt.
FLUX.2 [pro] was built by Black Forest Labs.
Send a request to https://api.aimlapi.com/v1/images/generations with flux-2-pro as the model id.
Yes. FLUX.2 [pro] is served through AI/ML API, so the same key and endpoint format used for other models applies.
The model id is flux-2-pro.