Text to image
Elo · text-to-image arena
Custom pricing for production workloads
FLUX 2 Max is the maximum-capability text-to-image model from Black Forest Labs for the highest visual fidelity.
FLUX.2 Max is Black Forest Labs' flagship text-to-image model, delivering exceptional photorealism and anatomical accuracy.
flux-2-maxPOST https://api.aimlapi.com/v1/images/generationsFLUX.2 Max is designed for developers and creative teams who need photorealistic consistency, complex scene composition, and natural-language-driven edits. Black Forest Labs positions it as a dual-capability model: equally powerful for generating from scratch and refining existing visuals.
If you’re building professional-grade image tools, whether for e-commerce, game asset pipelines, branded content automation, or editorial illustration, FLUX.2 Max offers an open, controllable, and commercially viable alternative with superior spatial reasoning and style stability across generations.
FLUX.2 [max] reliably interprets complex scene descriptions without collapsing objects or misplacing elements, making it uniquely suited for structured, multi-object compositions where layout precision matters.
Ranked #3 globally for text-to-image (ELO 1167), FLUX.2 [max] surpasses predecessors and competitors in rendering legible, stylized text (e.g., neon signs with custom typography) and lifelike textures, lighting, and depth, critical for product mockups, UI assets, and branded visuals.
With its powerful inpainting and outpainting capabilities, FLUX.2 [max] lets you modify existing images using intuitive prompts while preserving identity, pose, and lighting coherence, enabling true no-code photo refinement at scale.
GPT Image 1.5 wins on ecosystem integration (OpenAI/MSFT) and API polish (streaming, compression controls), but FLUX.2 Max leads in photographic realism, text-in-image accuracy, and open deployment. If you prioritize visual quality over turnkey enterprise tooling, FLUX.2 Max is often the better fit.
Marketplace-ready product photos are a documented use case for Flux 2 Max, with the model described as suited to polished, consistent product imagery for showcasing products.
It is also documented for marketing visuals and ad creative, including scalable ad creatives for social campaigns and key visuals for campaigns.
Character-consistent campaigns and brand imagery are another stated use case, with references to maintaining character consistency across scenes and brand-accurate visual identity.
Creative production workflows are also mentioned, including concept development, character design, environment generation, final frames, and print-ready or editorial assets.
Human-preference results for FLUX.2 Max 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 Max ranks #35 of 98.
| Usage | Price | Unit |
|---|---|---|
| Image generation | $0.07 | per Megapixel |
| Additional | $0.039 | per additional megapixel |
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.07 | |
| $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": "flux-2-max",
"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-2-max",
"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-2-max",
"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 Max takes image, text as input and returns image.
FLUX.2 Max costs $0.07 per Megapixel on AI/ML API, billed as you go with no subscription.
FLUX.2 Max is billed per generation, a fixed charge per output rather than by prompt length.
Yes, FLUX.2 Max accepts image input as well as a text prompt.
FLUX.2 Max was built by Black Forest Labs.
Send a request to https://api.aimlapi.com/v1/images/generations with flux-2-max as the model id.
Yes. FLUX.2 Max is served through AI/ML API, so the same key and endpoint format used for other models applies.
No. FLUX.2 Max is an image generation model, not a conversational model.
It is Black Forest Labs' maximum-capability text-to-image model, built for the highest visual fidelity.
Use flux-2-max as the model parameter. Requests go to https://api.aimlapi.com/v1/images/generations with your AI/ML API key.