AI inference cost is what you pay to run a trained model rather than to build one, and nearly every provider bills it in dollars per million tokens. Checked on August 5, 2026, frontier models list at roughly $2 to $10 per million input tokens and $10 to $50 per million output tokens, while capable small and open-weight models run from $0.03 to $1.50 on input. Unit prices keep falling fast, and enterprise AI bills keep rising anyway, because reasoning tokens, agent loops, retries and longer contexts multiply how many tokens each request burns. Below are the current numbers, the arithmetic, and the levers that reliably cut spend.

How token pricing actually works
A token is a chunk of text, roughly four characters of English, so a thousand tokens is about 750 words. Every provider meters the same few quantities.
- Input tokens are everything you send: system prompt, retrieved documents, conversation history, tool definitions and the user’s message.
- Output tokens are what the model generates, priced at four to six times input on most families. Verbose answers cost more than long questions.
- Cached input tokens are repeated input the provider already holds in memory, priced at 10 percent of base input at OpenAI, Anthropic and Google alike. Anthropic charges a write premium of 1.25 times base input for its five-minute cache and 2.0 times for the one-hour cache.
- Batch processing returns results asynchronously, usually within 24 hours, at 50 percent off standard rates across all three providers.
- Long-context surcharges apply on several models. OpenAI lists a long-context tier that roughly doubles input prices, and Gemini 3.1 Pro moves from $2 and $12 to $4 and $18 above a 200,000-token prompt.
A headline price therefore tells you little about what a model will cost you. Your input-to-output ratio, your cache hit rate and whether the model reasons first all matter more.
Current cost per million tokens, checked August 5, 2026
These come from the providers’ own pricing pages, cross-checked against a public aggregator for the open-weight hosts. Rates change often, so treat this as a dated snapshot.
| Model | Input | Cached input | Output |
|---|---|---|---|
| gpt-5.6-sol | $5.00 | $0.50 | $30.00 |
| gpt-5.6-terra | $2.00 | $0.20 | $12.00 |
| gpt-5.4-mini | $0.75 | — | $4.50 |
| gpt-5.6-luna | $0.20 | $0.02 | $1.20 |
| Claude Fable 5 | $10.00 | $1.00 | $50.00 |
| Claude Opus 5 | $5.00 | $0.50 | $25.00 |
| Claude Sonnet 5 | $2.00 | $0.20 | $10.00 |
| Claude Haiku 4.5 | $1.00 | $0.10 | $5.00 |
| Gemini 3.1 Pro (≤200K) | $2.00 | $0.20 | $12.00 |
| Gemini 3.6 Flash | $1.50 | $0.15 | $7.50 |
| Gemini 3 Flash | $0.50 | — | $3.00 |
| Gemini 3.1 Flash-Lite | $0.25 | $0.025 | $1.50 |
| DeepSeek V4-Flash | $0.14 | $0.0028 | $0.28 |
| DeepSeek V4-Pro | $0.435 | $0.003625 | $0.87 |
| Qwen3.7 Flash | $0.03 | — | $0.13 |
| Kimi K2.5 | $0.60 | — | $3.00 |
| GLM-4.5-Air | $0.20 | — | $1.10 |
| MiniMax M3 | $0.30 | — | $1.20 |
| Mistral Small 4 | $0.15 | — | $0.60 |
All figures in dollars per million tokens. The spread between the cheapest usable hosted model and a frontier flagship now exceeds 150 times on input. That gap, not any single price cut, is the central fact in AI cost management, since most workloads do not need the top of the range.
Prices fall, bills rise: both are true
Two credible sources anchor the cost of ai inference decline, and both are narrower than the way they usually get repeated.
Stanford HAI’s AI Index, 2025 edition, found that inference pricing for a system performing at GPT-3.5 level, defined as 64.8 percent on MMLU, fell from about $20 per million tokens in November 2022 to about $0.07 by October 2024, with Gemini 1.5 Flash-8B as the endpoint. That is roughly a 280-fold decline in 18 months.
280×
Decline in cost for GPT-3.5-level inference, November 2022 to October 2024, per Stanford HAI’s AI Index.
~3.2 quadrillion
Tokens Google now processes monthly, about seven times the prior year, per Sundar Pichai at Google I/O, May 20, 2026.
Epoch AI measured six benchmarks over three years and found declines from 9 times to 900 times per year depending on which capability threshold you fix. Matching GPT-4 on GPQA Diamond, a set of PhD-level science questions, got about 40 times cheaper per year. Epoch cautions that the fastest declines may not persist.
Read those carefully. The cost of yesterday’s capability collapses; the cost of today’s frontier capability does not. Flagships have sat between roughly $2 and $15 per million input tokens for three years, because labs price the top of the lineup against willingness to pay.
Total spend still climbs, which is Jevons paradox: making a resource cheaper to use can raise consumption enough to raise the bill. Analyst estimates put inference at 60 to 70 percent of an approximately $400 billion AI accelerator market in 2026, up from roughly 40 percent in 2023, and at 80 to 90 percent of a model’s lifetime compute. Published 2026 capital expenditure plans put Amazon near $200 billion, Alphabet at $175 to $185 billion, Meta at $115 to $135 billion and Microsoft in the same league.

Why caching is the biggest single lever
Most production prompts are mostly boilerplate. The same instructions, tool schemas and retrieved documents get re-sent on every call, and caching turns that repeated prefix into 10 percent of full price.
A worked example any business can copy. A support assistant on Claude Sonnet 5, at $2 input and $10 output, handles 100,000 conversations a month. Each sends an 8,000-token static block of instructions and knowledge plus about 500 tokens of user text, and returns about 400 tokens.
- No caching. Input is 8,500 tokens times 100,000 conversations, or 850 million tokens, at $2 per million equals $1,700. Output is 40 million tokens at $10 per million equals $400. Total $2,100 a month.
- Caching at an 80 percent hit rate. Of 800 million static tokens, 640 million are cache reads at $0.20 per million ($128) and 160 million are cache writes at $2.50 ($400). Variable input is 50 million at $2 ($100) and output is unchanged at $400. Total $1,028, a 51 percent cut.
- Caching at a 95 percent hit rate. Reads are 760 million at $0.20 ($152), writes 40 million at $2.50 ($100), variable input $100, output $400. Total $752, a 64 percent cut.
The gap between those two scenarios is the whole discipline of caching. Cache writes cost more than uncached input, so a badly designed cache loses money. Put the breakpoint on the last byte-identical block, keep volatile content after it, and keep traffic warm enough that the cache does not expire, which on Anthropic’s default is five minutes. Minimum cacheable length varies from 512 tokens on Claude Opus 5 to 4,096 on Haiku 4.5.
Reasoning models and the hidden thinking-token bill
Reasoning models generate an internal chain of thought before answering. Those thinking tokens bill at output rates and you usually never see them. CloudZero’s July 2026 analysis of Gemini pricing put them at 70 to 85 percent of the total output bill on complex reasoning tasks. That is the most common reason a forecast misses by a factor of five. Budget 400 output tokens per answer, have the model spend 1,600 reasoning first, and your output line is five times the estimate.
Set an explicit reasoning budget
Set an explicit reasoning effort or thinking budget wherever the API exposes one, and default it low.
Cap maximum output tokens
Cap maximum output tokens on every call. An unbounded cap is an unbounded bill.
Log thinking tokens separately
Log thinking tokens separately from visible output from day one, or you cannot explain your own spend.
Test whether reasoning helps
Test whether reasoning helps your task at all. On classification, extraction and routing it usually does not.
Why agents multiply token spend
Agents are why ai infrastructure costs rise even where prices fell. Three mechanisms compound.
Context re-sending
Each loop step resends the accumulated conversation, tool outputs and observations, so consumption grows quadratically with steps rather than linearly.
Multi-step loops
A task that takes 12 tool calls bills 12 requests, each with its own reasoning tokens, plus retries on failure.
Multi-agent fan-out
Anthropic reported that its multi-agent research system consumed roughly 15 times the tokens of a normal chat, and that token usage explained most of the performance variance. The quality gain was bought with tokens.
Second worked example. A research agent on Gemini 3.1 Pro at $2 input and $12 output runs a 12-step task. Context starts at 6,000 tokens and grows about 1,500 per step, so total input is 171,000 tokens. Each step produces about 400 visible tokens plus about 1,600 thinking tokens, or 24,000 output tokens.
Input: 171,000 tokens at $2 per million equals $0.342. Output: 24,000 tokens at $12 per million equals $0.288. Total: about $0.63 per completed task, against a naive estimate of about $0.017 for one 6,000-token prompt and one 400-token answer. The real cost is roughly 37 times the guess.
At 5,000 tasks a day that is about $95,000 a month. Caching around 90 percent of the re-sent prefix brings the task to roughly $0.35 and the month to roughly $53,000. Nothing there is exotic, and it explains why teams that piloted on a $20 monthly bill get a five-figure invoice the month they ship. Cost the loop before you build it, the same way you would scope any other application development work.
Self-hosting break-even math
In an August 1, 2026 provider survey, on-demand H100 80GB rentals ranged from about $2.19 to $11.06 per GPU-hour, with mid-tier specialists between $2.89 and $3.99.
Take one H100 at $2.79 per GPU-hour, or about $2,037 a month running continuously whether you use it or not. Published 2026 benchmarks put a 70-billion-parameter class model with W4A8 quantization on a single H100 at roughly 4,800 tokens per second at batch size 32, which is about 17.3 million tokens per hour, or about $0.16 per million tokens.
At full batch, self-hosting is very cheap. Sixteen cents per million tokens beats every hosted API on this page. At batch one, it is not. A single user getting roughly 100 tokens per second consumes about 360,000 tokens per hour, or about $7.75 per million tokens. Utilization is the whole variable. Serve 20 million tokens a month on that GPU and your effective rate is about $102 per million, against $1 and $5 for Claude Haiku 4.5.
The comparison must be quality-matched. Against a frontier model at a blended $10 per million tokens, break-even is about 204 million tokens a month, or 78 tokens per second sustained. But one H100 is not serving frontier-class quality, so that flatters self-hosting. Against Qwen3.7 Flash at $0.03 and $0.13, a single GPU cannot win at all.
Self-hosting pays with steady high-volume traffic that keeps batches full, a data-residency or latency rule that forces it, or a fine-tuned model nobody else hosts. It rarely pays for spiky workloads, and the cost teams underestimate is not the GPU, it is the people.
A practical cost-control checklist
In rough order of return on effort, the levers that move the number.
- Route by task, not by preference. Send classification, extraction, routing and formatting to the cheapest model that passes evaluation, and reserve the flagship for requests that need it. This alone often cuts spend by half.
- Implement prompt caching properly, with a stable prefix, the breakpoint on the last identical block, volatile content after it, and monitoring on the hit rate. Treat a falling hit rate as an incident.
- Cap output tokens on every call and set reasoning effort explicitly. Unbounded output is the most common source of runaway cost.
- Move anything not user-facing to the Batch API for a flat 50 percent discount. Nightly enrichment, backfills and evaluation runs all qualify.
- Trim context. Retrieve three relevant chunks instead of twenty and drop tool definitions this call does not need.
- Evaluate before you scale. Measure quality per dollar across two or three models on a small labelled test set. Choosing a model by vibes is the most expensive decision here.
- Instrument per-feature cost and set budget alerts at the project and API-key level. Providers expose usage limits, and almost nobody turns them on before the first bad invoice.
- Try a smaller or fine-tuned model once a task is stable — the argument behind Small Language Models and Domain-Specific LLMs — and add an application-layer semantic cache, since repeat questions need no model call at all.
None of this requires new infrastructure. It requires knowing which meter your spend sits in and measuring before the bill arrives. Treat an AI feature the way you would treat any other build budget, the same discipline behind our breakdown of how much does a website cost, and the same discipline that makes marketing automation predictable rather than surprising.
Frequently Asked Questions
What does AI inference cost per million tokens in 2026?
Checked on August 5, 2026, frontier models list at roughly $2 to $10 per million input tokens and $10 to $50 per million output tokens: Claude Opus 5 at $5 and $25, gpt-5.6-sol at $5 and $30, Gemini 3.1 Pro at $2 and $12. Cheaper capable models run far lower, with Qwen3.7 Flash at $0.03 and $0.13 and DeepSeek V4-Flash at $0.14 and $0.28.
Why is my AI bill rising if token prices are falling?
Because token consumption is growing faster than unit prices are dropping. Reasoning models bill invisible thinking tokens at output rates, agent loops resend a growing context on every step, and multi-agent systems can consume around fifteen times the tokens of a single chat. Google’s own disclosed volume rose about sevenfold in a year, to roughly 3.2 quadrillion tokens a month.
How much can prompt caching actually save?
Cache reads cost 10 percent of base input at OpenAI, Anthropic and Google, so savings scale with your hit rate and with how much of your prompt is static. In the worked example above, a support assistant with an 8,000-token static prompt saved 51 percent at an 80 percent hit rate and 64 percent at 95 percent. Cache writes cost more than normal input, so a badly designed cache can raise your bill.
Is self-hosting an open-weight model cheaper than paying an API?
Only with high, steady utilization. A single H100 at about $2.79 per GPU-hour costs roughly $2,037 a month whether you use it or not, and only reaches about $0.16 per million tokens when batches stay full. At 20 million tokens a month the effective rate is over $100 per million tokens, which is far worse than a hosted small model.
How do batch and off-peak discounts work?
OpenAI, Anthropic and Google all price their batch APIs at 50 percent of standard rates, with results returned asynchronously and usually within 24 hours. That makes batch the easiest large discount available for any workload no human is waiting on. DeepSeek’s older off-peak discount applied to the V3 and R1 generation and does not apply to its current V4 models.
Not sure what your own AI features actually cost to run?
WD Morgan Solutions is a veteran-owned digital marketing and development firm in St. Petersburg, Florida, helping businesses across Tampa Bay and nationwide with application development and marketing automation, including scoping and instrumenting AI features before the invoice becomes a surprise. Visit wdmorgan.com or get in touch for a free consultation.

























