FLUX.1 Kontext [max] API

Highest-capability Kontext image generation and editing model.

Modalities
Text, ImageText, Image
Price
$0.08per generation
Model type
Image generation
Released
Jun 12, 2026

FLUX.1 Kontext overview

Aspect ratio
Sample FLUX.1 Kontext image generated through AI/ML API: A ginger cat asleep on a stack of exactly three hardcover books in a rainy bookshop window at dusk. Gold lette

FLUX.1 Kontext by Black Forest Labs

FLUX.1 Kontext [max] delivers strong prompt alignment and refined typography generation for advanced image creation.

FLUX.1 Kontext specs

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

Flux.1 Kontext Max Description

Black Forest Labs' FLUX.1 Kontext Max is an experimental AI model for precision image generation and editing. With advanced rectified flow architecture, it delivers maximum performance for professional creative workflows requiring superior quality and consistency.

Performance Benchmarks

FLUX.1 Kontext Max is optimized for maximum fidelity image generation and surgical editing capabilities.

  • Generation Speed: 10-12 seconds per image
  • Architecture: Generative flow matching model with sequence concatenation and double stream blocks

Performance Metrics

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.

Key Capabilities

FLUX.1 Kontext Max delivers unprecedented precision for complex visual content creation workflows.

  • Maximum Performance: Enhanced compute allocation for improved prompt adherence and typography generation compared to Pro and Dev variants
  • Character Consistency: Superior preservation of facial features and object identity across different environments using AuraFace embeddings
  • Surgical Editing: Localized modifications to specific elements while preserving surrounding image integrity
  • Typography Control: Exceptional text generation and replacement capabilities with precise font style retention
  • Iterative Refinement: Step-by-step editing with minimal quality degradation across editing sequences

Optimal Use Cases

  • Professional Creative Work: High-end marketing materials, brand assets, and commercial photography requiring maximum quality
  • Long-form Content: Extended narratives, storyboards, and multi-scene presentations with consistent visual elements
  • Brand Management: Product placement across multiple contexts with perfect integration and lighting adaptation
  • Typography-Heavy Projects: Marketing assets, signage updates, and text-based visual communications
  • Character-Driven Storytelling: Maintaining protagonist identity across diverse scenes and environments for narrative consistency

Text-to-Image Parameters

  • prompt [str]: The text prompt describing the content, style, or composition of the image to be generated.
  • num_images [int]: The number of images to generate
  • seed [int]: The random seed for image generation
  • aspect_ratio [ 21:9, 16:9, 4:3, 3:2, 1:1, 2:3, 3:4, 9:16, 9:21 ]: The aspect ratio for the image
  • guidance_scale [1-20]: The CFG (Classifier Free Guidance) scale is a measure of how close you want the model to stick to your prompt when looking for a related image to show you.
  • safety_tolerance [1-6]: The safety tolerance level for the generated image. 1 being the most strict and 5 being the most permissive.

Use cases

  • Professional branding, advertising, and editorial visual design
  • Content creators requiring superior prompt control and rapid, precise edits
  • Artists and designers for iterative visual prototyping and concept development
  • Enterprise applications needing consistent output across multiple scenes and steps
  • Interactive creative platforms, such as playgrounds and cloud APIs for production-scale editing

FLUX.1 Kontext benchmarks by Artificial Analysis

Human-preference results for FLUX.1 Kontext in text to image, next to models available on AI/ML API. Data retrieved Nov 3, 2026.

Text to image

Elo · text-to-image arena

AI/ML API price

USD per generation

Models on AI/ML API

Arena results for models you can call with the same API key.

Text to image

Blind pairwise human votes on images generated from text prompts. FLUX.1 Kontext ranks #69 of 98.

FLUX.1 Kontext API pricing

FLUX.1 Kontext 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.1 Kontext 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.1 Kontext$0.08
FLUX.1 Dev$0.025
Wan 2.7 Pro Image$0.075
Qwen Image 2.0 Pro$0.075
Flux Kontext Max$0.08

How to use the FLUX.1 Kontext 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": "blackforestlabs/flux-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."
}'

Related articles

All posts

FLUX.1 Kontext FAQ

What inputs and outputs does FLUX.1 Kontext [max] support?

FLUX.1 Kontext [max] takes image, text as input and returns image.

When was FLUX.1 Kontext [max] released?

FLUX.1 Kontext [max] became available on May 29, 2025.

How much does FLUX.1 Kontext [max] cost?

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

How is FLUX.1 Kontext [max] billed?

FLUX.1 Kontext [max] is billed per generation, a fixed charge per output rather than by prompt length.

Can FLUX.1 Kontext [max] take an existing image as input?

Yes, FLUX.1 Kontext [max] accepts image input as well as a text prompt.

Who created FLUX.1 Kontext [max]?

FLUX.1 Kontext [max] was built by Black Forest Labs.

How do I call FLUX.1 Kontext [max] on AI/ML API?

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

Is FLUX.1 Kontext [max] available through a single API key?

Yes. FLUX.1 Kontext [max] is served through AI/ML API, so the same key and endpoint format used for other models applies.

What is the FLUX.1 Kontext model ID?

Use blackforestlabs/flux-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.1 Kontext

FLUX.1 Kontext API

blackforestlabs/flux-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": "blackforestlabs/flux-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."
}'