Model Details
FLUX.1 Kontext [max] edits an image you provide by following a plain-language instruction. You pass a source photo and a prompt describing the change — swap an object, restyle the scene, replace the background, alter text, or adjust color — and it re-renders the image with that edit applied while keeping everything you didn't mention consistent. It is the top tier of the Black Forest Labs Kontext editing family: the highest-fidelity, maximum-performance closed-weights model, with the strongest prompt adherence, the cleanest typography, and the best character and scene consistency in the family — tuned for complex edits and premium commercial work, with commercial-usage rights included. Untouched regions — faces, products, composition — stay stable instead of being regenerated, so demanding and iterative edits compound cleanly where lower tiers would drift.
## Best for - High-fidelity, premium commercial and marketing edits where prompt adherence and clean typography must be exact (edit or add legible text and signage) - Complex instruction edits a lower tier struggles with — "change the wooden floor to white marble", "make it nighttime", "remove the person on the left" - Restyling or relighting a scene while preserving the subject's identity and pose with maximum consistency - Replacing or restyling backgrounds without regenerating the foreground - Demanding, multi-step edits where consistency and detail must hold across rounds
## Choose another model when - You want the same editing at lower cost — use FLUX.1 Kontext [pro], the standard-quality tier at half the price - You want open weights and the lowest cost, and can trade some fidelity — use FLUX.1 Kontext [dev] - You have no source photo and want to generate an image from a prompt alone — use a text-to-image model - You want the edited result animated or in motion — use an image-to-video model - You need a precisely masked inpaint of one region only — use a dedicated inpainting model
## Tips - Describe the change precisely and name what should stay the same — Kontext keeps unmentioned regions consistent, so specific instructions edit less of the image - Leave `aspect_ratio` unset to match the source image's aspect (recommended for aligned before/after comparison); set it only when you deliberately want to reframe the output - Raise `guidance_scale` toward the higher end of its range for stronger adherence to the instruction; lower it if the edit looks over-applied
## Advanced Configuration - `guidance_scale` (1–20, default 3.5) controls how strongly the result follows the instruction; raise it for stronger edits, lower it if the edit looks over-applied. - `aspect_ratio` (unset by default) forces the output aspect ratio — one of `21:9`, `16:9`, `4:3`, `3:2`, `1:1`, `2:3`, `3:4`, `9:16`, `9:21`. Leave it unset to match the input image's aspect. - `safety_tolerance` (`1`–`6`, default `2`) sets content-moderation strictness: `1` is the strictest, `6` the most permissive. - `num_images` (1–4, default 1) sets how many edited variations to generate; each generated image is billed separately. - `output_format` selects `jpeg` (default) or `png`. - `enhance_prompt` (default false) automatically expands your instruction for potentially better results.
To run via the ModelRunner JavaScript client: ```js import { modelrunner } from "@modelrunner/client";
const result = await modelrunner.subscribe("black-forest-labs/flux-kontext/max", { input: { prompt: "Change the wooden floor to white marble.", image_url: "https://media.modelrunner.ai/OnB0a9tFqLGcUP53RQ46n.png", guidance_scale: 3.5, output_format: "jpeg", }, }); ```



