Article

Article

AI Inference Cost in 2026: What a Million Tokens Actually Costs

Stacked coins beside a glowing GPU server rack, representing the real dollar cost of AI inference

Liked this post? Share with others!

Table of Contents

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.

Bar chart comparing AI inference cost per million input and output tokens across frontier and open-weight models
Per-million-token pricing across today’s leading AI models.

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.

ModelInputCached inputOutput
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.

Every hyperscaler describes its AI capacity as supply-constrained rather than demand-constrained, with electricity rather than chips as the binding limit — the subject of our piece on AI Data Center Energy Consumption and the Grid. Do not plan on falling prices rescuing you. Usage grows faster than unit prices fall unless you manage it.

Split-screen diagram comparing a cached and an uncached AI API request and their relative cost
Caching cuts the cost of a repeated AI API call — here’s how much.

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.

  1. 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.
  2. 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.
  3. Cap output tokens on every call and set reasoning effort explicitly. Unbounded output is the most common source of runaway cost.
  4. Move anything not user-facing to the Batch API for a flat 50 percent discount. Nightly enrichment, backfills and evaluation runs all qualify.
  5. Trim context. Retrieve three relevant chunks instead of twenty and drop tool definitions this call does not need.
  6. 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.
  7. 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.
  8. 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.


Keep reading

Let’s talk

Ready to build what’s next?

Tell us where you want your business to go. We’ll map out the website, store or software to get you there, starting with a free strategy call.

Get a Free Strategy Call
Aerial view of a bridge over turquoise water
5.0
Based on 32 reviews
Karl R. profile picture
Karl R.
2 months ago
Doug and team have worked tirelessly to help us update our website. WD Morgan Solutions is a great local, homegrown, veteran owned business.
D. A. profile picture
D. A.
3 months ago
Great service, price and product. Give WD Morgan Solutions a chance and you will be impressed. Thank you, Doug and Carlo, for your dedication and ongoing support!
Administrative A. profile picture
Administrative A.
3 months ago
We were having issues with our previous web hosting company and needed a change. I reached out to our phone company to ask who they use, and they said WD Morgan Solutions. Let me tell you the transition and communication were leaps and bounds better than we had before. Even Mr. Morgan himself is very on top on communicating back with and addressing concerns of his customers. We are very happy with the services WD Morgan Solutions has been providing us for website management. Anyone need this service? Call up Morgan!
Mallory Q. profile picture
Mallory Q.
3 months ago
We appreciate and are so thankful for Doug's help with the website for our small business! Highly recommend.
Gabe G. profile picture
Gabe G.
5 months ago
WD Morgan built a website that exceeded my expectations and perfectly represents my business.
Kristy B. profile picture
Kristy B.
10 months ago
We love everything about this company!! They are incredibly professional and knowledgeable!! They’ve really turned our practice around and keep us moving forward with our website and all of our marketing strategies !! We are so very grateful for you WD Morgan Solutions!!! 🙌🏼
Sylvia T. profile picture
Sylvia T.
10 months ago
⭐️⭐️⭐️⭐️⭐️ Doug Morgan and WD Morgan Solutions deliver exceptional web development and digital marketing services. Doug has a deep understanding of search engine optimization (SEO) and how to apply it to real-world performance and results—not just rankings. What truly stands out is the balance of clean, modern design with measurable performance. The work is strategic, professional, and focused on driving results. Communication is clear, expectations are realistic, and the outcome consistently exceeds expectations. Highly recommended.
Jennifer V. profile picture
Jennifer V.
10 months ago
We LOVE our new website. This team was incredibly efficient and easy to work with. They were very professional and intuitively smart! We couldn't be happier with the site. Highly recommend!
Marissa D. profile picture
Marissa D.
1 year ago
WD Morgan Solutions helped take over and redesign our website. They were patient and helpful in sorting through all of our needs and offering the best solutions to all of our requests.
Ryan S. profile picture
Ryan S.
1 year ago
WD Morgan Solutions did an amazing job on our website! The design looks great, it’s easy to use, and it really reflects our brand. They also helped us with SEO, and we’re already seeing more traffic and better rankings online. The whole team was professional, helpful, and easy to work with. Big thanks to everyone at WD Morgan for making this such a smooth and successful experience. Highly recommend!
Dylan A. profile picture
Dylan A.
1 year ago
Doug re-created my website for me and it turned out absolutely perfect! It was the most seamless process on my end. The dude is a true genius in his field! I highly recommend!
Ben C. profile picture
Ben C.
2 years ago
My real estate team has been working with Doug and the WD Morgan marketing team for years. They have helped us grow our business and generate leads with an emphasis on ROI. Our best investment has been on SEO with WD Morgan.
Alan H. profile picture
Alan H.
2 years ago
WD Morgan Solutions did a masterful job in creating & designing our new website. Professional, eye-catching, & highly detailed. It has immediately improved our on-line presence, we've received positive feedback from our clients on its ease to navigate, & it has also given us greater exposure in a highly competitive market. We appreciate having WD Morgan working with us, assisting us with our digital marketing needs. Thank you for your high quality work. We highly recommend your company & will recommend you to our business partners.
Enhanced B. profile picture
Enhanced B.
2 years ago
WD Morgan Solutions exceeded our expectations with the website they built for us. The upgrade to a sleek, modern design has truly elevated our online presence, and we couldn’t be more impressed with the result. Doug and his team were professional, attentive to our needs, and delivered a stunning final product. Our site looks incredible, and the entire process was smooth from start to finish. We highly recommend WD Morgan Solutions for anyone looking to take their website to the next level!
Michael A. profile picture
Michael A.
2 years ago
These guys are fantastic. From SEO to website development, they have my back in the digital impressions world. I had used several companies before I found Doug and his crew, and now that I have, I won't be looking for anyone else. Do yourself and your company a favor. Invest the time and money to let these people do their job, because they're amazing at what they do, and your business (and your bank account) will thank you for it. It works, and it works well.
William G. profile picture
William G.
2 years ago
Doug knows his way around SEO and digital marketing. I feel comfortable using WD Morgan solutions knowing that my digital footprint will expand and my ROI is worth the investment. He will turn up your profits substantially
Carolyn J. profile picture
Carolyn J.
3 years ago
When seeking to improve your digital imprint, go no further than W.D. Morgan Solutions for a professional, proven result. The owner is responsive, highly experienced, and excellent to work with. His work with past clients is evidence of his impressive expertise. In addition, he will listen closely and provide the guidance you need to make digital marketing work for your business.
John P. profile picture
John P.
3 years ago
WD Morgan Solutions is a breath of fresh air in the digital marketing space. As a business owner, it's very hard to find a digital marketing team that will fight for the success of your company. Most just throw a bunch of metrics at you with no tangible results. This team is absolutely about results and keeping themselves accountable to those results. You will not go wrong with them on your team for anything SEO, website design, paid ads, etc...
Daniel H. profile picture
Daniel H.
3 years ago
I am delighted to share my outstanding experience with Doug at WD Morgan Solutions a truly remarkable digital marketing agency that has significantly transformed my online presence and business performance. From the outset, Doug exhibited a profound understanding of digital marketing strategies and a commitment to driving tangible results. His expertise and innovative approach to digital marketing have propelled my business to new heights, exceeding all my expectations. The personalized attention and dedication shown by Doug was truly commendable. He meticulously crafted a customized digital marketing strategy tailored to my business needs, and their proactive communication and regular progress reports kept me informed and involved every step of the way. Not only did WD Morgan Solutions help increase my online visibility and engagement, but they also delivered a significant boost in leads and conversions, ultimately driving measurable growth for my business. I wholeheartedly recommend WD Morgan Solutions to any business seeking to elevate their digital marketing efforts. Doug’s professionalism, expertise, and unwavering commitment to client success make them a standout choice in the digital marketing landscape.
Teresa W. profile picture
Teresa W.
3 years ago
Doug and his team offer their expertise to businesses looking to up their game and compete with their competitors with SEO, social media marketing, digital marketing, web development and branding. Doug is a proud veteran, and as the owner of the company, he is directly involved to ensure that each client realizes results, even in competitive markets. - I highly recommend Doug Morgan and his team to anyone looking to increase their visibility and presence on the web.
Kate T. profile picture
Kate T.
3 years ago
I’ve always felt confident sending my clients to WD Morgan Solutions for their digital marketing needs. Doug's team isn't just about technical skills; they really understand people. They offer a whole range of services like paid ads, content creation, social media management, and so much more... but what sets them apart is how they treat their clients and collaborators. As a writer they've hired, I've seen their dedication and care up close. They’re not just another digital marketing firm; they’re a group of genuine, hard-working people who you can trust with your business.
See All Reviews
WD Morgan Solutions
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.