What is Flux Kontext Max API?
FLUX.1 Kontext Max is the highest-capability Kontext model for complex text-to-image tasks with maximum fidelity.
Technical Specifications
- Supported inputs: Image, Text
- Output: Image
- Endpoint: /images/generations
Performance Benchmarks
[embed]
Flux Kontext Max API Pricing
- Pricing on request
Where to Use Flux Kontext Max
High-volume image generation
Produce product visuals, thumbnails, and marketing assets programmatically at scale.
Creative and concept art
Turn text prompts into illustrations, mockups, and design explorations.
Image editing and variations
Provide a reference image to guide edits, restyles, or variations.
Code Sample
[embed]
Flux Kontext Max is documented for context-aware image editing, especially modifying existing images while preserving overall scene coherence and consistency. It is also suited to typography-heavy edits, where prompt adherence and typography generation are emphasized. Another documented use is high-fidelity editing of complex, multi-element scenes, including precise local changes and composition control.
import requests r = requests.post( "https://api.aimlapi.com/v1/images/generations", headers={"Authorization": "Bearer " + AIMLAPI_KEY}, json={ "model": "flux-pro/kontext/max", "prompt": "A cat holding a sign that says hello" }, ) print(r.json())
const r = 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-pro/kontext/max", "prompt": "A cat holding a sign that says hello" }), }); console.log(await r.json());
curl -X POST https://api.aimlapi.com/v1/images/generations \ -H "Authorization: Bearer $AIMLAPI_KEY" \ -H "Content-Type: application/json" \ -d '{"model":"flux-pro/kontext/max","prompt":"A cat holding a sign that says hello"}'
OpenAI-compatible — swap the base URL and it works with your existing SDK.
| Type | Price |
|---|---|
| Output | |
| Model | Input | Output | Context | Best for |
|---|---|---|---|---|
Flux Kontext Max This page | Image generation at scale | |||
| Image generation at scale | ||||
| Image generation at scale | ||||
| Image generation at scale | ||||
| Image generation at scale |
Flux Kontext Max takes image, text as input and returns image.
Flux Kontext Max is priced at $0.104 / gen (variable).
Flux Kontext Max is billed per generation — a fixed charge per output rather than by prompt length.
Yes, Flux Kontext Max accepts image input as well as a text prompt.
Flux Kontext Max was built by Black Forest Labs.
Send a request to https://api.aimlapi.com/v1/images/generations with flux-pro/kontext/max as the model id.
Yes. Flux Kontext Max is served through AI/ML API, so the same key and endpoint format used for other models applies.
It is an image-to-image model built for high-fidelity, context-aware image editing and transformation.
It is an image generation model, specifically focused on image-to-image editing tasks.