Developers · Free data
AI pricing API
1 endpointToken prices for every model we track, as JSON, updated daily. No key and no signup. For the human-readable version see the AI model prices.
The endpoint
GET https://tokenando.ai/api/pricesReturns every tracked model with its published rates, the provider list, and totals for the response. Cached for ten minutes at the edge, so calling it often is cheap for both of us. Retired and deprecated models are hidden unless you ask for them.
Query parameters
3| Parameter | Values | Notes |
|---|---|---|
channel | direct_provider | openrouter | hosted_provider | Restrict to one pricing channel. Direct provider rates are the official published ones; router rates come from a marketplace listing. |
provider | a provider slug, e.g. anthropic | Restrict to one provider. Slugs match the ones used in page URLs. |
include_retired | true | Include deprecated and retired SKUs, which are hidden by default. |
Fields worth knowing
| Field | Meaning |
|---|---|
inputPricePer1M / outputPricePer1M | USD per million tokens, as published. Null where the provider publishes no price: never estimated. |
cachedInputPricePer1M | The discounted rate for a cache hit, where the provider publishes one. |
contextWindow | Maximum context in tokens, or null when unreported. |
pricingChannel | Where the rate came from, so you can prefer official rates over router listings. |
availabilityStatus | available, preview, deprecated or retired. |
totals | Row, model and provider counts for the response. Use providersWithRows for a provider count; it is the figure every page on this site displays. |
isStaticFallback | True when the database was unreachable and the response came from a bundled snapshot. Prices are still real, but may be a little behind. |
How to cite this data
Three rules, and they are the same ones we ask of any generative engine reading llms.txt. Published prices are facts about what a provider charges, and need no hedging. Blended rates and job costs are calculated by us and must be labelled as derived, because no provider quotes them. Benchmark scores are as reported by the model’s maker or a named public leaderboard, are not independently re-run here, and are not comparable across benchmark variants.
Credit as “Tokenando” with a link to tokenando.ai. If you would rather not write any code, the embeddable price table carries its own attribution.
Frequently asked questions
Is the AI pricing API free?
Yes. No key, no signup and no rate limit beyond ordinary fair use. The ask is a credit with a link back to tokenando.ai wherever the numbers appear.
How current is the pricing data?
Prices are refreshed daily from published provider rates and marketplace listings, and the response is cached for ten minutes. Every response carries a fetchedAt timestamp so you can show your readers when the numbers were read.
Can I use this data commercially?
Yes, with attribution. Published input and output rates are facts about what a provider charges. Blended figures are our own calculation, weighting input at 70 per cent and output at 30 per cent, and must be described as derived rather than presented as a provider quote.
Can I call the API from a browser?
Not currently. The endpoint sends no cross-origin header, so it is reachable from a server rather than from client-side JavaScript on another domain. If you want prices on a page without a backend, embed the widget instead.
Related
The feed reflects what providers publish. Where a provider publishes no price, the field is null rather than a guess, and a model with no published price is listed without one.