TokenCost Lab Multi-Turn LLM Budget Estimator
tokencost_estimateEstimate per-run, daily, and monthly LLM API and multi-turn AI agent costs across Claude 4.5 (Opus/Sonnet/Haiku), GPT-5/Mini, Gemini 2.5 Pro/Flash, and DeepSeek V3 with prompt caching and client retainer markup.
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": "tokencost_estimate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Optional provider/model filter. | |
| turns | No | Number of multi-turn agent steps per run. | |
| prompt | No | Optional sample prompt text to estimate input tokens. | |
| inputTokens | No | Explicit input token count per initial turn. | |
| daysPerMonth | No | Active days per month. | |
| outputTokens | No | Expected output tokens per turn. | |
| cachedRatioPct | No | Prompt cache hit percentage (0-100). | |
| requestsPerDay | No | Runs per day. | |
| marginMultiplier | No | Client retainer quote markup multiplier. | |
| toolTokensPerTurn | No | Tool output tokens appended per turn. |