Prompt Caching Savings Calculator (LLM API Costs)
prompt_caching_savings_calculatorPrompt Caching Savings Calculator (LLM API Costs) — Estimate how much prompt caching cuts your LLM API bill: monthly input tokens, cacheable share, and hit rate give per-model savings, cache writes included.
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": {
"monthlyInputTokensM": "<monthlyInputTokensM>",
"cacheableSharePct": "<cacheableSharePct>",
"hitRatePct": "<hitRatePct>",
"modelId": "<modelId>"
},
"name": "prompt_caching_savings_calculator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| modelId | Yes | ||
| hitRatePct | Yes | ||
| cacheableSharePct | Yes | ||
| monthlyInputTokensM | Yes |