Flux Kontext Max API

FLUX.1 Kontext Max is the highest-capability Kontext model for complex text-to-image tasks with maximum fidelity.

Modalities
Image, TextImage
Price
$0.08per generation
Model type
Image generation
Released
Oct 13, 2025

Flux Kontext Max overview

Aspect ratio
Sample Flux Kontext Max image generated through AI/ML API: Change the rain to falling snow and make the lettering on the glass read CLOSED. Keep everything else the same

Flux Kontext Max specs

Model ID
flux-pro/kontext/max
Developer
Black Forest Labs
Input
Image, Text
Output
Image
Endpoint
POST https://api.aimlapi.com/v1/images/generations

FLUX.1 Kontext Max is the highest-capability Kontext model for complex text-to-image tasks with maximum fidelity.

Flux Kontext Max API Pricing
- Pricing on request

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.

Use cases

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.

Flux Kontext Max API pricing

Flux Kontext Max pricing in US dollars
UsagePriceUnit
Image generation$0.08per 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.

Flux Kontext Max vs other image models: prices

AI/ML API rates for 5 models, per generation.

AI/ML API prices in USD per generation
ModelPer generation
Flux Kontext Max$0.08
FLUX.1 Dev$0.025
Wan 2.7 Pro Image$0.075
Qwen Image 2.0 Pro$0.075
FLUX.1 Kontext$0.08

How to use the Flux Kontext Max API

View docs

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"

2Make your first request

curl '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 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.",
  "image_url": "https://example.com/input.jpg"
}'

Related articles

All posts

Flux Kontext Max FAQ

What inputs and outputs does Flux Kontext Max support?

Flux Kontext Max takes image, text as input and returns image.

How much does Flux Kontext Max cost?

Flux Kontext Max costs $0.08 per generation on AI/ML API, billed as you go with no subscription.

How is Flux Kontext Max billed?

Flux Kontext Max is billed per generation, a fixed charge per output rather than by prompt length.

Can Flux Kontext Max take an existing image as input?

Yes, Flux Kontext Max accepts image input as well as a text prompt.

Who created Flux Kontext Max?

Flux Kontext Max was built by Black Forest Labs.

How do I call Flux Kontext Max on AI/ML API?

Send a request to https://api.aimlapi.com/v1/images/generations with flux-pro/kontext/max as the model id.

Is Flux Kontext Max available through a single API key?

Yes. Flux Kontext Max is served through AI/ML API, so the same key and endpoint format used for other models applies.

What is Flux Kontext Max designed to do?

It is an image-to-image model built for high-fidelity, context-aware image editing and transformation.

What category of AI model is Flux Kontext Max?

It is an image generation model, specifically focused on image-to-image editing tasks.

What is the Flux Kontext Max model ID?

Use flux-pro/kontext/max as the model parameter. Requests go to https://api.aimlapi.com/v1/images/generations with your AI/ML API key.

Start building with Flux Kontext Max

Flux Kontext Max API

flux-pro/kontext/max

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"

2Make your first request

curl '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 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.",
  "image_url": "https://example.com/input.jpg"
}'