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.
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. |