Generate the video (spends credits)
generate_videoRender the video. SPENDS THE USER'S CREDITS: ask first, with the direction, settings, cost and any
watermark, and pass the cost as expected_credit_cost. External services render it; it gets a
public share page and may send account email.
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": {
"product_id": "<product_id>",
"expected_credit_cost": "<expected_credit_cost>"
},
"name": "generate_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| product_id | Yes | The product to render. Its current direction and settings are used as-is. | |
| expected_credit_cost | Yes | The cost you told the user, from get_product's video_direction.credit_cost. A stale one is refused, uncharged. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| queued | Yes | ||
| videos | Yes | ||
| next_step | Yes | ||
| product_id | Yes | ||
| workbench_url | Yes | ||
| credits_charged | Yes | ||
| opened_new_video | Yes | ||
| credits_remaining | Yes | ||
| email_on_completion | No | ||
| typical_wait_minutes | Yes | ||
| skipped_insufficient_credit | Yes |