Spend credits on a quote
confirm_spendSpends the credits a quote priced and starts the work it priced: a take, the film or a redo. Call it only after the user agreed to that quote's price. Apps that can ask the user show them the price and ask before anything is spent. Returns the job; read it with get_job. The same quote never spends twice: calling again answers the same job.
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": "<quote>"
},
"name": "confirm_spend"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quote | Yes | The quote id from quote, which the user agreed to. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| kind | Yes | ||
| error | Yes | ||
| result | No | ||
| status | Yes | ||
| retryAfterSeconds | Yes |