Cancel generation
cancel_generationCancel a queued image or video generation before it is submitted to the provider and refund the reserved credits to your account.
Instructions
Cancel a reserved generation before provider submit and refund credits.
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": {
"generationId": "<generationId>"
},
"name": "cancel_generation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| generationId | Yes |