How we source, validate, and update AI API pricing data — and where the limitations are.
Every price in the AIModelCalc calculator is sourced directly from the official pricing documentation of each provider. We do not use automated scrapers or third-party price aggregators as primary sources, because those introduce a lag and an additional point of failure.
| Provider | Primary Source |
|---|---|
| OpenAI | platform.openai.com/docs/pricing |
| Anthropic | anthropic.com/api/pricing |
| ai.google.dev/pricing | |
| Meta (Llama) | Via Together AI, Replicate, Fireworks AI pricing pages |
| Mistral AI | mistral.ai/pricing |
| xAI | x.ai/api/pricing |
| Cohere | cohere.com/pricing |
For open-source models like Llama, there is no single canonical price because different inference providers charge different rates. We use a representative mid-market rate from the major inference hosts and note this in the calculator.
Several providers offer prompt caching — where repeated portions of a prompt (like system instructions) can be cached and reused at a reduced per-token cost. The discount structure varies significantly by provider:
The AIModelCalc calculator includes a caching toggle that applies provider-appropriate cache discounts. The cache savings shown assume a cache hit rate of 100% on cached tokens — real-world hit rates will vary depending on how consistent your prompts are. Use the caching estimate as an upper bound on potential savings.
There are parts of AI API costs that our calculator doesn't model, either because they're too variable or because the data isn't publicly available:
We monitor provider pricing pages and developer communications for changes. AI pricing is volatile — providers change rates, deprecate models, and introduce new pricing tiers frequently. Our typical update timeline:
If you spot a pricing error — whether a stale rate, a wrong per-million figure, or a missing model — please report it through our contact page. Include a link to the provider's official pricing page showing the correct rate. We update quickly and appreciate the help keeping this accurate.