VideoGenerationRequest - TypeScript SDK

VideoGenerationRequest type definition

The TypeScript SDK and docs are currently in beta. Report issues on GitHub.

Example Usage

1import { VideoGenerationRequest } from "@openrouter/sdk/models";
2
3let value: VideoGenerationRequest = {
4 model: "google/veo-3.1",
5 prompt: "A serene mountain landscape at sunset",
6};

Fields

FieldTypeRequiredDescriptionExample
aspectRatiomodels.AspectRatioAspect ratio of the generated video16:9
durationnumberDuration of the generated video in seconds8
generateAudiobooleanWhether to generate audio alongside the video. Defaults to true for models that support audio output, false otherwise.true
inputReferencesmodels.ContentPartImage[]Reference images to guide video generation
modelstring✔️N/A
promptstring✔️N/A
providermodels.ProviderProvider-specific passthrough configuration
resolutionmodels.ResolutionResolution of the generated video720p
seednumberIf specified, the generation will sample deterministically, such that repeated requests with the same seed and parameters should return the same result. Determinism is not guaranteed for all providers.
sizestringExact pixel dimensions of the generated video in “WIDTHxHEIGHT” format (e.g. “1280x720”). Interchangeable with resolution + aspect_ratio.1280x720