SpyBara
Go Premium

python/resources/videos/methods/download_content/index.md 2026-05-02 05:57 UTC to 2026-05-05 23:00 UTC

This page contains 58 additions and 0 deletions.

2026
Tue 5 23:00 Tue 19 06:34
Data Information:
  • After 2026-05-05 06:03 UTC, this monitor no longer uses markdownified HTML/MDX. Comparisons across that boundary can therefore show more extensive diffs.

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.

Parameters

  • video_id: str

  • variant: Optional[Literal["video", "thumbnail", "spritesheet"]]

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

    • "video"

    • "thumbnail"

    • "spritesheet"

Returns

  • BinaryResponseContent

Example

import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ.get("OPENAI_API_KEY"),  # This is the default and can be omitted
)
response = client.videos.download_content(
    video_id="video_123",
)
print(response)
content = response.read()
print(content)

Example

from openai import OpenAI

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