Confirm and spend credits
confirm_operationStep 2 of 2: holds the quoted credits and starts the work. Only call it after the user explicitly approved this exact quote and amount. Each video holds its own estimate; you pay only for what is produced and unused credits come back automatically (failures on our side are refunded). Idempotent: confirming the same quote twice starts nothing new.
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": {
"quote_id": "<quote_id>"
},
"name": "confirm_operation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quote_id | Yes | From create_project, get_estimate, request_variant or edit_video. |