AI token prices
get_token_pricesToday's AI token prices by company: each company's price index in USD per 1M tokens at the mix of tokens agents send (87% cache read, 12% input, 1% output), weighted by its models' usage, with 1-day, 1-week and 1-month changes and its price trend over 13 weeks (direction, strength, score, speed per month) and its rank by the trend's strength, the order of the home page's list and of this one (sort and order give another: the cheapest first, the largest 1-month change first). Give one company to also get its models' usage shares and posted input, cached input and output prices, and its estimated spend on OpenRouter. For one model's prices use get_model_prices; for past values get_price_history. For questions like "what does Claude cost per 1M tokens?" or "which AI company's API is cheapest?".
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_token_prices"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | The order of the list's rows, as pressing a column header on the home page orders them: rank (the page's own order, its #, by trend strength), name (A to Z), or price, change_1d, change_1w, change_1m or trend (the signed trend score), each largest first. E.g. sort "price", order "asc": the cheapest company first; sort "change_1m": the largest 1-month rise first. A row without the value comes last. | rank |
| order | No | With sort: "asc" for the smallest first (name: A to Z; rank: 1 up), "desc" for the largest first. Without it: rank and name ascending, the others largest first, as the page's headers start. | |
| company | No | One company; omit for all listed companies. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | Yes | ||
| fields | No | One company's: what its models and their figures are | |
| license | No | ||
| sources | No | ||
| updated | Yes | When the token prices were last calculated (ISO 8601, UTC) | |
| age_hours | No | Hours from updated to this answer. updated is when the token file was last written, at each of the site's updates; the values are those of date, each UTC day's calculated once, after it ends | |
| companies | Yes | ||
| sorted_by | No | The order of the rows, when sort or order asked for another than the home page's own | |
| not_listed | No | The list's: the index's companies not listed today, as on no list of the site (each needs a price, a month of history and a value for each change) | |
| trend_note | No | What trend holds | |
| methodology | No |