token_cost_estimate
Estimate dollar cost and wall-clock time for LLM token usage using model-specific pricing and token-to-time mapping, including input/output/overhead breakdowns.
Instructions
Estimate wall-clock time AND dollar cost for LLM token usage.
Combines token-to-time mapping with model-specific pricing data. Returns cost breakdown (input/output/overhead) alongside the time estimate. Use token_time_bridge when you only need wall-clock time and not dollar cost.
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": {
"tokens": "<tokens>",
"model": "<model>"
},
"name": "token_cost_estimate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | LLM model identifier. Unknown models fall back to generic estimates. | |
| tokens | Yes | Total number of tokens in the LLM request (prompt + completion). | |
| task_type | No | Optional task type for feedback matching. | |
| tool_calls | No | Number of tool calls expected in the agentic loop. | |
| reasoning_depth | No | Expected depth of chain-of-thought reasoning. | moderate |