generate_video
Create video clips from text prompts or a local reference image, then save the output locally with its file path, cost, and remaining credits.
Instructions
Generate a video clip and save it locally. Returns the file path, cost and remaining credits.
prompt: the shot - subject, action, camera move, light. model: video model id (see list_models(kind="video")), default veo-3.1-fast. aspect: "16:9", "9:16" (some models also "1:1" etc.). option: duration such as "4s", "6s", "8s"; must be one the model offers. image_path: optional local image for image-to-video (first frame / reference). Video takes 1-5 minutes; the call waits up to 10 minutes.
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 |
|---|---|---|---|
| model | No | veo-3.1-fast | |
| aspect | No | 16:9 | |
| option | No | 8s | |
| prompt | Yes | ||
| image_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |