Duration Picker

How long a FLUX 3 Video clip runs: Auto, or any whole second dragged out on one compact track.

In use

In the Video Studio's settings, setting the keyframe timeline's length and the price, which is per second.

Lumen
CreateEditVideo
240 credits

Your video will appear here

40 credits

Installation

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

DurationPicker

Auto toggles; the track picks a length, with arrow keys a second at a time and Page Up/Down five. Leaving Auto returns to the last length. Send the value as duration, and it sets the Keyframe Timeline's length.

PropTypeDefault
valuenumber | "auto"

The API's duration: whole seconds, or auto to fit the content.

—
defaultValuenumber | "auto"

The starting duration, uncontrolled.

"auto"
onValueChange(value: number | "auto") => void

Called with the new duration.

—
min / maxnumber

The range, in seconds. Spread a DURATIONS preset, e.g. flux3VideoContinue for 5–15.

5 / 20
formatLabel(seconds: number) => string

Labels the length on the track, "8s" by default.

formatSeconds
disabledboolean

Dims the picker and ignores input.

false

Helpers

PropTypeDefault
DURATIONSRecord<string, { min: number; max: number }>

Seconds per mode: flux3Video (t2v and i2v, 5–20) and flux3VideoContinue (v2v, 5–15).

—
formatSeconds(seconds: number) => string

"8s": the default label.

—
Durationnumber | "auto"

The value type, as the API takes it.

—