Skip to content
Primary navigation

Retrieve video content

videos.download_content(video_id, **kwargs) -> StringIO
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: String
variant: :video | :thumbnail | :spritesheet

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

One of the following:
:video
:thumbnail
:spritesheet
ReturnsExpand Collapse
StringIO

Retrieve video content

require "openai"

openai = OpenAI::Client.new

response = openai.videos.download_content("video_123")

puts(response)
Returns Examples