InputVideo - TypeScript SDK

InputVideo type definition

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

Video input content item

Example Usage

1import { InputVideo } from "@openrouter/sdk/models";
2
3let value: InputVideo = {
4 type: "input_video",
5 videoUrl: "https://example.com/video.mp4",
6};

Fields

FieldTypeRequiredDescription
type”input_video”✔️N/A
videoUrlstring✔️A base64 data URL or remote URL that resolves to a video file