VideoModel - TypeScript SDK
VideoModel - TypeScript SDK
VideoModel type definition
The TypeScript SDK and docs are currently in beta. Report issues on GitHub.
Example Usage
1 import { VideoModel } from "@openrouter/sdk/models"; 2 3 let value: VideoModel = { 4 allowedPassthroughParameters: [], 5 canonicalSlug: "google/veo-3.1", 6 created: 1700000000, 7 generateAudio: true, 8 id: "google/veo-3.1", 9 name: "Veo 3.1", 10 seed: null, 11 supportedAspectRatios: [ 12 "16:9", 13 ], 14 supportedDurations: [ 15 5, 16 8, 17 ], 18 supportedFrameImages: [ 19 "first_frame", 20 "last_frame", 21 ], 22 supportedResolutions: [ 23 "720p", 24 ], 25 supportedSizes: null, 26 };
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
allowedPassthroughParameters | string[] | ✔️ | List of parameters that are allowed to be passed through to the provider | |
canonicalSlug | string | ✔️ | Canonical slug for the model | openai/gpt-4 |
created | number | ✔️ | Unix timestamp of when the model was created | 1692901234 |
description | string | ➖ | Description of the model | GPT-4 is a large multimodal model that can solve difficult problems with greater accuracy. |
generateAudio | boolean | ✔️ | Whether the model supports generating audio alongside video | |
huggingFaceId | string | ➖ | Hugging Face model identifier, if applicable | microsoft/DialoGPT-medium |
id | string | ✔️ | Unique identifier for the model | openai/gpt-4 |
name | string | ✔️ | Display name of the model | GPT-4 |
pricingSkus | Record<string, *string*> | ➖ | Pricing SKUs with provider prefix stripped, values as strings | |
seed | boolean | ✔️ | Whether the model supports deterministic generation via seed parameter | |
supportedAspectRatios | models.SupportedAspectRatio[] | ✔️ | Supported output aspect ratios | |
supportedDurations | number[] | ✔️ | Supported video durations in seconds | |
supportedFrameImages | models.SupportedFrameImage[] | ✔️ | Supported frame image types (e.g. first_frame, last_frame) | |
supportedResolutions | models.SupportedResolution[] | ✔️ | Supported output resolutions | |
supportedSizes | models.SupportedSize[] | ✔️ | Supported output sizes (width x height) |