Example Usage
import { VideoModel } from "@openrouter/sdk/models";
let value: VideoModel = {
allowedPassthroughParameters: [
"personGeneration",
"aspectRatio",
"negativePrompt",
"conditioningScale",
"enhancePrompt",
],
canonicalSlug: "google/veo-3.1-20260320",
created: 1774277148,
creativity: null,
generateAudio: true,
id: "google/veo-3.1",
name: "Google: Veo 3.1",
seed: true,
supportedAspectRatios: [
"16:9",
"9:16",
],
supportedDurations: [
4,
6,
8,
],
supportedFrameImages: [
"first_frame",
"last_frame",
],
supportedResolutions: [
"720p",
"1080p",
"4K",
],
supportedSizes: [
"1280x720",
"1080x1920",
"1920x1080",
"720x1280",
"3840x2160",
"2160x3840",
],
upscaleFactor: null,
};
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 |
creativity | number[] | ✔️ | Supported creativity levels for video upscaling models | |
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. -1 means the model accepts duration -1 and chooses the length itself. | |
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) | |
upscaleFactor | models.UpscaleFactor | ✔️ | Supported upscale factor range for video upscaling models |