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 id: "google/veo-3.1", 8 name: "Veo 3.1", 9 supportedAspectRatios: [ 10 "16:9", 11 ], 12 supportedDurations: [ 13 5, 14 8, 15 ], 16 supportedResolutions: [ 17 "720p", 18 ], 19 supportedSizes: null, 20 };
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. |
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 | |
supportedAspectRatios | models.SupportedAspectRatio[] | ✔️ | Supported output aspect ratios | |
supportedDurations | number[] | ✔️ | Supported video durations in seconds | |
supportedResolutions | models.SupportedResolution[] | ✔️ | Supported output resolutions | |
supportedSizes | models.SupportedSize[] | ✔️ | Supported output sizes (width x height) |