A Context-Aware Creation Model for Complex Image Modifications
flux-kontext-max is a model in the Black Forest Labs Kontext series for complex image editing. It can generate new images from text or combine existing images with modification instructions to complete edits. It is suited for continuing creation around an established visual: adjusting image elements, modifying local details, and aiming for overall consistency, serving product presentations, creative design, and marketing asset iteration.
Input parameters and result formats vary by service. Use the public API for this model and follow its guide for generation, task retrieval and editing operations.
Specifications and API Features
Creation Method
Text-to-image generation; image editing with text instructions
Edit Input
image_url image link and prompt modification instruction
Aspect Ratio Control
size uses image ratios, such as 1:1, 16:9, 9:16
Generation Count
count defaults to 1 and applies only to generate
Result Delivery
JSON results include the data image list and image_url
Task Processing
Supports asynchronous submission, task queries, and callback_url callbacks
The above are the creation and invocation specifications for this platform entry. Image aspect ratios do not equal fixed output pixels and do not represent the native model's resolution limit.
Core Capabilities
Modify Based on the Original Image Instead of Starting Over
The focus of Kontext Max is context-aware editing: using an existing image as the starting point and describing the objects or local details that need to change through text. It is suitable for tasks where the composition is already established and only further adjustments are needed. Stating both the modification target and the elements to preserve in the instruction helps express creative intent more clearly.
Preserve Options for Complex Edits
When an image needs to balance the subject, background, and overall style, Kontext Max can be considered for complex editing. It aims to modify details while maintaining image consistency, making it suitable for further exploration of existing designs. In practical use, distinguish primary modifications from secondary requirements to avoid conflicting descriptions.
Generation and Editing in the Same Workflow
The same model provides both generate and edit operations. You can first use text to establish a visual draft, then use the selected image link for subsequent modifications. Completed results are delivered as image links and support asynchronous task processing, making it convenient to connect asset generation, previewing, manual selection, and continued editing.
Applicable Scenarios
Product Display Image Iteration
Provide an existing product display image, describe the background, scene elements, or local visual details you want adjusted, and specify the product appearance that must be retained. The deliverables are revised display image candidates, suitable for comparing different presentation approaches; before formal use, check whether the packaging text, logos, and product structure are accurate.
Marketing Visual Concept Exploration
Based on an already selected advertising sketch, propose specific changes, such as replacing the background atmosphere or adjusting an image element. You can organize candidate assets in landscape, square, or portrait proportions, then have designers complete the layout and finalization. It is suitable for supporting visual exploration and should not replace final brand guideline checks.
Continuous Refinement of Concept Art
Use character, scene, or illustration concept art as input, and indicate the focus of this round of changes in text. Preserve the original and result each time, select an appropriate version, and continue editing to create a comparable creative record. The deliverables can be used for design discussions and proposal reviews, reducing the work of rebuilding images from blank prompts each time.
How to Choose This Model
Choose Max for Complex Changes, Compare Pro for Routine Editing
flux-kontext-pro and flux-kontext-max are both designed for contextual image editing. If the task involves only a clear, single change, evaluate Pro first; if you need to account for more relationships within the image or have stricter requirements for the final visual, try Max first. When selecting a model, compare results using the same original image and instructions, focusing on whether the changes are correctly made and the subject is preserved, rather than only looking at version names.
Choose the Series by Task, Do Not Mix Them by Suffix
flux-kontext-max and flux-2-max are not the same model. The key reason to choose Kontext Max is to make contextual changes around existing images. If the main work is creating entirely new visuals from text, you can also compare other Flux generation models. FLUX.1 Kontext [dev] is another version, and its open weights, deployment methods, or parameters should not be directly applied to Max.
Getting Started
Clearly State Visual Goals and Items to Preserve
For text-to-image, specify the subject, materials, lighting, and canvas ratio; for modifications to existing images, prepare image_url and clearly state what to change and preserve.
Call the Image Operation for This Model
Submit model=flux-kontext-max, action=generate, prompt, and size=16:9 to /flux/images; when editing images, select edit and add the image URL, while count is used only for generation.
Evaluate Based on Image Results
Save the returned image_url; for asynchronous operations, query using task_id or configure callback_url. Compare key elements before and after modification, then use the completed image in subsequent design work.
Trial suggestion: Brand key visual refinement
Input and objective
Keep the architecture, character positions, and clothing from the reference image, changing only the sky to blue hour and adjusting the window lighting to create a photorealistic advertising photography look.
Acceptance criteria and next steps
Check whether the subject identity, window structure, and perspective are preserved; highly demanding details should be reviewed by area rather than comparing only the overall atmosphere.
Usage boundaries
Editing results are generative modifications, not pixel-level locking of the original image. Even when preserving the subject is requested, compare areas not requested for modification, paying particular attention to product outlines, character features, logos, and small text; for materials requiring strict fidelity, retain the original image and arrange manual inspection.
This model uses image aspect ratio to control the canvas; do not submit pixel dimensions such as 1024x1024 as size. Specify the original image for editing via image_url; when precise regional processing is needed, do not assume that dedicated mask or region-locking controls are already available.
count is only used for generation and will not automatically return multiple candidates from a single edit. When comparing multiple modification directions, organize editing tasks separately; obtaining a task_id through asynchronous submission does not mean the image is complete, and you should wait for the task result or callback before proceeding to download and display.
Frequently Asked Questions
Can flux-kontext-max only edit images?
No. It supports generate for text-to-image generation and edit for image editing. For generation, describe the desired image; for editing, provide image_url and modification instructions. Both operations should submit action, prompt, and size, and explicitly set model to flux-kontext-max.
How can editing instructions be written more effectively?
First describe the object to modify, then the desired effect, and add the subject, composition, or style you want to preserve. For example, change the background to a studio setting while keeping the product appearance. Complex tasks can be split into different candidates for comparison to avoid putting conflicting requirements into a single instruction.
How do I choose the output aspect ratio?
Pass the image ratio through size, such as 1:1 for square images, 16:9 for landscape images, and 9:16 for portrait images. This controls the ratio rather than the exact pixel dimensions. Even for editing tasks, it is recommended to explicitly submit the ratio to help maintain the required output aspect ratio.
How should I choose between Max and Kontext Pro?
Both are suitable for editing based on an original image and text. For routine modifications, compare Pro first; for complex editing, prioritize evaluating Max. It is best to test with the same input and observe modification accuracy and overall consistency; the Max name does not mean every original image and every instruction will necessarily produce more suitable results.
Can I edit multiple images at once and retrieve them in the background?
count does not apply to editing tasks; multiple editing candidates should be submitted separately. For background processing, use async=true, query the result after obtaining task_id, or receive completion notifications through callback_url. Finally, read image_url from the returned data for previewing or downloading.