Text prompt describing the desired video content.
Optional imageSource image for image-to-video generation. When provided, the
request is dispatched to imageToVideo() instead of generateVideo().
Accepts a raw Buffer.
Optional providerExplicit provider identifier (e.g. "runway", "replicate", "fal").
When omitted, auto-detection from environment variables is used.
Optional modelModel identifier within the provider (e.g. "gen3a_turbo",
"klingai/kling-v1"). When omitted, the provider's default model
is used.
Optional durationDesired output duration in seconds.
Optional aspectDesired aspect ratio (e.g. "16:9", "9:16").
Optional resolutionDesired output resolution (e.g. "1280x720", "720p").
Optional negativeNegative prompt describing content to avoid.
Optional seedRandom seed for reproducible generation (provider-dependent).
Optional timeoutMaximum time in milliseconds to wait for generation to complete. Provider-dependent — not all providers honour client-side timeouts.
Optional onOptional progress callback invoked during long-running generation. Called with a VideoProgressEvent at each status transition.
Optional apiOverride the provider API key instead of reading from env vars.
Optional baseOverride the provider base URL.
Optional providerProvider preferences for reordering or filtering the fallback chain.
When supplied, the available video providers are reordered according to
preferred and filtered by blocked before building the chain.
Optional usageOptional durable usage ledger configuration for accounting.
Options for a generateVideo call.
At minimum, a
promptis required. The provider is resolved fromopts.provider,opts.apiKey, or the first video-capable env var found (RUNWAY_API_KEY->REPLICATE_API_TOKEN->FAL_API_KEY).