Gemini Video Generation API
Submit an asynchronous Gemini Video API generation job and use the returned jobId to fetch the result.
jobId with the Video Fetch API.Authorizations
You can obtain your API key from the TTAPI Dashboard.
Body
Video prompt
"A cinematic shot of a futuristic city at sunset"
Video model.
veo-3.1-fast, veo-3.1-quality, veo-3.1-lite, omni-flash Video aspect ratio. Required.
16:9, 9:16 "16:9"
Resolution level.
720p, 1080p "720p"
Video duration (seconds). Veo 3.1 models (veo-3.1-fast, veo-3.1-quality, veo-3.1-lite) only support 8.
4, 6, 8, 10 "8"
Video generation type. frame: frame-to-video; reference: reference-image-to-video. If omitted, auto-detected by image count: 2 images = frame-to-video, 3 images = reference-to-video.
frame, reference "frame"
Reference images, up to 3. Each item must be an http(s):// URL. JPEG and PNG are supported.
3Reference or source video for editing, up to 1 (multiple video references are not supported). Each item must be an http(s):// URL. Currently available only for the omni-flash model.
1Callback URL for completion or failure notifications
"https://example.com/callback"