estimate_cost
Calculate USD charges for uncached text chat from published QuickRouter rate tiers using model, input/output token counts, optional request count, and billing group.
Instructions
Estimate USD charges for uncached text chat from published QuickRouter rate tiers. Uses token counts per request and an optional repeat count and billing group.
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_id": "<model_id>",
"input_tokens": "<input_tokens>",
"output_tokens": "<output_tokens>"
},
"name": "estimate_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| group | No | Exact billing group ID; omit to compare published groups. | |
| model_id | Yes | Exact ID or a unique partial model ID or name. | |
| requests | No | Number of requests with the same token counts. | |
| input_tokens | Yes | Uncached text input tokens per request. | |
| output_tokens | Yes | Text output tokens per request. |