Skip to content
Primary navigation

Retrieve video content

client.videos.downloadContent(stringvideoID, VideoDownloadContentParams { variant } query?, RequestOptionsoptions?): Response
GET/videos/{video_id}/content

Download the generated video bytes or a derived preview asset.

Streams the rendered video content for the specified video job.

ParametersExpand Collapse
videoID: string
query: VideoDownloadContentParams { variant }
variant?: "video" | "thumbnail" | "spritesheet"

Which downloadable asset to return. Defaults to the MP4 video.

One of the following:
"video"
"thumbnail"
"spritesheet"
ReturnsExpand Collapse
unnamed_schema_5 = Response

Retrieve video content

import OpenAI from 'openai';

const client = new OpenAI();

const response = await client.videos.downloadContent('video_123');

console.log(response);

const content = await response.blob();
console.log(content);
Returns Examples