What your AI feature will cost per month
Put in your token mix and how often you call the API. Get the cost of one call, a thousand calls and a month, then see every current model priced against the same workload. List prices read from OpenAI, Anthropic and Google on 30 November 2026.
Your workload
How AI API pricing actually works
Every vendor here charges by the token, at two different rates: one for tokens you send in and one for tokens the model writes back. Both are quoted per million tokens, which makes the headline numbers look small. The bill comes from multiplying them by volume.
monthly cost = cost per call × calls per month
Output is the expensive half
On almost every model, output costs three to five times input. That changes what you optimise. A 2,000-token prompt feels wasteful, but it is usually a fraction of a cent; a model that rambles for 1,500 tokens instead of 400 can double a bill on its own. Cap the response length before you shorten the prompt.
Cached input is the biggest lever
Chat and agent apps resend the same long prefix on every call: a system prompt, a policy document, a product catalogue. Vendors let you cache that prefix and charge a small fraction of the input price on repeat calls. For a fixed instruction set of 3,000 tokens called 20,000 times a month, caching can cut the input side of the bill by 80–90%. Set the cached share above to model it.
What moves a real bill away from this estimate
- Reasoning tokens. Vendors that bill internal thinking as output can multiply the output side several times over on hard tasks.
- Batch pricing. Asynchronous batch endpoints commonly halve list price. If your workload tolerates a delay, check the batch rate before choosing a model.
- Long-context tiers. Prompts above a few hundred thousand tokens often move to a higher rate card.
- Retries and tool loops. An agent that retries twice is three calls, not one. Log real call counts, not user actions.
- Price changes. Two are already scheduled: Gemini 4 Carbon moves to $4 / $20 per million on 1 December 2026, and Gemini 3.8 Flash to $1.50 / $7.50 on 1 January 2027. The table carries the current numbers and notes the change.
Which model should you actually pick
Cheapest is rarely the answer. Sort by the workload cost, then read the result quality for your task on a sample of 30 real inputs. The practical rule: use a small model for classification, extraction and routing, a mid-tier model for anything a customer reads, and a frontier model only where a wrong answer costs more than the tokens. Running one prompt through two models and comparing the logged token counts is worth more than any price table, including this one.
Prices: standard list rates per 1M tokens, verified 30 November 2026 against OpenAI, Anthropic and Google. Cached rates are applied where a vendor publishes one.
Frequently asked
Why is output more expensive than input?
Generating text one token at a time is far more compute-intensive than reading a prompt. On most vendors output costs three to five times input, which is why capping response length saves more than trimming the prompt.
What is cached input and when does it help?
When the same long prefix — a system prompt, a document, a catalogue — is sent on every call, most vendors charge a fraction of the input rate on repeat calls. It is the largest single discount available for chat and agent workloads.
How many tokens is a typical call?
A short chat turn is roughly 300–800 input and 150–400 output tokens; summarising a 10-page document is 8,000–12,000 input tokens; one English word is about 1.3 tokens. Replace the defaults with a logged average from your app as soon as you have one.
Do reasoning models cost more than the table shows?
If the vendor bills internal reasoning tokens as output, yes — Google states that Gemini 4 output pricing includes thinking tokens. Model the output number generously on hard tasks.
Are these the prices I will actually pay?
They are standard list prices on the date shown. Batch APIs commonly halve them, long-context tiers can double them, and resellers add margin. Confirm on the vendor page before you budget.