The Flux.1 Kontext Max workflow is designed to facilitate advanced image editing through a structured process using ComfyUI. At its core, this workflow leverages the Flux.1 Kontext and Flux models to perform intricate edits on images, making it ideal for users who require precise control over image modifications. The workflow incorporates several key nodes, including LoadImage, SaveImage, and ImageStitch, to manage the input and output of images efficiently. The FluxKontextMaxImageNode is a pivotal component that applies the desired transformations to the images, allowing for both basic modifications and complex style transfers. This workflow is particularly useful for users who need to edit images with specific stylistic requirements or want to apply consistent changes across multiple images.
Technically, the workflow operates by first loading the image through the LoadImage node, which can be configured to handle multiple images simultaneously. The FluxKontextMaxImageNode then processes the images according to the specified instructions, such as changing colors or altering styles. Finally, the edited images are saved using the SaveImage node. This structured approach ensures that users can easily manage and execute their image editing tasks, making the workflow a valuable tool for both individual creators and businesses looking to automate their image editing processes.
API
Use this workflow from code
Every Comfy workflow is a JSON graph. The payload below is this workflow, exactly as ComfyUI runs it — fetch it from the URL, keep it in version control, or load it in ComfyUI and run it node by node.
GET https://comfy.org/workflows/download/c8dc25fbb2d2.jsonFetching workflow JSON…
Run it from Python or TypeScript with the Comfy SDK. The same code targets Comfy Cloud or a ComfyUI you host yourself — only the base URL changes.
# Install (beta)
pip install comfy-sdk # Python
npm i @comfyorg/sdk # TypeScript
# Run "Flux.1 Kontext Max" (Python)
from comfy_sdk import Comfy
client = Comfy(api_key="comfyui-...")
# This workflow, exported in API format (see note below)
wf = client.workflows.from_file("api_bfl_flux_1_kontext_max_image_api.json")
asset = client.assets.from_file("input.png")
wf.set_input("90", "image", asset) # LoadImage
job = client.run(wf)
for output in job.get_outputs("85"): # SaveImage
output.to_file(output.name)The SDK takes a workflow in API format: open this workflow in ComfyUI and use File → Export Workflow (API). API access requires a Comfy Cloud plan with an API key. SDK docs · Get an API key
FAQ
















