Estimate LLM Cost
estimate-llm-costCost a workload with EXACT numbers the caller supplies: arbitrary token counts per request and any monthly volume, not just the 10k/100k/1m presets the other cost tools use. Use this for 'about 800 in and 200 out, 4 million calls a month', or to price one named model across every use-case profile. To compare 2-4 named models like for like at a preset volume, use compare-models-side-by-side instead. Provide a model name to get detailed cost breakdowns, or compare costs across all use case presets. Each figure comes twice: list price, and the optimized price achievable with prompt caching and the batch API. The presets carry their own cache-hit and batch assumptions; a custom token shape carries none unless cacheHitRate and/or batchEligible are passed with it, and each cost entry states which applied in optimizationBasis. Cost figures are final as returned: rounded server-side and dated by provenance, with the lever behind each saving, or the reason there is none, named in the text.
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": "estimate-llm-cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| modelName | No | Model name, e.g. 'GPT-4o'. A partial name matches up to 5 models and ALL of them are costed. If omitted, the first 8 catalogue entries are used — that is catalogue order, not a quality ranking. | |
| cacheHitRate | No | Share of input tokens served from the prompt cache, 0 to 1: for example 0.6 for a stable system prompt and tool definitions re-sent on every call. Only valid with customInputTokens and customOutputTokens; the presets carry their own and cannot be overridden. Omitting it means no caching is assumed, not that none is achievable. | |
| batchEligible | No | Whether this workload is asynchronous and can go through the batch API. Only valid with customInputTokens and customOutputTokens; the presets carry their own. Omitting it means no batch discount is assumed, not that the workload is ineligible. | |
| monthlyVolume | No | Exact monthly request count, any integer (default 100,000). This tool does not take the 10k/100k/1m presets the other cost tools use. | |
| useCasePreset | No | Workload shape, which sets tokens per request: supportTicket (1.5k in / 500 out), knowledgeQA (2k / 800), meetingSummary (10k / 1.2k, batch-eligible), marketingContent (2.5k / 1.8k), codingTask (3k / 2k), invoiceProcessing (1.5k / 600, batch-eligible), callSummary (2k / 700, batch-eligible), agentWorkflow (6k / 3k). Default: every preset. | |
| customInputTokens | No | Custom input tokens per request. Must be supplied TOGETHER with customOutputTokens — either alone is ignored and the preset is used. A custom shape assumes no cacheable prefix and no batch eligibility unless cacheHitRate / batchEligible say otherwise, so without them its optimized cost equals its list cost. | |
| customOutputTokens | No | Custom output tokens per request. Must be supplied TOGETHER with customInputTokens — either alone is ignored and the preset is used. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| source | Yes | ||
| volume | Yes | ||
| eloAsOf | Yes | ||
| dataAsOf | No | ||
| modelCosts | Yes | ||
| provenance | No |