Estimate task cost
estimate_costQuotes the USD cost for one image or video task before ordering, without creating an order or reserving funds, so you can check pricing and set spending limits.
Instructions
Return the USD cost for one task without creating an order or reserving funds. Uses the same API pricing channel as create_task (the same account entitlements apply to Web, REST and MCP). Call this before create_task.
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": {
"modelId": "<modelId>",
"inputs": "<inputs>"
},
"name": "estimate_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inputs | Yes | Same inputs object you would pass to create_task. | |
| modelId | Yes | Public modelId from list_models. |