Make the final video (uses the balance)
approve_videoApproves a draft and makes the final video, using videos from the person’s Aitvar balance (the cost is in get_video as cost_in_videos). Only call this after the person has seen the script and agreed to the cost. Pass that cost as expected_cost; nothing is charged if the price is higher.
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": {
"video_id": "<video_id>",
"expected_cost": "<expected_cost>"
},
"name": "approve_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| video_id | Yes | The video’s id (from write_video_script or list_my_videos). | |
| expected_cost | Yes | The cost_in_videos the person agreed to. |