Compare the cost of the same workload on several models
compare_llm_costsUSD cost of the same call (same token counts) on each of several models, cheapest first. Use it to pick a model or to price a switch.
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>",
"inputTokens": "<inputTokens>",
"outputTokens": "<outputTokens>"
},
"name": "compare_llm_costs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| calls | No | Number of calls like this one, e.g. per user per month. | |
| models | Yes | Model ids to compare. | |
| inputTokens | Yes | Prompt tokens per call, including any cached ones. | |
| cachedTokens | No | How many of the prompt tokens are read from the prompt cache. | |
| outputTokens | Yes | Reply tokens per call. |