LLM cost calculator
ai_costCost per call and for N calls of a workload on each listed model: items[] {id, usd_per_call, usd_total, fits_context}, cheapest. $0.002/call. Use to estimate what a workload costs on several LLMs before choosing one.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "ai_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| calls | No | ||
| models | No | comma-separated ids, e.g. openai/gpt-5,anthropic/claude-sonnet | |
| input_tokens | No | ||
| output_tokens | No |