estimate_cost
The cost of a workload (input, output and cached input tokens, number of requests) at every current provider of one model, cheapest first, in USD - what the same job costs where.
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>"
},
"name": "estimate_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | model id or a name to search for | |
| requests | No | number of calls (for per-request prices) | |
| input_tokens | No | input tokens of the whole job, e.g. 1000000 | |
| output_tokens | No | output tokens of the whole job, e.g. 200000 | |
| cached_input_tokens | No | of the input, tokens read from the prompt cache |