generate_video
Create, edit, or extend videos with native audio from text prompts, reference images, or existing clips; background processing handles long jobs.
Instructions
Generate, edit or extend a video with native audio (Gemini Omni Flash). Runs in the background.
prompt: scene, camera, light, mood, dialogue/sound. For edits/extensions describe only the change. aspect_ratio: 9:16 (default when generating) or 16:9. duration_seconds: 3-15 when generating (default 8); 3-10 added seconds when extending. resolution: 360p, 720p (default), 1080p or 4k (both upscaled). reference_images: up to 6 reference/first-frame images (2 + task=image_to_video for first+last frame). video_files: one local video (<=15 s) to edit/extend (not available in EEA/CH/UK). previous_interaction_id: interaction_id of a video made here; edit/extend without re-uploading. Extensions are appended to the end, total <= 30 s. task: only if natural language is ambiguous: text_to_video, image_to_video, reference_to_video, edit, extend, upscale. delivery: inline or uri (auto uri for 1080p/4k). force_new: regenerate even if the identical request ran recently (billed again).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"prompt": "<prompt>"
},
"name": "generate_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | No | ||
| model | No | ||
| prompt | Yes | ||
| delivery | No | ||
| filename | No | ||
| force_new | No | ||
| resolution | No | ||
| video_files | No | ||
| aspect_ratio | No | ||
| duration_seconds | No | ||
| reference_images | No | ||
| previous_interaction_id | No |