generate_video
Start rendering an AI presenter video from a script, avatar and voice. Returns a job id immediately; poll get_video_status until it completes. Rendering is metered and spends the user's video allowance — confirm the script first.
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": {
"script": "<script>",
"avatar_id": "<avatar_id>",
"voice_id": "<voice_id>",
"aspect_ratio": "<aspect_ratio>"
},
"name": "generate_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| script | Yes | What the presenter says (1–5000 characters). | |
| captions | No | Burn in captions (default true). | |
| provider | No | Video provider (default heygen, currently the only one). | |
| voice_id | Yes | Voice id — from list_video_voices. | |
| avatar_id | Yes | Avatar id — from list_video_avatars. | |
| aspect_ratio | Yes | Video shape. |