# FLUX.1 Kontext Max

FLUX.1 Kontext Max is Black Forest Labs's experimental upper tier of the Kontext suite. Choose it when typography generation and prompt adherence must reach their absolute ceiling, and the exact wording of an edit instruction must execute with the highest fidelity.

- **Model ID:** `bfl/flux-kontext-max`
- **Type:** image
- **Providers:** bfl
- **Context window:** 512
- **Maximum output tokens:** 0
- **Pricing:** $0.08/image
- **Canonical page:** https://vercel.com/ai-gateway/models/flux-kontext-max

## Supported parameters

- **Parameters:** `aspectRatio`, `seed`
- **Operations:** `text-to-image`, `image-to-image`
- **Input modalities:** `text`, `image`
- **Output modalities:** `image`
- **Aspect ratios:** `21:9`, `16:9`, `4:3`, `3:2`, `1:1`, `2:3`, `3:4`, `9:16`, `9:21`
- **Resolutions:** Not reported
- **Durations:** Not reported
- **Frame rates:** Not reported
- **Maximum outputs per request:** Not reported
- **Maximum input images:** 4
- **Input image formats:** Not reported
- **Maximum input image size:** 20 MB

## Example

```ts
import { experimental_generateImage as generateImage } from 'ai';

const result = await generateImage({
  model: 'bfl/flux-kontext-max',
  prompt: 'A red balloon on a wooden table.'
});
```

## About

Black Forest Labs introduced FLUX.1 Kontext Max on May 29, 2025 alongside Kontext Pro, positioning it as the experimental, maximum-performance tier of the Kontext family. Black Forest Labs describes it as delivering "greatly improved prompt adherence and typography generation, and high consistency for editing, all without compromise on speed."

The defining use cases for Kontext Max over Kontext Pro are typography and exact instruction fidelity. Typography is notoriously difficult for generative image models. Rendering legible, accurate text within an image (a sign, a label, an overlay) requires the model to treat characters as precise visual elements rather than free-form strokes. Kontext Max targets this specifically: editing text content within an existing image, correcting labels, adding legible fine print, or generating scenes where on-screen text must be precise.

Prompt adherence is the other axis. Kontext Pro follows editing instructions reliably in an iterative workflow. Kontext Max raises the ceiling on how precisely those instructions execute. When detailed, multi-clause editing prompts specify exact colors, precise spatial arrangements, or specific visual attributes, Max is the variant to use.

Like all Kontext models, Max supports iterative multi-turn editing. Each output becomes the reference for the next turn, preserving character and style consistency across a sequence of changes.

## What to consider

Black Forest Labs labels Kontext Max as experimental. It's the right model when you need the highest Kontext tier. If you prioritize throughput and iteration speed over maximum fidelity, evaluate Kontext Pro first. See $0.08 for current pricing.

## When to use

### Best For

- Typography-critical editing tasks: changing text content within an existing image, correcting signs or labels, or adding legible on-image text while preserving surrounding context
- High-precision prompt following where detailed instructions specifying exact colors, precise layouts, or specific visual attributes must execute as literally as possible
- Production workflows where Kontext Pro's edits don't follow the prompt closely enough and a higher-fidelity variant is needed
- Character and identity preservation across complex editing sequences where consistency is a hard requirement

### Consider Alternatives When

- High-volume iterative editing where throughput and speed matter more than maximum precision. Kontext Pro targets that fast-iteration workflow
- Pure text-to-image generation without any reference image is the task. FLUX.2 Pro or FLUX.2 Max offer better raw generation quality
- Sub-second real-time editing inside an agent loop is required. FLUX.2 Klein targets that latency

## Best for

- **Typography-critical editing:** Changing text content, correcting signs or labels, or adding legible on-image text while preserving surrounding context
- **High-precision prompt following:** Detailed instructions specifying exact colors, precise layouts, or specific visual attributes must execute as literally as possible
- **Higher-fidelity edits:** Production workflows where Kontext Pro's edits don't follow the prompt closely enough
- **Character and identity preservation:** Complex editing sequences where consistency across turns is a hard requirement

## Consider alternatives

- **High-volume iteration:** Kontext Pro targets fast-iteration editing where throughput and speed matter more than maximum precision
- **Pure text-to-image generation:** FLUX.2 Pro or FLUX.2 Max offer better raw generation quality when no reference image is used
- **Real-time agent editing:** FLUX.2 Klein targets sub-second latency inside an agent loop

## Frequently asked questions

### What does Kontext Max improve over Kontext Pro?

Black Forest Labs positions Kontext Max above Kontext Pro for prompt adherence and on-image text, at the same inference speed. Use Max when an edit instruction or on-image text must match the prompt more literally than Kontext Pro delivers.

### Why is typography quality a differentiator for Kontext Max?

Rendering legible, accurate text within images is difficult for many generative models. Kontext Max targets on-image text edits: it can change text in a sign, label, or UI element while preserving surrounding context. It scores higher on those tasks than Kontext Pro.

### Is Kontext Max suitable for multi-turn editing sessions?

Yes. Kontext Max shares the multi-turn iterative editing capability of the Kontext suite. Each output can serve as the reference image for the next editing step. That keeps character and style aligned across many sequential changes.

### When should I choose Kontext Max over Kontext Pro?

Choose Max when the exact language of the edit instruction must be followed with maximum fidelity, or when text within images must be rendered accurately. Choose Pro when speed and iteration throughput are the primary concerns and moderate prompt adherence is sufficient.

### Does the experimental designation affect reliability?

Black Forest Labs labels Kontext Max as experimental, meaning it's still being refined. The model is fully accessible through AI Gateway. Evaluate it on your specific editing tasks to confirm it meets your quality and consistency requirements before committing to a production integration.

### What inference speed does Kontext Max achieve?

Kontext models achieve fast inference speeds relative to many competing models, and Kontext Max's improvements come "without compromise on speed."

### What does FLUX.1 Kontext Max cost per image?

Current pricing is shown on this page. AI Gateway routes across providers, and rates may vary by provider.

## Links

- [Model page](https://vercel.com/ai-gateway/models/flux-kontext-max)
- [AI Gateway documentation](https://vercel.com/docs/ai-gateway)
- [Provider model documentation](https://bfl.ai/models/flux-kontext)
- [Provider pricing](https://bfl.ai/pricing)
