Monthly cost of a workload
estimate_costMonthly USD cost of a workload (tokens per request, requests per day, share of input served from cache) for 1-10 models, each at its cheapest standard seller, sorted cheapest first, with the official list price for comparison. With one model it also prices every seller.
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": {
"models": "<models>",
"input_tokens": "<input_tokens>",
"output_tokens": "<output_tokens>",
"requests_per_day": "<requests_per_day>"
},
"name": "estimate_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| models | Yes | Model names or ids. | |
| cached_share | No | Share of input tokens served from the prompt cache, 0-1. Default 0. | |
| input_tokens | Yes | Input tokens per request. | |
| output_tokens | Yes | Output tokens per request (include reasoning tokens if the model thinks). | |
| requests_per_day | Yes | Requests per day; a month is 30 days. |