- Kontext Pro is ideal for editing, composing, and remixing.
- Kontext Max pushes the limits on typography, prompt precision, and speed.
To use the API nodes, you need to ensure that you are logged in properly and using a permitted network environment. Please refer to the API Nodes Overview section of the documentation to understand the specific requirements for using the API nodes.
Make sure your ComfyUI is updated.Workflows in this guide can be found in the Workflow Templates.
If you can’t find them in the template, your ComfyUI may be outdated.(Desktop version’s update will delay sometime)If nodes are missing when loading a workflow, possible reasons:
- You are not using the latest ComfyUI version(Nightly version)
- You are using Stable or Desktop version (Latest changes may not be included)
- Some nodes failed to import at startup
Flux.1 Kontext Multiple Image Input Workflow
We have recently updated to support multiple image input workflows. Using the newImage Stitch
node, you can stitch multiple images into a single image and edit it using Flux.1 Kontext.
1. Workflow File Download
Themetadata
of the images below contains the workflow information. Please download and drag them into ComfyUI to load the corresponding workflow.




2. Complete the Workflow Step by Step

- Upload the provided images in the
Load image
node - Modify the necessary parameters in
Flux.1 Kontext Pro Image
:prompt
Enter the prompt for the image you want to editaspect_ratio
Set the aspect ratio of the original image, which must be between 1:4 and 4:1prompt_upsampling
Set whether to use prompt upsampling. If enabled, it will automatically modify the prompt to get richer results, but the results are not reproducible
- Click the
Run
button or use the shortcutCtrl(cmd) + Enter
to execute the image editing - After waiting for the API to return results, you can view the edited image in the
Save Image
node, and the corresponding image will also be saved to theComfyUI/output/
directory
The subsequent two workflows only differ in the API nodes used. In fact, you only need to modify based on the multiple image input workflow, with no significant differences
Flux.1 Kontext Pro Image API Node Workflow
1. Workflow File Download
Themetadata
of the image below contains the workflow information. Please download and drag it into ComfyUI to load the corresponding workflow.


2. Complete the Workflow Step by Step

- Load the image you want to edit in the
Load Image
node - (Optional) Modify the necessary parameters in
Flux.1 Kontext Pro Image
- Click the
Run
button or use the shortcutCtrl(cmd) + Enter
to execute the image editing - After waiting for the API to return results, you can view the edited image in the
Save Image
node, and the corresponding image will also be saved to theComfyUI/output/
directory
Flux.1 Kontext Max Image API Node Workflow
1. Workflow File Download
Themetadata
of the image below contains the workflow information. Please download and drag it into ComfyUI to load the corresponding workflow.


2. Complete the Workflow Step by Step

- Load the image you want to edit in the
Load Image
node - (Optional) Modify the necessary parameters in
Flux.1 Kontext Max Image
- Click the
Run
button or use the shortcutCtrl(cmd) + Enter
to execute the image editing - After waiting for the API to return results, you can view the edited image in the
Save Image
node, and the corresponding image will also be saved to theComfyUI/output/
directory
Flux Kontext Prompt Techniques
1. Basic Modifications
- Simple and direct:
"Change the car color to red"
- Maintain style:
"Change to daytime while maintaining the same style of the painting"
2. Style Transfer
Principles:- Clearly name style:
"Transform to Bauhaus art style"
- Describe characteristics:
"Transform to oil painting with visible brushstrokes, thick paint texture"
- Preserve composition:
"Change to Bauhaus style while maintaining the original composition"
3. Character Consistency
Framework:- Specific description:
"The woman with short black hair"
instead of “she” - Preserve features:
"while maintaining the same facial features, hairstyle, and expression"
- Step-by-step modifications: Change background first, then actions
4. Text Editing
- Use quotes:
"Replace 'joy' with 'BFL'"
- Maintain format:
"Replace text while maintaining the same font style"
Common Problem Solutions
Character Changes Too Much
❌ Wrong:"Transform the person into a Viking"
✅ Correct: "Change the clothes to be a viking warrior while preserving facial features"
Composition Position Changes
❌ Wrong:"Put him on a beach"
✅ Correct: "Change the background to a beach while keeping the person in the exact same position, scale, and pose"
Style Application Inaccuracy
❌ Wrong:"Make it a sketch"
✅ Correct: "Convert to pencil sketch with natural graphite lines, cross-hatching, and visible paper texture"
Core Principles
- Be Specific and Clear - Use precise descriptions, avoid vague terms
- Step-by-step Editing - Break complex modifications into multiple simple steps
- Explicit Preservation - State what should remain unchanged
- Verb Selection - Use “change”, “replace” rather than “transform”
Best Practice Templates
Object Modification:"Change [object] to [new state], keep [content to preserve] unchanged"
Style Transfer:
"Transform to [specific style], while maintaining [composition/character/other] unchanged"
Background Replacement:
"Change the background to [new background], keep the subject in the exact same position and pose"
Text Editing:
"Replace '[original text]' with '[new text]', maintain the same font style"
Remember: The more specific, the better. Kontext excels at understanding detailed instructions and maintaining consistency.