What FLUX 3.1 Image is good at
- Text to image: renders a prompt at sixteen aspect ratios and resolutions from 1K to 4K
- Instruction edits: describe one change and keep the rest of the photo as it is
- Many references: up to 10 images, or 9 when a mask is connected, addressed as
image 1,image 2, and so on - Masks: white areas may change, black areas stay untouched
- Boxes: place an object or a line of text where you draw it, up to 32 boxes
- Quality or fast mode:
qualityis better at text, many references and fine detail,fastcosts less - Grounding:
autosearches the web when the prompt names a real place or product
Use it
Call it from code
Call it over HTTP through Comfy Router, with copy-paste Python, TypeScript, Swift and cURL snippets
Text to image
Generate an image from a prompt. No input files are required.
Download Workflow
Download JSON or search “FLUX 3.1 Image: Text to Image” in Template Library
- Write the prompt in the FLUX 3.1 Image node
- Set
modetoqualityorfast, then pick aresolutionfrom 1K to 4K - Leave
aspect_ratioonautounless you want a specific frame, andgroundingonauto - Click Queue
Instruction edit
Describe one change and say what must stay. The node expands the prompt and repaints what you describe; anything you leave unnamed can change too.
Download Workflow
Download JSON or search “FLUX 3.1 Image: Image Edit” in Template Library
- Load your photo into
image_1, and add references with the Autogrow slots, up to 10, or 9 when a mask is connected - Name each connected image in the prompt as
image 1,image 2, and so on - State the change, then close with what must stay: “keep her face and the shirt exactly as they are”. Anything you do not name can be repainted
- The template sets both
aspect_ratioandresolutiontomatch image 1, which keeps the framing and size ofimage 1. That input must be at least 0.25 megapixels and no wider than 8:1, and anything above 4096x4096 is reduced first, so prepare a supported input before chaining edits - Click Queue
Bounding-box edit
Draw a box over the area to change and describe what happens inside it. Boxes tell the model where to place something; they do not clip the frame, so light and shadows outside a box can still shift.
Download Workflow
Download JSON or search “FLUX 3.1 Image: Bounding Box Edit” in Template Library
- Load the photo into
image_1 - Draw boxes in Create Bounding Boxes and write the change into each box’s description. Describe background boxes first and foreground boxes last
- Set the canvas width and height in Create Bounding Boxes to the aspect ratio of the output. The box grid stretches with the frame, so a mismatched canvas puts boxes in the wrong place
- Write the overall rule in the prompt, for example “change only what the boxes describe, keep everything else as it is”. The node reads the boxes as
<box_1>,<box_2>, in row order - Click Queue
Get started
- Update ComfyUI to the latest version (0.47.2 or later)
- Open the Template Library and search for
FLUX 3.1 Image - Drag a template onto the canvas, replace the sample input if it has one, then click Queue