This guide will show you how to use the Flux.1 Kontext Pro Image API node in ComfyUI to perform image editing
Image Stitch
node, you can stitch multiple images into a single image and edit it using Flux.1 Kontext.
metadata
of the images below contains the workflow information. Please download and drag them into ComfyUI to load the corresponding workflow.
Load image
nodeFlux.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 reproducibleRun
button or use the shortcut Ctrl(cmd) + Enter
to execute the image editingSave Image
node, and the corresponding image will also be saved to the ComfyUI/output/
directorymetadata
of the image below contains the workflow information. Please download and drag it into ComfyUI to load the corresponding workflow.
Load Image
nodeFlux.1 Kontext Pro Image
Run
button or use the shortcut Ctrl(cmd) + Enter
to execute the image editingSave Image
node, and the corresponding image will also be saved to the ComfyUI/output/
directorymetadata
of the image below contains the workflow information. Please download and drag it into ComfyUI to load the corresponding workflow.
Load Image
nodeFlux.1 Kontext Max Image
Run
button or use the shortcut Ctrl(cmd) + Enter
to execute the image editingSave Image
node, and the corresponding image will also be saved to the ComfyUI/output/
directory"Change the car color to red"
"Change to daytime while maintaining the same style of the painting"
"Transform to Bauhaus art style"
"Transform to oil painting with visible brushstrokes, thick paint texture"
"Change to Bauhaus style while maintaining the original composition"
"The woman with short black hair"
instead of “she”"while maintaining the same facial features, hairstyle, and expression"
"Replace 'joy' with 'BFL'"
"Replace text while maintaining the same font style"
"Transform the person into a Viking"
✅ Correct: "Change the clothes to be a viking warrior while preserving facial features"
"Put him on a beach"
✅ Correct: "Change the background to a beach while keeping the person in the exact same position, scale, and pose"
"Make it a sketch"
✅ Correct: "Convert to pencil sketch with natural graphite lines, cross-hatching, and visible paper texture"
"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.