Skip to content
For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to the page URL.
Primary navigation
Theme

Download video content

videos.download_content(video_id, **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.

Download video content

from openai import OpenAI

client = OpenAI()
response = client.videos.download_content(
    video_id="video_123",
)
print(response)
content = response.read()
print(content)
Parameters
video_id: str
variant: Optional[Literal["video", "thumbnail", "spritesheet"]]

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

Returns
BinaryResponseContent
Returns Examples