Estimate AIOrouter Cost
aiorouter_estimate_costEstimate USD cost for an AI prompt given model, input tokens, and output tokens, using public retail pricing to calculate exact pricing.
Instructions
Estimate the cost (USD) for a prompt given model, input tokens, and output tokens. Uses public retail pricing.
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": {
"model": "<model>",
"input_tokens": "<input_tokens>"
},
"name": "aiorouter_estimate_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | Model ID (e.g., 'deepseek-v4-pro') | |
| input_tokens | Yes | Estimated input (prompt) tokens | |
| output_tokens | No | Estimated output (completion) tokens |