Create a paid generation task
create_taskCreate an image, video, music, or audio generation task. This action can spend account balance. First call get_model, show the user the selected model and published price, and obtain explicit confirmation. Set confirm_charge=true only after that confirmation. Reuse the same idempotency_key and identical body after an uncertain response.
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": {
"model": "<model>",
"operation": "<operation>",
"input": "<input>",
"idempotency_key": "<idempotency_key>",
"confirm_charge": "<confirm_charge>"
},
"name": "create_task"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | ||
| model | Yes | ||
| operation | Yes | ||
| confirm_charge | Yes | ||
| idempotency_key | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes |