AI API pricing has evolved significantly over the last 3 years. I first explored this in November 2023. OpenAI had just announced new pricing for GPT-3.5 Turbo: $1 per million input tokens. What struck me at the time was that this was a 20x decrease compared to Davinci ($20 per million tokens) in March of that year[1].
If we revisit the data today (see chart below based on 209 models from 13 providers), the good news is that the price decrease trend still holds: GPT-4’s capability cost $30.00 per million input tokens in March 2023 and similar capabilities cost $0.10 today - 300x less. But there is also some nuance.
Recent trends from model providers suggest a spectrum of model capabilities that starts from small but capable models, medium, large and extra large state of the art models. OpenAI and Anthropic each provide 4 models that represent this spectrum. For OpenAI this maps to the Luna, Terra, Sol and Astra family of models. For Anthropic this is Haiku, Sonnet, Opus and Fable.
In this post, we will anchor to GPT-4, the most capable model on sale in March 2023, when this comparison starts.
To illustrate pricing evolution, the chart below plots every model’s input price over time and draws two lines through them. The lower one follows the cheapest model on sale at GPT-4’s level or better, where GPT-4’s level is its score on the Artificial Analysis Intelligence Index[2], a benchmark that combines ten evaluations into one score per model. GPT-4 scores 6.7, against 62.3 for the most capable model today. The upper one follows the most capable model on sale.

Interactive version of Figure 1
Takeaway: Re-evaluate model choice (grounded in your evals) when a provider launches its next top model at a lower price.
Claude Opus 4.5 launched at $5.00 in November 2025, against $15.00 for the Opus before it, and Claude Fable 5.2 launched at $8.00 in November 2026, against $10.00 for the Fable before it.
Considerations: These are prices per million tokens. One study that measures the cost of running a whole benchmark finds a fixed score got 5x to 10x cheaper per year, while running the best model got 3x to 18x more expensive per year[5].
The rest of the article covers three questions: how much models with similar scores differ in price, what a whole request costs, and how much prompt caching saves on an agent run.
Models within one index point of each other can differ 33x in price
Two models within one point of each other on the index are close to interchangeable on these tests. Claude Opus 4.8 and GLM-5.3-Flash are one such pair. The first costs $5.00 per million input tokens and the second $0.15, 33x less. That is the widest gap, but it is not a one-off: 39 pairs of models on sale with a measured score sit within one point of each other, and in the median pair the more expensive model costs 2x the cheaper one. Large price gaps also appear near the top of the index. The most capable model, Claude Fable 5.2, costs $8.00. Gemini 4 Carbon scores within five points of it and costs $2.00, 4x less.

Interactive version of Figure 2
Takeaway: Where possible, keep your application model-agnostic, build evals for the tasks you care about, start with the cheapest model that meets your capability bar, and move up only if it fails those evals.
The best open-weight model on sale, Kimi K3.1 Pro, scores 50.7 against 62.3 for the most capable model, and costs $2.00.
If your workload mixes easy and hard requests, send each request to the cheapest model that can do it. Microsoft Foundry’s model router and Amazon Bedrock’s intelligent prompt routing are managed versions of this[3][4].
Reconsider if you need low latency, a specific tool-use format, data residency or an enterprise contract.
Considerations: Open-weight models do not share one licence. DeepSeek ships under MIT, while the largest recent releases from Qwen and MiniMax carry their own licences with conditions on commercial use[6][7][8]. A downloadable model also has to be served by someone, and hosts price it differently. Llama 3.3 70B costs $1.04 per million tokens on Together, and the cheapest of the providers behind OpenRouter lists it at $0.10 in and $0.32 out[9][10].
A model with a lower input price can cost more per request (hint: reasoning tokens)
Most price comparisons quote the input price. But a request is billed for two things: the tokens you send (input) and the tokens the model generates (output). Output tokens cost more. Across the models on sale, the median output price is 5x the input price.
Take two models. Gemini 4 Hydrogen charges $1.50 per million input tokens and $7.50 per million output tokens. Grok 4.7 charges $2.00 and $6.00. Gemini 4 Hydrogen looks cheaper, because its input price is 25% lower. Now send both a request with 8,000 input tokens and 4,000 output tokens. Gemini 4 Hydrogen costs $0.042 and Grok 4.7 costs $0.040. The model with the higher input price is the cheaper one.
Grok 4.7’s lead grows with reasoning models, which generate reasoning tokens before the answer, and providers bill those tokens as output[11]. Across the 24 models for which Artificial Analysis splits output into reasoning and answer tokens, a median 67% of output tokens are reasoning, and a task on the index uses a median of 62,200 output tokens[2]. With 8,000 input tokens and 62,200 output tokens, the request costs $0.48 on Gemini 4 Hydrogen and $0.39 on Grok 4.7: the model with the lower input price costs 23% more. At 8,000 input tokens, the two models cost the same at about 2,700 output tokens. Below that, Gemini 4 Hydrogen is cheaper; above it, Grok 4.7 is. In general, Grok 4.7 is cheaper whenever a request's output, counting reasoning tokens, is more than about a third of its input. The interactive version of the figure below lets you try your own token counts.

Interactive version of Figure 3
Takeaway: Compare models by cost per request, using token counts you have measured.
Run your own workload through each candidate model, log the billed input and output tokens, then multiply by each model’s prices.
A reasoning effort setting, which tells a model how much to reason, changes how many output tokens a request uses, so it changes the bill[11].
Reconsider if your inputs are long and your outputs short, as in retrieval or classification: there the input price decides the cost, so comparing input prices is enough.
Prompt caching cuts the cost of a 20-turn agent run by 66%
An agent calls a model in a loop, and it resends its whole context on every turn: the system prompt, the tool schemas and every turn before it. Total input tokens therefore grow with the square of the number of turns, while total output grows in proportion to them. In the run below, an agent starts with 4,000 tokens of system prompt and tool schemas, adds 900 tokens to the context each turn and writes 700 output tokens per turn, at the list prices of Claude Sonnet 5.5. Input is 78% of the bill by turn 20.
With prompt caching, the provider keeps the start of the prompt that it has already processed (the prefix) and charges a fraction of the input price to read it again, 5% of it on Claude Sonnet 5.5[12]. By turn 20 the cached run costs $0.22 against $0.64 without caching, a saving of 66%.

Interactive version of Figure 4
Takeaway: Keep the prompt prefix stable so it caches, and budget at the cached rate.
Put everything static first (system prompt, tool schemas, examples), and never interpolate a timestamp, a request id or a shuffled tool order into it. One changed byte near the front invalidates everything after it[13].
At 60 turns, the run without caching costs 5.5x the cached run.
Reconsider if your loop is slow or bursty. Cache entries expire (five minutes by default on Claude, with a one-hour option that costs more to write), so the first turn after a longer pause pays the full input price again[13].
Considerations: The run assumes that every turn reads from the cache and that the context only grows. An agent that prunes or summarises its context changes the prefix, so its later turns read less from the cache. Writing to the cache is priced differently by each provider: Anthropic charges 1.25x the input price for a five-minute entry, OpenAI charges 1.25x on GPT-5.6 and later and nothing on earlier models, and Google bills for the time that a cache you create explicitly is stored[12][14][15].
Every price has a date and a link to its source in the full table.
References
Artificial Analysis (2026). Artificial Analysis Intelligence Index v4.3.2 (ten evaluations; a score that Artificial Analysis has estimated is labelled ‘Estimate (independent evaluation forthcoming)’) (read 2026-09-28)
Amazon Web Services (2026). Amazon Bedrock Intelligent Prompt Routing (routes each prompt between two models of one family) (accessed 2026-09-28)
Gundlach, Lynch, Mertens & Thompson (MIT FutureTech) (2025). The Price of Progress: Price Performance and the Future of AI (’the price for a given level of benchmark performance has decreased remarkably fast, around 5x to 10x per year’; ‘the price of running frontier models is rising between 3x to 18x per year’) (arXiv preprint, accessed 2026-09-28)
DeepSeek (2026). DeepSeek-V4.1-Flash model card (licence: MIT) (accessed 2026-09-28)
Alibaba Cloud (2026). Qwen3.8-2.4T-A95B licence file (Qwen3.8-Max License: a hosted-inference business above a revenue threshold ‘shall obtain a separate license from Qwen’ for commercial use) (accessed 2026-09-28)
MiniMax (2026). MiniMax-M3 licence file (’to deal in the Software for non-commercial purposes’) (accessed 2026-09-28)
Together AI (2026). Llama 3.3 70B on Together AI ($1.04 per 1M tokens, input and output) (accessed 2026-09-28)
OpenAI (2026). Reasoning models guide (’reasoning tokens ... are billed as output tokens’) (accessed 2026-09-28)
OpenAI (2026). Prompt caching guide (’For GPT-5.6 and later, cache writes cost 1.25x the standard, uncached input-token rate’) (accessed 2026-09-28)
Google (2026). Context caching, Gemini API (explicit caches are billed for ‘the amount of time cached tokens are stored’) (accessed 2026-09-28)


