How to get repeatable results using seed
The seed
parameter lets you make model outputs deterministic — meaning you’ll get the same output every time for the same prompt and settings.
Great for testing, debugging, or consistent experiences in production.
What it does:
- When you pass a
seed
, the model uses that value to initialize its random number generator. - This allows it to sample deterministically — so the same prompt and settings will always produce the same result.
- If you don’t pass a seed, the output will naturally vary on each request.
- Note: This feature is currently in Beta — the system will make a best effort to sample deterministically when
seed
is used.
Format and Range:
👉 Typically, values like 42
, 1234
, or any stable number will work fine.