FLUX.1 Kontext Pro
FLUX.1 Kontext Pro is Black Forest Labs's multi-turn image editing model. It is built to preserve character identity, style, and visual consistency across sequential editing steps. It delivers fast inference relative to earlier models in its class.
import { experimental_generateImage as generateImage } from 'ai';
const result = await generateImage({ model: 'bfl/flux-kontext-pro', prompt: 'A red balloon on a wooden table.'});Frequently Asked Questions
What makes Kontext Pro a multi-turn editing model?
The model accepts the output of one editing step as the reference image for the next. Each turn receives a new instruction and the previous result, preserving identity and style across steps. Black Forest Labs notes that sessions beyond roughly six turns can introduce visual artifacts.
How does Kontext Pro handle character consistency across different scenes?
The model extracts and retains distinctive visual features from the reference image (face, clothing, proportions, recognizable attributes) and reapplies them when generating a new scene. A specific character can be placed in an entirely different environment without reconstructing their appearance from scratch.
Does Kontext Pro perform both local and global edits?
Yes. Local editing modifies specific elements (an expression, an object, or a piece of text) while leaving surrounding regions unchanged. Global edits transform the entire scene context, moving a subject to a new environment while preserving their visual identity.
How does Kontext Pro score on KontextBench?
Kontext Pro achieves its highest scores on text editing and character preservation within KontextBench's six real-world editing categories, with measurable scores across all six.
What happens after many sequential editing turns?
Visual artifacts can accumulate. Black Forest Labs documents this limitation with an example showing degradation after six sequential edits. Shorter, more targeted editing sequences avoid this issue.
Does Kontext Pro support text-to-image generation without a reference?
Yes. You can use Kontext Pro for text-to-image generation without supplying a reference image.
What does FLUX.1 Kontext Pro cost per image?
See the pricing section on this page for today's rates. AI Gateway exposes each provider's pricing for FLUX.1 Kontext Pro.