Price a workload across models
calculate_model_arbitrageNo API key needed; only model is required (e.g. {"model": "gpt-6.1-sol"}, defaults 2,000 tokens in and 400 out). Price a workload at list prices across models: cost per request and per month for the requested model, its cheaper sibling, and the effect of prompt caching. The result names the pricing table version it used.
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>"
},
"name": "calculate_model_arbitrage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | model id, e.g. gpt-6.1-sol or claude-sonnet-5-5 | |
| compare_to | No | ||
| input_tokens | No | per request; default 2000 | |
| output_tokens | No | per request; default 400 | |
| static_tokens | No | portion of input_tokens that is a fixed prefix (system + tools) | |
| requests_per_month | No |