ai_cost_estimate
Calculate exact USD cost for an LLM prompt/completion workload across models, helping you compare pricing and budget token usage.
Instructions
Calculate exact USD cost for an LLM prompt/completion workload across top models.
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": {
"inputTokens": "<inputTokens>",
"outputTokens": "<outputTokens>"
},
"name": "ai_cost_estimate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Optional model ID filter | |
| inputTokens | Yes | Number of input tokens (e.g. 1000000) | |
| outputTokens | Yes | Number of output tokens (e.g. 250000) |