Black Forest Labs FLUX Kontext Max
The highest-quality tier of the FLUX Kontext family, delivering maximum prompt adherence and detail for context-aware image editing.
Key capabilities
- Context-aware editing: Uses a reference image and text prompt together for precise, prompt-driven transformations
- Multi-image reference: Up to 4 reference image URLs (
input_image,input_image_2,input_image_3,input_image_4) to guide the edit - Maximum prompt adherence: Highest-quality tier of the Kontext family for accurate detail and faithful edits
- Prompt upsampling: Optional automatic prompt modification for more creative outputs
- Fine-grained control: Adjustable guidance scale (1-10) and inference steps (1-100) for quality tuning
- 10 aspect ratios: Square (1:1), widescreen (16:9), social story (9:16), classic (4:3), portrait, and more
- Safety control: Adjustable moderation tolerance from 0 (most strict) to 6 (least strict)
- Output formats: PNG (lossless) or JPEG (compressed)
- Async processing: Webhook notifications or polling for task completion
Use cases
- Product photography: Edit and restyle product shots while preserving key elements
- Marketing and advertising: Adapt existing campaign imagery to new concepts from text
- Content creation: Transform illustrations and photos for blogs, social media, and websites
- Design prototyping: Iterate on visual concepts using a reference image as a starting point
- E-commerce: Generate consistent lifestyle and mockup variations at scale
Edit images with Flux Kontext Max
Submit a reference image and a text prompt to the API. The service returns a task ID for async polling or webhook notification.POST /v1/ai/text-to-image/flux-kontext-max
Create a new image editing task
GET /v1/ai/text-to-image/flux-kontext-max
List all Flux Kontext Max tasks with status
GET /v1/ai/text-to-image/flux-kontext-max/{task-id}
Get task status and results by ID
Parameters
Aspect ratios
Frequently Asked Questions
What is Flux Kontext Max and how does it work?
What is Flux Kontext Max and how does it work?
Flux Kontext Max is the highest-quality tier of Black Forest Labs’ FLUX Kontext family, built for context-aware image editing. You submit a reference image URL (
input_image) and a text prompt via the API, receive a task ID immediately, then poll for results or receive a webhook notification when processing completes.What is the difference between Flux Kontext Max and Flux Kontext Pro?
What is the difference between Flux Kontext Max and Flux Kontext Pro?
Both edit images using a reference image and text prompt. Flux Kontext Max is the highest-quality tier, offering maximum prompt adherence and detail. Flux Kontext Pro treats the reference image as optional guidance for broader text-to-image generation. Choose Flux Kontext Max when edit precision and detail are the priority.
Is the input image required?
Is the input image required?
Yes. Flux Kontext Max requires both a
prompt and an input_image URL. The model uses the reference image as the basis for the edit and applies the transformation described in the prompt. You can supply up to 3 additional reference images with input_image_2, input_image_3, and input_image_4.Does the same seed produce identical images?
Does the same seed produce identical images?
The
seed influences generation and helps you steer toward similar results, but the Kontext provider does not guarantee identical output for an identical seed. Setting prompt_upsampling to true makes runs inherently non-reproducible, since the prompt is rewritten on each call.How do guidance and steps affect the output?
How do guidance and steps affect the output?
The
guidance parameter (1-10, default 3.0) controls how closely the model follows your prompt; higher values produce edits more faithful to the description. The steps parameter (1-100, default 50) controls quality: more steps produce finer detail but take longer to process.What aspect ratios and output formats are available?
What aspect ratios and output formats are available?
Flux Kontext Max supports 10 aspect ratios, passed as named string values:
square_1_1 (default), classic_4_3, traditional_3_4, widescreen_16_9, social_story_9_16, standard_3_2, portrait_2_3, horizontal_2_1, vertical_1_2, and social_post_4_5. Use the exact enum value, for example widescreen_16_9 for a 16:9 image; a numeric ratio like "16:9" returns a 400 error. Output is delivered as png (lossless) or jpeg (compressed).What are the rate limits for Flux Kontext Max?
What are the rate limits for Flux Kontext Max?
See Rate Limits for current limits by subscription tier.
How much does Flux Kontext Max cost?
How much does Flux Kontext Max cost?
See Pricing for detailed rates and subscription options.
Best practices
- Reference image: Use a high-quality
input_imagewith clear subjects for the most accurate edits - Prompt writing: Describe the exact edit or transformation you want, including lighting, atmosphere, and art style
- Guidance tuning: Start with the default guidance (3.0) and increase for more literal prompt adherence
- Production integration: Use webhooks instead of polling for scalable applications
- Error handling: Implement retry logic with exponential backoff for 503 errors
Related APIs
- Flux Kontext Pro: Context-aware generation with optional image guidance
- FLUX.2 Klein: Fastest FLUX.2 model for sub-second generation
- FLUX.2 Pro: High-quality text-to-image generation