Estimate API cost across models
estimate_api_costEstimate the cost of a workload (tokens per request times requests) on up to six models using Kingy's currently verified standard rates. Applies long-context tiers; models without a current verified price are listed as unavailable with the reason.
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": {
"models": "<models>",
"input_tokens": "<input_tokens>",
"output_tokens": "<output_tokens>"
},
"name": "estimate_api_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| models | Yes | Models to compare, e.g. ["gpt-5.4", "gpt-6-astra"]. | |
| requests | No | Number of requests. Default 1. | |
| input_tokens | Yes | Input tokens per request, including any cached input. | |
| output_tokens | Yes | Output tokens per request, including reasoning tokens. | |
| cached_input_tokens | No | Portion of input_tokens served from the prompt cache. Default 0. |