VideoModel - TypeScript SDK

VideoModel type definition

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

Example Usage

1import { VideoModel } from "@openrouter/sdk/models";
2
3let 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

FieldTypeRequiredDescriptionExample
allowedPassthroughParametersstring[]✔️List of parameters that are allowed to be passed through to the provider
canonicalSlugstring✔️Canonical slug for the modelopenai/gpt-4
creatednumber✔️Unix timestamp of when the model was created1692901234
descriptionstringDescription of the modelGPT-4 is a large multimodal model that can solve difficult problems with greater accuracy.
huggingFaceIdstringHugging Face model identifier, if applicablemicrosoft/DialoGPT-medium
idstring✔️Unique identifier for the modelopenai/gpt-4
namestring✔️Display name of the modelGPT-4
pricingSkusRecord<string, *string*>Pricing SKUs with provider prefix stripped, values as strings
supportedAspectRatiosmodels.SupportedAspectRatio[]✔️Supported output aspect ratios
supportedDurationsnumber[]✔️Supported video durations in seconds
supportedResolutionsmodels.SupportedResolution[]✔️Supported output resolutions
supportedSizesmodels.SupportedSize[]✔️Supported output sizes (width x height)