Skip to main content
GET
Download Gemini video
Replace <VIDEO_URL> with the returned response.generateVideoResponse.generatedSamples[0].video.uri:
Use the full returned uri, including :download?alt=media. Do not construct a file name yourself. The Google GenAI SDK can download this URI through files.download. file is the file name in the returned URL, not task_id or the entire URL. Use an API key belonging to the account that created the task. Files expire 72 hours after success and return 410 afterward.

Authorizations

Authorization
string
header
required

API key (sk-xxx)

Headers

Range
string

Optional byte range, for example bytes=0-1023.

Path Parameters

file
string
required

File name between files/ and :download in the returned URI.

Example:

"7461736b5f6578616d706c65"

Query Parameters

alt
enum<string>
default:media
required

Use media to download the binary file.

Available options:
media

Response

MP4 video file.

The response is of type file.