Skip to main content

ComfyUI Flux Kontext Dev Grouped Workflow: Image Combo Generator

Because sometimes, one image just isn’t enough.

This documentation covers a ComfyUI Flux Kontext Dev Grouped workflow that fuses two images into a beautifully composed single output using ImageStitch, FluxKontextImageScale, and a dash of AI-enhanced creativity with FLUX.1 Kontext Image Edit. Whether you're nesting penguins on pillows or just merging concepts side-by-side like a true visual alchemist, this setup has you covered.

πŸ“· Example Workflow Layout​

Example Workflow Layout

🐧 Example Input Images​

Image A:
Black Penguin
Image B:
Purple Penguin

πŸ› οΈ What This Workflow Does​

This workflow takes two input images, lines them up side-by-side, and gives them a cozy makeover using the FLUX.1 Kontext Image Edit node β€” not once, but twice. The first pass refines the stitched image with prompt-based guidance. The second adds enhancements (like stylized text or flair) without blowing up the original composition.

This allows for:

  • Prompt-based layout blending

  • Multi-step generation from source images

  • Artistic augmentation with minimal loss of visual coherence

🧠 Key Components​

NodePurpose
LoadImage (x2)Loads both input images (black-penguin.png and purple-penguin.png)
ImageStitchCombines the two images into one, placed side-by-side
FluxKontextImageScaleNormalizes dimensions for encoding
VAELoader + VAEEncodePrepares the image for latent-based editing
FLUX.1 Kontext Image Edit (1st pass)Adds prompt-based composition using the stitched latent image
FLUX.1 Kontext Image Edit (2nd pass)Adds optional enhancements (like text overlay) on top of previous results
PreviewImageLets you preview the stitched output
SaveImage (x2)Saves both versions: the first with prompt-based fusion, the second with additional text or tweaks

βš™οΈ Parameters That Matter​

🧡 ImageStitch Settings​

SettingValueDescription
directionrightStitch image2 to the right of image1
match_image_sizetrueResizes images to match dimensions
spacing_width0No extra space between images
spacing_colorwhiteNot used here due to zero spacing

🧬 FLUX.1 Kontext Image Edit Settings​

SettingPass 1Pass 2
promptPlace both cute penguins...Add a big purple 3D style "Double Naplin" text...
seed386100423184929979175714064968
samplereulereuler
schedulersimplesimple
denoise11
cfg11
guidance2.52.5
unetflux1-dev-kontext_fp8_scaled.safetensors(same)
clip1t5xxl_fp8_e4m3fn.safetensors(same)
clip2clip_l.safetensors(same)

βœ… Benefits​

  • Multi-pass refinement: Clean stitching + customizable augmentation.

  • Prompt controlled: Direct how your final image looks β€” colors, composition, context.

  • Fully automated: No Photoshop-fu required.

πŸ’‘ Usage Tips​

  • Stick to images with similar dimensions for better results.

  • Keep spacing_width at 0 unless you want a border or divider.

  • First pass = layout/prompt, second pass = enhancement/prompt (e.g., text overlays, stylization).

  • For fancy setups, consider using masks or ControlNet for alignment β€” though not needed here.

🧯 What-Not-To-Do-Unless-You-Want-a-Fire​

  • ❌ Don’t mismatch your VAE β€” this workflow uses ae.safetensors. Mixing in something random might cause encoding artifacts.

  • ❌ Don’t skip VAEEncode β€” the entire Flux pipeline expects latents, not raw pixels.

  • ❌ Don’t pipe FluxKontextImageScale output directly into ImageStitch β€” it needs the stitched output, not individual scaled images.

  • ❌ Don’t forget your prompts β€” or you’ll just get a very boring stitched image.

πŸ“ Setup Instructions (ComfyUI)​

  1. Place all required model files:

    • flux1-dev-kontext_fp8_scaled.safetensors β†’ models/diffusion_models

    • t5xxl_fp8_e4m3fn.safetensors and clip_l.safetensors β†’ models/text_encoders

    • ae.safetensors β†’ models/vae

  2. Load the JSON into ComfyUI using the βš™οΈ Load Workflow button.

  3. Add your two input images in the LoadImage nodes.

  4. Tweak prompts, sampler, and denoise as needed.

  5. Click Queue Prompt and watch the penguins get comfy.

πŸ“š Additional Resources​

πŸ“Ž Example Node Configuration​

json


"widgets_values": [ "right", true, 0, "white" // <- ImageStitch ]

json


"widgets_values": [ 386100423184929, "fixed", 20, 1, "euler", "simple", 1, 2.5, "ComfyUI", "Place both cute penguins laying next to each other on a pile of pillows and ensure that the colors are maintained.", "", "flux1-dev-kontext_fp8_scaled.safetensors", "default", "t5xxl_fp8_e4m3fn.safetensors", "clip_l.safetensors", "flux", "default", "ae.safetensors" ]

πŸ“ Notes​

  • Yes, you can swap the penguins for anything else. No, we won’t judge.

  • If your final output looks wonky, blame your prompts (or your seed).

  • Grouped nodes are handled in workflow>FLUX.1 Kontext Image Edit, so don’t panic when you see multiple passes β€” it’s intentional.