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