SpyBara
Go Premium

python/resources/videos/methods/download_content/index.md 2026-07-07 08:02 UTC to 2026-07-09 20:58 UTC

56 added, 0 removed.

2026
Wed 15 02:58 Tue 14 06:58 Mon 13 15:59 Sun 12 06:58 Fri 10 23:02 Thu 9 20:58 Tue 7 08:02

Retrieve video content

videos.download_content(strvideo_id, VideoDownloadContentParams**kwargs) -> BinaryResponseContent

get /videos/{video_id}/content

Retrieve video content

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)