The seed works with the whole recipe
A fixed seed can still produce a different image if you change the model, prompt, dimensions, sampler or software. The seed sets the randomness within a particular recipe. To repeat a picture, recover that recipe and check the seed stayed fixed.
If you are setting up for the first time, start with Build your first ComfyUI workflow.
1. Open the original picture's workflow
Keep the original image untouched. Drag its workflow-bearing PNG onto the ComfyUI canvas, or open the companion JSON through Workflows → Open. The first-generation guide covers both routes.
Screenshots and re-saved images may have lost the metadata. ComfyUI stores the editable graph as workflow and execution inputs as prompt; see the metadata reference. Check the execution inputs for the seed used to make that image. The editor may already be showing the next value.
If the recipe is missing, ask the creator for the JSON and dependency list. Check those dependencies before installing an unfamiliar workflow.
2. Keep the seed fixed between jobs
In a basic KSampler, enter your seed and set its control to fixed before pressing Run. Randomize, increment and decrement change the value between jobs. The frontend can apply those changes before or after queuing; its control source and value behaviour explain the timing.
If a wire supplies the seed, follow it to the source node. Check every sampler and noise node involved, including later refinement stages.
3. Match the other ingredients
Compare the exact checkpoint and revision, text encoders, VAE, positive and negative prompts, LoRAs and reference images. Match their strengths and connections. Keep the download source and file hash when available.
Then match width, height, batch size, steps, CFG, sampler, scheduler and denoise. The KSampler reference explains these inputs. Changing resolution or adding an upscaler changes the recipe too.
Our bottle lesson uses seed 156680208700286, a 512 × 512 canvas and batch size one. To recreate that example, use its complete publisher graph, including the model and prompts.
4. Check whether the software changed
Use the same app and environment for your first repeat. If the difference appeared after an update, compare the ComfyUI, frontend, custom-node and runtime versions. Keep a working environment before changing it.
PyTorch explains why the same seed can differ across releases, platforms and CPU/GPU execution. Deterministic settings address some variation, with potential speed trade-offs.
For Diffusers users, a reused Generator advances its random state. Hugging Face recommends reseeding or using a fresh generator for each comparison. Those are Python controls, separate from ComfyUI's seed field.
5. Keep the original and its recipe
Save the original Save Image PNG, which normally includes workflow metadata unless disabled. The save implementation documents that behaviour. Export a separate reproduction-workflow.json through Workflows → Export, then reopen it to check the selected settings.
Keep the PNG, JSON, inputs and version note together. Models and extensions remain separate dependencies. Review prompts and metadata before sharing private material.
Where to look first
- The next job differs: check seed controls and connected seed nodes.
- You changed the model or size: restore those before comparing.
- You switched apps: match the actual model version and exposed settings.
- The recipe matches: compare software, hardware and precision next.
Local ComfyUI lets you retain the full graph. A hosted tool can simplify setup; choose one that exposes and exports the settings you need for repeat runs. Keep the finished original whenever that exact image matters.
Sources
Primary references checked 12 October 2026.