Generate a video
generate_videoUse to make a video clip from a prompt, or to animate an image (image_url as the first frame). Priced per second by model and resolution (default Gemini Omni Flash: 17 credits/s at 720p); call recommend_video_model or estimate_generation first for anything over 100 credits. Credits are reserved and refunded on failure. Waits ~40 s, then returns the job; the user sees it in a card. Poll check_job.
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 |
|---|---|---|---|
| audio | No | Sound, where the model makes it. | |
| model | No | Video model id; the default if omitted. | |
| theme | No | A brand kit (name, id or 'default') to keep it on brand. | |
| prompt | Yes | What happens: subject, action, camera, sound. | |
| duration | No | Seconds; fitted to what the model allows. | |
| character | No | A saved Character (name or id); for their exact face, start from a generate_image frame made with character. | |
| image_url | No | Start frame (http URL from confirm_upload or search_assets). | |
| resolution | No | A price tier the model offers, e.g. 480p, 720p, 1080p. | |
| aspect_ratio | No | Default 16:9; with image_url the image's own shape unless set. |