Skip to content
Primary navigation

Retrieve video content

videos.download_content(strvideo_id, VideoDownloadContentParams**kwargs) -> BinaryResponseContent
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
video_id: str
variant: Optional[Literal["video", "thumbnail", "spritesheet"]]

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

Accepts one of the following:
"video"
"thumbnail"
"spritesheet"
ReturnsExpand Collapse
BinaryResponseContent

Retrieve video content

from openai import OpenAI

client = OpenAI()
response = client.videos.download_content(
    video_id="video_123",
)
print(response)
content = response.read()
print(content)
Returns Examples