How to Batch Generate Many Image Variations in ComfyUI
Set batch size and the seed control so a single Queue Prompt produces a grid of variations, and queue many prompts at once for unattended runs.
When you are exploring ideas, generating one image at a time is slow. ComfyUI can produce several variations per run and queue dozens of runs back to back. This guide covers batch size, the seed control modes, and queuing multiple jobs so the GPU keeps working while you step away.
What you need
- Any working text-to-image workflow
- Enough VRAM that a few images fit at once (lower the batch if you hit out-of-memory)
Step 1: Raise the batch size
Find the Empty Latent Image node and increase batch_size from 1 to, say, 4. Each Queue Prompt now renders four images that share the prompt but differ by seed, and they all land in the Save Image node.
Step 2: Set the seed to randomize
In the KSampler, set the control_after_generate field to randomize. After each run ComfyUI rolls a new seed, so the next Queue Prompt gives fresh variations instead of repeating.
Step 3: Queue several runs at once
Hold the queue button or use the extra options to add many jobs to the queue. With seed set to randomize, queuing 10 runs of a batch of 4 yields 40 distinct images. Watch progress in the Queue tab.
Step 4: Find your output files
Every image is written to the ComfyUI/output folder with an incrementing filename. The PNGs also embed the full workflow, so you can drag any one back onto the canvas to recover its exact settings.
Result: a folder full of variations from a single session. Pick the strongest composition, drag its PNG back into ComfyUI to load its settings, and refine from there.
Watch related tutorials
26:00
17:00
13:00
10:00
19:48
20:00