VideoGenerationResponse - TypeScript SDK
VideoGenerationResponse - TypeScript SDK
VideoGenerationResponse type definition
Example Usage
1 import { VideoGenerationResponse } from "@openrouter/sdk/models"; 2 3 let value: VideoGenerationResponse = { 4 id: "job-abc123", 5 pollingUrl: "/api/v1/videos/job-abc123", 6 status: "pending", 7 };
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
error | string | ➖ | N/A | |
generationId | string | ➖ | The generation ID associated with this video generation job. Available once the job has been processed. | |
id | string | ✔️ | N/A | |
pollingUrl | string | ✔️ | N/A | |
status | models.VideoGenerationResponseStatus | ✔️ | N/A | |
unsignedUrls | string[] | ➖ | N/A | |
usage | models.VideoGenerationUsage | ➖ | Usage and cost information for the video generation. Available once the job has completed. | {"cost": 0.5,"is_byok": false} |