Text to image
Elo · text-to-image arena
Custom pricing for production workloads
FLUX.1 Kontext [pro] enables fast, consistent multi-step image editing and generation with text and image inputs.
FLUX.1 Kontext [pro] is a fast, versatile model for local edits, in-context generation, and text-to-image creation.
blackforestlabs/flux-kontext-proPOST https://api.aimlapi.com/v1/images/generationsFLUX.1 Kontext Pro is Black Forest Labs’ breakthrough in-context image model. Unlike traditional text-to-image systems that start from scratch every time, Kontext Pro understands both your text prompt and any reference images you feed it. It performs surgical local edits, full-scene transformations, and maintains perfect character, style, and identity across multiple iterations.
Built on a rectified flow transformer architecture with 12 billion parameters, it delivers FLUX-level visual quality while pioneering true iterative workflows. You can edit an image once, then edit the result again, and again without losing facial features, clothing details, lighting mood, or brand style.
It replaces clunky multi-model pipelines with a single, reliable endpoint. No more stitching together separate tools for generation, editing, and consistency checks. Just one fast, powerful call.
Compared to ByteDance BAGEL (40+ seconds) or OpenAI GPT-4o image generation, FLUX.1 Kontext Pro wins on speed, consistency, and cost every single time.
FLUX models (shown in purple) consistently achieve top performance with ELO ratings often exceeding 1100, demonstrating the strong capabilities of the Flux.1 Kontext model family in various image generation and editing benchmarks.
Feed it a reference image (or several) plus a text prompt, and watch magic happen. The model intelligently merges visual context with your instructions, perfect for “change the background to a cyberpunk city but keep the character exactly the same.”
Want to tweak just the hat on your character while leaving everything else untouched? FLUX.1 Kontext Pro does regional edits with surgical precision. No more “everything changed” disasters.
This is where Kontext Pro destroys the competition. Facial features, body type, clothing details, art style, everything stays locked in across completely different scenes and multiple editing turns. Marketers building avatar libraries or game devs creating consistent characters finally get a model that actually delivers.
Human-preference results for Flux.1 Kontext in text to image, next to models available on AI/ML API. Data retrieved Nov 3, 2026.
Elo · text-to-image arena
USD per generation
Arena results for models you can call with the same API key.
Blind pairwise human votes on images generated from text prompts. Flux.1 Kontext ranks #71 of 98.
| Usage | Price | Unit |
|---|---|---|
| Image generation | $0.04 | per generation |
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 generation.
| Model | Per generation |
|---|---|
| $0.04 | |
| $0.025 | |
| $0.04 | |
| $0.04 | |
| $0.04 |
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-kontext-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-kontext-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-kontext-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.1 Kontext [pro] takes image, text as input and returns image.
Flux.1 Kontext [pro] became available on May 29, 2025.
Flux.1 Kontext costs $0.04 per generation on AI/ML API, billed as you go with no subscription.
Flux.1 Kontext [pro] is billed per generation, a fixed charge per output rather than by prompt length.
Yes, Flux.1 Kontext [pro] accepts image input as well as a text prompt.
Flux.1 Kontext [pro] was built by Black Forest Labs.
Send a request to https://api.aimlapi.com/v1/images/generations with blackforestlabs/flux-kontext-pro as the model id.
Yes. Flux.1 Kontext [pro] is served through AI/ML API, so the same key and endpoint format used for other models applies.
Use blackforestlabs/flux-kontext-pro as the model parameter. Requests go to https://api.aimlapi.com/v1/images/generations with your AI/ML API key.