Generate video
generate_videoCreate video clips from text prompts with native audio, optionally using first/last frames or reference images. Submit the job and retrieve the result by job ID.
Instructions
Start a video clip with native audio from a text prompt, optionally from a first frame, first+last frames, or reference images. Default omni (Gemini Omni Flash: 3-10s, cheap 360p drafts up to 4K, up to 10 references). On Vertex AI the default is Veo lite; fast/standard add Veo 4K and ingredients. Veo is leaving the Gemini API (list_models has the date). estimate_cost prices any option. Asynchronous: returns a jobId; then call get_video.
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 |
|---|---|---|---|
| seed | No | Seed for more repeatable results (Vertex AI only; ignored on the Gemini API). | |
| image | No | Optional first frame (image-to-video): file path, gemini-media:// URI or data: URI. | |
| model | No | Model ID or alias: omni (default on the Gemini API: Gemini Omni Flash, best prompt adherence, editable and extendable to 40 s), lite (cheapest Veo; the default on Vertex AI), fast (Veo 4K, ingredients) or standard (highest Veo quality). Veo is leaving the Gemini API: list_models shows its shutdown date. See list_models. | |
| prompt | Yes | What happens in the clip: subject and action, camera movement, setting, lighting, style, and sound (dialogue in quotes, sound effects, ambience, music). | |
| lastFrame | No | Optional last frame; requires image. Veo interpolates between the two. | |
| outputName | No | Optional base file name for the saved video. | |
| resolution | No | 720p (default), 1080p or 4k (not lite); omni also 360p for fast drafts. Veo 1080p and 4k require 8-second clips. | |
| aspectRatio | No | 16:9 (default) or 9:16 | |
| waitSeconds | No | Block up to this many seconds for the result (default 0 = return a job handle immediately). Keep under your client's tool timeout. | |
| generateAudio | No | Vertex AI only: set false for silent video at a lower price. The Gemini API always generates audio. | |
| negativePrompt | No | What to avoid, as plain nouns (e.g. 'text overlays, blur'). For omni it is appended to the prompt. | |
| approvedCostUsd | No | Only needed above the confirmation threshold: the cost in USD the user approved. | |
| durationSeconds | No | Clip length: Veo 4, 6 or 8 seconds; omni 3-10 seconds (default 8). | |
| referenceImages | No | Images of characters, objects, products or styles to keep consistent: Veo fast/standard up to 3 (forces 8s, not with image/lastFrame); omni up to 10 including frames (name them <IMAGE_REF_0>... in the prompt). | |
| personGeneration | No | allow_all, allow_adult or dont_allow. The Gemini API requires allow_all for text-to-video and allow_adult for image-based modes. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cost | Yes | ||
| next | No | Suggested next step | |
| error | No | ||
| files | No | ||
| jobId | Yes | Opaque handle; pass it to get_video, extend_video or edit_video | |
| model | Yes | ||
| state | Yes | working, completed, failed or filtered | |
| warnings | No | ||
| elapsedSeconds | Yes | ||
| remoteExpiresAt | No | When Google deletes the server-side copy; extend before this time |