Example Usage
import { VideoGenerationResponse } from "@openrouter/sdk/models";
let value: VideoGenerationResponse = {
id: "gen-vid-1789480874-Ab3dEf9hIjKlMnOpQrSt",
pollingUrl: "/api/v1/videos/gen-vid-1789480874-Ab3dEf9hIjKlMnOpQrSt",
status: "pending",
};
Fields
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
error | string | :heavy_minus_sign: | N/A | |
generationId | string | :heavy_minus_sign: | The generation ID associated with this video generation job. Available once the job has been processed. | |
id | string | :heavy_check_mark: | The video job ID, in the gen-vid-<timestamp>-<20 alphanumerics> generation ID format. Pass it as previous_job_id to continue the generation. | |
pollingUrl | string | :heavy_check_mark: | N/A | |
status | models.VideoGenerationResponseStatus | :heavy_check_mark: | N/A | |
unsignedUrls | string[] | :heavy_minus_sign: | N/A | |
usage | models.VideoGenerationUsage | :heavy_minus_sign: | Usage and cost information for the video generation. Available once the job has completed. | { “cost”: 0.5, “is_byok”: false } |