A seed is a whole number that picks the random noise a diffusion model starts from. A diffusion model begins every clip as noise and removes it step by step, so the same seed gives the same starting noise. In the course's test, starting noise made twice with seed 42 matched to the last digit, while seed 43 gave different noise.
Same noise does not mean the same clip. The clip also depends on the prompt, the settings, the model's exact weights, the software and the graphics card, and the seed controls none of those. Take a perfume brand deciding whether "dusk" or "golden hour" gives better light on its bottle.
Hold the seed and change one word
The most useful thing a seed does is let you change one thing at a time. Hold the number, change one word, and the difference between the two clips is mostly that word. That is directing, as against rerolling until something good turns up.
For the perfume shot, render it twice with seed 42 and the word "dusk", on the same settings. If the two takes match, you have a baseline. Then change "dusk" to "golden hour", keep seed 42 and render again. On the Agent Platform, Google also recommends one seed, with a character description pasted unchanged into every prompt, to hold a character and a voice across scenes.
Check whether the service takes a seed
Whether you can set a seed at all depends on where you generate. This was the picture at the time of writing.
| Where you generate | Seed |
|---|---|
| Gemini Developer API | No. Google's Python SDK refuses to send one and raises an error before anything leaves your machine |
| Google's Agent Platform | Yes, any whole number up to 4,294,967,295 |
| Runway's API | Yes for Gen-4.5, Gen-4 Turbo, Veo 3.1, Veo 3.1 Fast, the Seedance models and H3 Max, and no for Gemini Omni Flash, Wan 3 and Hailuo 3 |
| fal and Replicate | Listed for Veo 3.1, not for Kling 3.0 |
| Luma's Ray 3.2 API | No seed field |
| Open models in diffusers | Yes, and a clip can repeat on the same setup |
Read a hosted seed as making a repeat more likely without promising one. Google's own pages disagree, with one saying a seed "guides the model to produce the same videos" and the Gemini API's Veo page saying it "doesn't guarantee determinism, but slightly improves it". Runway promises only that the same seed "will produce similar results".
Repeat a clip on an open model
Open models are the one place a seed can repeat a clip. Pin the model to a full commit hash, such as Wan2.2-TI2V-5B-Diffusers at b8fff7315c768468a5333511427288870b2e9635, because a seed means nothing once the weights under it change. Call diffusers' enable_full_determinism before loading the pipeline. It switches PyTorch to deterministic maths, which runs slower and repeats more reliably, though still with no promise across machines.
Make a fresh CPU generator seeded with 42 for every call. A generator is the PyTorch object that holds random state, and the diffusers docs say a used one gives different results on the next call unless you seed it again. PyTorch's own notes say results are not guaranteed across releases, platforms, or between CPU and GPU.
ComfyUI has its own trap. Its seed box has a control_after_generate setting whose default is randomize, so after a run the box can show the next number instead of the one just used. The true seed lives in the workflow saved inside the output file.
Log every seed, including the ones you did not set
Write the seed into the clip's notes every time. Record the number the service reports, and write null where the API takes none. For open-model runs, add the diffusers and torch versions and the name of the GPU, since a different platform can give a different result.
Keep the seed beside the model id and the date, because a hosted model that changes under the same name turns an old seed into a meaningless number. On the Gemini Developer API, where there is no seed, the clip file is the only copy. For the perfume brand's winning take, keep the file as safe as the prompt.
The next lesson covers naming and versioning every file.