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.

Lumen
CreateEditVideo
240 credits

Your image will appear here

Your image will appear here

Your image will appear here

Your image will appear here

16 credits

Installation

pnpm dlx shadcn@latest add https://mgp.paukraft.com/r/seed-input.json

SeedInput

PropTypeDefault
value / defaultValuenumber | null

The seed, or null for random each run. Controlled with onValueChange.

null
onValueChange(value: number | null) => void

Typed, rolled with the dice, or cleared.

—
maxnumber

Typed seeds clamp to it; rolls stay under it.

SEED_MAX
disabledboolean

E.g. while a generation is in flight.

false

Helpers

PropTypeDefault
randomSeed(max?) => number

What the dice rolls, e.g. to pin a seed before a batch.

—
SEED_MAXnumber

2³² − 1.

—