Seed Input
The seed a generation runs with: random each run, or pinned so a result can be reproduced and varied by prompt alone.
Seed
In use
In settings, for models that take a seed. Pick a result and choose Reuse seed to pin its seed; a pin shows on the trigger.
CreateEditVideo
240 creditsYour image will appear here
Your image will appear here
Your image will appear here
Your image will appear here

Paint over what to change. Tab reaches the marks: arrow keys move one, Enter edits its note, Delete removes it.
Your video will appear here
Installation
pnpm dlx shadcn@latest add https://mgp.paukraft.com/r/seed-input.jsonSeedInput
| Prop | Type | Default |
|---|---|---|
| value / defaultValue | number | nullThe seed, or null for random each run. Controlled with onValueChange. | null |
| onValueChange | (value: number | null) => voidTyped, rolled with the dice, or cleared. | — |
| max | numberTyped seeds clamp to it; rolls stay under it. | SEED_MAX |
| disabled | booleanE.g. while a generation is in flight. | false |
Helpers
| Prop | Type | Default |
|---|---|---|
| randomSeed | (max?) => numberWhat the dice rolls, e.g. to pin a seed before a batch. | — |
| SEED_MAX | number2³² − 1. | — |