Estimate cost
estimate_costCredits a generation would cost, without running it. Same arguments as generate. Also validates the
arguments and returns the model chosen and output width/height. credits is null when that tier has no
price, which means it cannot be submitted; otherwise it is unit_credits x num_outputs.
available_credits is the organization's spendable balance. available means the model can run at this
tier now; it does not check the balance. The job is refused when credits exceeds available_credits, or
when the model is paid_credits_only (see list_capabilities) and the organization has no purchased 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": {
"capability": "<capability>"
},
"name": "estimate_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| loras | No | ||
| model | No | ||
| inputs | No | ||
| prompt | No | ||
| project | No | ||
| quality | No | ||
| capability | Yes | ||
| duration_s | No | ||
| resolution | No | ||
| num_outputs | No | ||
| aspect_ratio | No | ||
| output_format | No | ||
| output_quality | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||