generateVideo
Start AI video generation from a prompt. Use listModels with kind=video to check models, supported lengths, and video credit costs. Confirm the model and cost with the user first. The finished video is saved as a draft and is not published. Check progress with getVideoStatus.
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": {
"contentGroupId": "<contentGroupId>",
"prompt": "<prompt>"
},
"name": "generateVideo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | A model id from GET /v1/models?kind=video (cost shown there; default google/veo-3.1-fast). The old names veo-3.1-fast-generate-preview and veo-3.1-generate-preview still work and run on google/veo-3.1-fast and google/veo-3.1. | |
| prompt | Yes | Description of the video content to generate | |
| duration | No | Seconds. Default 8. Must be a length the model supports (see `durations` in listModels). | |
| aspectRatio | No | Default: 9:16 | |
| contentGroupId | Yes |