Estimate Cost
estimate_costPrice a known workload from token counts and daily calls across 1–10 models at each model’s cheapest listing, showing cost per call, day, 30 days, and cache savings.
Instructions
Price a workload on 1 to 10 models at each one's cheapest listing: dollars per call, per day and per 30 days, and with cache tokens the saving the cache makes. Use when the question is a budget or a bill: token counts and calls a day are known. Not for deciding which model is better (compare_models) or for pricing past usage from an export (price_my_usage).
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>"
},
"name": "estimate_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| models | Yes | 1 to 10 model names | |
| input_tokens | Yes | Prompt tokens per call | |
| cached_tokens | No | How many of the prompt tokens are read from the cache | |
| calls_per_day | No | Calls per day | |
| output_tokens | Yes | Answer tokens per call, including hidden thinking | |
| cache_write_tokens | No | How many of the prompt tokens are written to the cache |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||