AI API pricing explained: tokens, caching, batch and long context
How OpenAI, Claude, Gemini, DeepSeek and Mistral charge for API use, why output costs more than input, and the four modifiers that change your real rate.
Practical calculators for developers, founders and teams anywhere. Everything runs in your browser, and prices link to their official sources. Last price check: November 12, 2026.
How OpenAI, Claude, Gemini, DeepSeek and Mistral charge for API use, why output costs more than input, and the four modifiers that change your real rate.
A five-step method to turn a feature idea into a monthly token budget, with a worked example, a short Python helper and the costs teams usually forget.
Cached input can cost a small fraction of normal input. Here is how OpenAI, Claude, Gemini and DeepSeek price caching, the break-even logic and how to structure prompts for it.
Price per token is one line on the list. Test quality on your own task, then check context, limits, data handling, regional pricing and how the provider retires models.
Most major providers offer about half-price processing for jobs that don’t need an instant answer. What qualifies, how it works and what to watch for.
Tokenizers split text differently, so one prompt can be a different number of tokens on each model. Rules of thumb, real counting methods and why language matters.