AI model API prices
get_model_pricesEach AI model's posted API prices in USD per 1M input, cached input and output tokens and its price at the mix of tokens agents send (the models behind the token index and the Intelligence Index chart's, each with its page), with its usage share and its 1-month change. Give a model (name or page id, e.g. "Claude Opus 5.5" or "kimi-k3") for its daily price history as its page's chart draws it (a name several models share answers with each one's prices), or a company to list its models. Every other model OpenRouter prices is on the Every AI model page (https://computescreener.com/models): give its name or id (e.g. "meta-llama/llama-3.3-70b-instruct"), any company on it (e.g. "Cohere"), or every: true to list them, with sort: "price" for the cheapest input price first. For questions like "what does Claude Sonnet cost per 1M input and output tokens?", "the cheapest AI model API" or "the cheapest provider of a model".
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_model_prices"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | "price": the cheapest input price first, then output (every model's default); "name": by company and name. A company's models otherwise come by usage, as its page lists them. | |
| every | No | List every model on the Every AI model page (/models), not only those with a page. | |
| limit | No | How many models to list (the Every AI model page lists over 300). | |
| model | No | A model's name, page id or OpenRouter id; omit to list models. | |
| company | No | List only this company's models: one of the token index's companies (Anthropic, OpenAI, Google, xAI, Meta, Moonshot AI, Alibaba, DeepSeek, Z.ai, Xiaomi, StepFun, MiniMax, Mistral, Reflection AI, NVIDIA, Thinking Machines) or any other company on the Every AI model page (e.g. "Cohere", "Amazon"). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| unit | Yes | ||
| total | No | How many models the list has before limit | |
| fields | No | What each figure of a model's row is | |
| models | Yes | ||
| license | No | ||
| sources | No | ||
| updated | No |