Estimate LLM API cost
estimate_llm_costEstimates and compares LLM API cost for a workload (input, cached input and output tokens per request, times the number of requests) across current models or the ones you name, cheapest first, from list prices in the AI Wisdom model registry, each with the date it was verified.
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": {
"inputTokens": "<inputTokens>",
"outputTokens": "<outputTokens>"
},
"name": "estimate_llm_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| models | No | Model ids or names to compare. Leave empty for every current production model with a verified price. | |
| requests | No | Number of requests, for example per day or per month (default 1). | |
| inputTokens | Yes | Input (prompt) tokens per request. | |
| outputTokens | Yes | Output tokens per request. | |
| cachedInputTokens | No | Of the input tokens, how many are cache reads (priced lower where the vendor offers caching). |