Estimate base token cost
calculate_costEstimate USD base token costs for 1–4 model IDs; unknown prices remain null.
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": {
"ids": "<ids>",
"inputTokens": "<inputTokens>",
"outputTokens": "<outputTokens>"
},
"name": "calculate_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | ||
| inputTokens | Yes | ||
| outputTokens | Yes |