FLUX.1 Kontext Max
FLUX.1 Kontext Max is the top-tier variant of Black Forest Labs' FLUX.1 Kontext family, designed for in-context image editing where prompts can reference and modify a source image. It supports iterative edits, character and style consistency across generations, and high-fidelity text-to-image synthesis. Use it for product photo editing, creative iteration, and image-to-image workflows that need precise control.
Pricing
Input
$0.072 / image
Output
—
Pay only for what you use. No subscriptions, no minimums.
Specs
- Context
- —
- Max output
- —
- Latency
- Fast
- Category
- Image
Constraints & limits
Aspect ratios
1:1, 16:9, 9:16, 4:3, 3:4
Reference images
Up to 4
Output
Presigned URLs (~24h TTL)
The gateway auto-clamps requests to the model's limits where possible.
Quick start
This sample hits the image generation endpoint. Change base_url and your key, then run it.
from openai import OpenAI
client = OpenAI(
api_key="tl-xxxxxxxxxxxxxxxxxxxxxxxx",
base_url="https://api.thalam.ai/v1",
)
response = client.images.generate(
model="black-forest-labs/flux.1-kontext-max",
prompt="A futuristic city skyline at sunset.",
size="1024x1024",
n=1,
)
print(response.data[0].url)Similar models
Nano Banana Pro
Nano Banana Pro: Google's Gemini 3 Pro Image, frontier text-to-image with best-in-class in-image text.
Seedream 5.0 Pro
The top tier of the Seedream 5 line. Single-image output up to 2K, with multi-image fusion for style and character references.