On this page(21)
- What Is AI Inference, in Plain Terms?
- How AI Inference Works From Input to Output
- AI Inference vs Training: How the Two Phases Differ
- What AI Inference Is Used For in Real Products
- What Does AI Inference Actually Cost?
- Price per token for AI inference
- Energy use per AI query
- Where Inference Runs: Cloud, Edge, and On-Device
- The Hardware Behind Inference: GPUs, CPUs, and Custom Accelerators
- Techniques That Make Inference Faster and Cheaper
- When Inference Fails: Latency, Reliability, and Scaling Limits
- What Changed in AI Inference This Year
- Frequently Asked Questions About AI Inference
- What is inference in AI and machine learning?
- What is an example of AI inference?
- Is inference the same as prediction?
- What is the difference between AI training and inference?
- Does AI inference need a GPU?
- How much energy does one AI query use?
- Why is inference getting cheaper per token but more expensive overall?
- Where to Start With AI Inference in Your Own Stack
AI inference is the stage where a trained model, its parameters fixed, takes a new input and returns a prediction, a label or generated text. Every chatbot reply, image label and fraud score is one. This guide covers how inference works, where it runs, what it costs per token and per query, and where it fails under real traffic. As of November 2026, usage is rising fast and a single query no longer has a predictable cost.
- Volume: Google’s model APIs processed about 22 billion tokens per minute in Q2 2026, up from 16 billion a quarter earlier, per Alphabet’s Q2 2026 earnings remarks.
- Price: matching GPT-4’s level on the MMLU benchmark cost $37.50 per million tokens in March 2023 and $0.18 in February 2025, per Epoch AI’s March 2025 analysis.
- Energy: the median Gemini text prompt used 0.24 Wh in May 2025 data, per Google’s methodology paper, while an IEA 2026 figure reported by Our World in Data puts an agentic request with reasoning at about 50 Wh.
- Memory: a 70-billion-parameter model needs about 140 GB of VRAM in bfloat16, per Hugging Face’s Transformers guide as of November 2026.
- Electricity: global data centers used about 485 TWh in 2025, roughly 1.5% of electricity, per Our World in Data’s July 2026 summary of IEA data.
What Is AI Inference, in Plain Terms?
AI inference is the stage where a trained model, with its parameters fixed, is applied to a new input to produce an output: a prediction, a classification or a piece of generated text. So what does inference mean when someone says it in a product meeting? It means the model is being used. A request comes in, an answer goes out, and that’s one inference. Harvard Chan School’s AI glossary gives the same plain definition.
Here’s a quick inference example. A bank’s fraud model receives a card payment it has never seen, runs the details through weights that were set during training, and returns a risk score. Nothing in the model changes as a result. The same pattern shows up across very different products:
- A chatbot reads a question and writes a reply.
- An image model looks at a photo and returns a label.
- A fraud model reads a transaction and returns a score.
Different outputs, same act. Inference in machine learning covers all of them, from a small classifier to a large language model writing paragraphs.
One naming trap. Outside machine learning, the word carries another meaning. NIST’s computer security glossary uses “inference” for working out who a person is by combining separate facts about them, which is a privacy risk and has nothing to do with running a model. If you’re reading a security or compliance document, check which sense it intends.
How AI Inference Works From Input to Output
AI inference works by converting an input into numbers, passing those numbers through the model’s fixed weights, and converting the result back into an output. For a large language model (LLM), that path has two phases, prefill and decode, and they stress hardware in different ways.
The request path for an LLM runs in three steps:
- Tokenize: the prompt is split into tokens, the units of text the model reads.
- Prefill: the model processes the whole prompt in parallel and builds the key-value (KV) cache.
- Decode: the model generates one token, appends it to the input, and repeats until the answer is finished.
Step 3 is called autoregressive generation, because each new token depends on everything before it. The KV cache exists to make that loop affordable. It stores the attention keys and values for every token already processed, so the model doesn’t redo that work at each step.
Why do the phases behave so differently? Surveys of LLM serving consistently treat prefill as compute-bound and decode as memory-bandwidth-bound. In prefill, the chip handles every prompt token at once, so its arithmetic capacity sets the pace. In decode it emits a single token per pass, and the limit becomes how fast weights and cached state can move from memory to the processor.
The memory math. Hugging Face’s Transformers guide to LLM speed and memory, as of November 2026, gives a rule of thumb of roughly 2 GB of VRAM per billion parameters in bfloat16 precision. A 70-billion-parameter model therefore needs about 140 GB before it serves anything. Then comes the cache. In the guide’s worked example, a model of roughly 15 billion parameters holding 16,000 tokens of context needs about 15 GB for the KV cache, around half the size of its weights.
That second number is the one teams miss. People size a GPU against the weights, see that the model loads, and call it done. Then long prompts arrive, the cache grows with every token in context, and the headroom is gone.

AI Inference vs Training: How the Two Phases Differ
AI inference and training differ in what they do to the model: training adjusts the parameters until the model fits its data, and inference holds those parameters fixed while it answers new requests. Training builds the thing. Inference runs it.
| Aspect | Training | Inference |
|---|---|---|
| Purpose | Fit the model to data | Produce outputs for new inputs |
| Parameters | Adjusted throughout | Fixed |
| When cost lands | Large, mostly one-off per model version | Recurs with every request |
| Latency sensitivity | Low, runs as a long batch job | High, someone is waiting |
The cost row matters most for budgets. A training run is a bill you pay once per model version, while inference is a bill that grows with usage for as long as the product is live. Fine-tuning sits on the training side: if you fine-tune an LLM on your own data, that’s a training job, and every request served afterward is inference.
How much of AI’s compute and energy goes to inference? No authoritative split exists, and the published estimates conflict:
- Our World in Data’s July 2026 analysis of data center and AI energy use says AI energy demand is “dominated by inference,” while resting on limited company disclosures. It cites Epoch AI’s estimate that training Grok 4 took about 0.31 TWh, roughly 0.2% of the about 155 TWh that AI-focused data centers used in 2025.
- Brookings, in April 2026, repeated an estimate that inference accounts for as much as 80 to 90% of AI compute. It attributes the figure to MIT Technology Review’s May 2025 reporting, so it arrives secondhand.
- Epoch AI’s AI Chip Users explorer estimates that OpenAI’s 2025 compute split roughly evenly between R&D and inference. A 2025 Epoch-linked paper cited assumptions ranging from about 40% to about 90% of compute going to training in 2024.
I’d treat any single percentage here with suspicion. The defensible claim is that inference takes a large and growing share of AI compute. A lab pushing frontier research will show a very different split from a company that only serves models, and a percentage quoted without a named source deserves to be ignored.
What AI Inference Is Used For in Real Products
AI inference is used in every product feature where a trained model answers a live request, from chat replies and search summaries to image labels, fraud scores and multi-step agent tasks. When someone uses an “AI feature,” inference is the part that runs.
Each product type is a different inference example:
- Chat assistants: the model generates a reply token by token from the conversation so far.
- Search summaries: Google’s AI Overviews writes a short answer for a search query.
- Image classification: a vision model returns one label per photo or scan.
- Fraud scoring: a model rates each transaction as it arrives.
- Agents and reasoning models: one task sets off many model calls or a long run of reasoning tokens.
The last item behaves differently from the rest. A reasoning model or an agent can spend vastly more tokens on a single task than a chat reply needs, so one user request no longer maps to a fixed cost. If you plan to build AI agents, budget by task instead of by request.
How much inference is that? Google’s disclosures give a sense of the volume. Its model APIs processed about 22 billion tokens per minute in the second quarter of 2026, according to Alphabet’s Q2 2026 earnings remarks from July 22, 2026.
A second, much larger number also circulates. Press coverage of Google I/O in May 2026 reported about 3.2 quadrillion tokens a month across all of Google’s AI surfaces, roughly 7 times the volume of a year earlier. That figure comes from secondary reporting, and it counts something different: every Google product with AI in it, per month, where the earnings figure covers the APIs alone, per minute. Don’t add the two, and don’t divide one by the other.
What Does AI Inference Actually Cost?
AI inference costs far less per token than in 2023 at the same capability level, while reasoning and agentic tasks can cost far more each and total energy use keeps climbing. Both halves are true. Most confusion about inference pricing comes from quoting only one.
Price per token for AI inference
The price of reaching a fixed performance level fell between 9 times and 900 times per year, depending on the benchmark, according to Epoch AI’s March 2025 analysis of LLM inference price trends. One case from that analysis shows the scale:
Matching GPT-4’s level on the MMLU benchmark cost $37.50 per million tokens in March 2023 and $0.18 in February 2025. (Epoch AI, March 2025)
Epoch is a research non-profit and this is its own analysis, with data ending in February 2025. Its authors say it’s unclear whether the fastest declines will last. The widely quoted “280 times cheaper” figure is older still: it comes from the 2025 Stanford AI Index and covers GPT-3.5-level performance, which went from about $20 to $0.07 per million tokens between November 2022 and October 2024. The headline takeaways of the 2026 AI Index, published in April 2026, state no newer price figure, so read the 280 as a 2024 snapshot.
Now the catch. Every one of those declines holds the capability level fixed. The Price of Progress, an arXiv paper from November 2025, argues that the cost of running frontier-level models has risen, and total spend can also rise as usage grows. A per-token price sheet tells you nothing about how many tokens your workload burns.
Energy use per AI query
A typical text query uses a fraction of a watt-hour, and published estimates for reasoning-heavy agent requests run more than a hundred times higher.
| Type of request | Energy | Source |
|---|---|---|
| Median Gemini text prompt | 0.24 Wh | Google methodology paper, May 2025 data |
| Typical query | about 0.3 Wh | Epoch AI, per Our World in Data (July 2026) |
| Typical ChatGPT query | about 0.34 Wh | Sam Altman, per Our World in Data (July 2026) |
| Standard agent request | about 1.1 Wh | IEA 2026, as reported by Our World in Data |
| Query with a 7,500-word input | about 2.5 Wh | Epoch AI, per Our World in Data (July 2026) |
| Agentic request with reasoning | about 50 Wh | IEA 2026, as reported by Our World in Data |
Google’s figure counts accelerators, host machines, idle capacity and data center overhead, and the company puts water use at 0.26 mL for the median prompt. Google also says energy per prompt fell 33-fold and carbon 44-fold over 12 months. Treat all of it as vendor-reported: Google Cloud’s own blog says the numbers aren’t independently verified and don’t represent every prompt.
Per-query numbers are small. The totals aren’t. Global data centers used about 485 TWh in 2025, roughly 1.5% of electricity, and the IEA’s base case reaches about 945 to 950 TWh by 2030, about 3%, per Our World in Data’s summary of IEA 2026 data.

Where Inference Runs: Cloud, Edge, and On-Device
Inference runs in one of three places: a cloud data center, edge hardware close to where the data is produced, or the user’s own device. The choice trades model size against latency, privacy and who pays for the hardware.
| Factor | Cloud | Edge | On-device |
|---|---|---|---|
| Latency | Network round trip on every request | Short hop to nearby hardware | No network hop |
| Privacy | Data leaves your environment | Data stays on your own network | Data stays on the device |
| Model size limit | Largest models, spread across many chips | Whatever the local machine’s memory holds | Small models only |
| Cost model | Pay per token or per request | Buy and run the hardware yourself | Runs on hardware the user already owns |
Model size settles much of this early. The largest models need more memory than any phone or laptop carries, so they stay in the cloud. What makes the on-device column practical is the pairing of small language models with NPUs (neural processing units). Edge Deployment of Small Language Models, an arXiv paper from November 2025, benchmarks such models across CPU, GPU and NPU backends, which is the comparison you’d want before committing to a target chip.
You don’t have to pick one location. A July 2025 arXiv survey of collaborative inference describes setups where a small model at the edge cooperates with a cloud LLM: the local model takes the requests it can handle and hands the harder ones to the larger model.
I’d choose the location per task instead of per product. For teams handling patient records or payment data, the privacy row often decides the question before latency gets a vote. A voice command that must respond instantly belongs on the device, and a long document analysis that needs the strongest model belongs in the cloud. Many products need both.

What could a custom AI agent take off your plate?
We build production-grade AI systems that quietly handle the busywork, so your team can focus on the work that actually matters.
The Hardware Behind Inference: GPUs, CPUs, and Custom Accelerators
The hardware behind inference is whichever chip can hold a model in memory and feed it to the processor fast enough, which is why GPUs, CPUs, NPUs and custom accelerators all have a place. Three numbers describe any of them: memory capacity, memory bandwidth and raw compute. For inference, the first two count as much as the third.
Capacity decides which models fit at all, because the weights and each request’s cached state have to sit in the chip’s memory together. Memory bandwidth decides how fast tokens come out. The 2022 Google Research paper that introduced speculative decoding starts from the premise that inference is usually limited by memory bandwidth. A chip’s peak compute figure says little about that.
The four chip types fit different workloads:
- GPUs: the usual host for large language models, with VRAM capping the model size.
- CPUs: one of three backends, with GPUs and NPUs, that Edge Deployment of Small Language Models (arXiv, November 2025) benchmarks for small models.
- NPUs: the neural processing units that make on-device inference practical for small language models.
- Custom accelerators: chips a cloud provider designs for its own serving load, such as Google’s TPUs.
Google’s Ironwood shows what a chip built for serving looks like. Google unveiled it in April 2025 as “the first Google TPU for the age of inference,” and the specs it published are 192 GB of high-bandwidth memory per chip, 7.37 TB/s of bandwidth, 4,614 peak TFLOPs and up to 9,216 chips in a pod. Its stated reason is that “thinking models” need more compute and memory than one chip offers. All of these are vendor claims.
Vendor numbers need a referee. MLCommons publishes the MLPerf Inference benchmark, and its v6.0 results release from April 1, 2026 added new data center tests. When a chip maker claims a record, check it against the results MLCommons published before the claim reaches a purchasing decision.
Techniques That Make Inference Faster and Cheaper
Five software-side techniques make inference faster and cheaper: quantization, leaner attention designs, tighter KV-cache memory management, splitting prefill and decode across GPUs, and speculative decoding. Each one cuts either the memory a model occupies or the time it takes to produce tokens.
| Technique | What it does | Reported result | Source |
|---|---|---|---|
| Quantization | Stores weights at 8-bit or 4-bit precision | About 32 GB down to about 15 GB (8-bit) or about 9.5 GB (4-bit) | Hugging Face Transformers guide |
| Multi-query attention | Shrinks the KV cache | 15 GB down to under 400 MB | Hugging Face Transformers guide |
| PagedAttention (vLLM) | Cuts fragmentation and duplication in KV-cache memory | 2 to 4 times higher throughput at the same latency | arXiv paper, September 2023 |
| DistServe | Runs prefill and decode on separate GPUs | 4.48 times more requests served, or 10.2 times tighter latency targets | OSDI 2024 paper |
| Speculative decoding | Has a small model draft tokens that the large model verifies in parallel | 2 to 3 times faster on T5-XXL | Google Research paper, November 2022 |
Read the results column with care. Every figure is the authors’ own benchmark, measured against the systems available when each paper came out, and your workload will land somewhere else. The PagedAttention paper behind vLLM, for instance, compares itself with the serving systems of 2023.
Quantization is the simplest to try and carries the most caveats. Both Hugging Face rows come from the guide’s worked example of a model with roughly 15 billion parameters. A 2025 arXiv survey of mixed-precision quantization gives a second data point: Gemma 3 27B takes 54 GB in BF16 and 14.1 GB in INT4. The saving is real. So is the cost, because the Hugging Face guide notes that a quantized model can run slower and can lose some accuracy.
Three details the table leaves out:
- Attention designs: grouped-query attention is the close relative of multi-query attention, and both shrink the KV cache.
- Serving layer: PagedAttention manages cache memory inside one server, while DistServe gives prefill and decode their own GPUs.
- Speculative decoding: the 2022 paper reports identical outputs, and Google’s December 2024 retrospective says the method was still running in large products such as AI Overviews.
If I had to rank these by effort, quantization and a server built on PagedAttention come first, because both are things you adopt. Disaggregating prefill and decode is an architecture decision, and it only pays once you run enough GPUs to dedicate some to each phase.
When Inference Fails: Latency, Reliability, and Scaling Limits
Inference fails in four recurring ways: latency climbs past its target as context grows, capacity runs short, compressed models lose accuracy, and extra reasoning compute stops paying off. Most of these stay hidden in a demo and appear under real traffic, when prompts are long and many users arrive at once.
The first three are operational:
- Latency and memory: the KV cache grows with every token in context, so long conversations and large documents take memory that would otherwise serve more requests.
- Capacity: Alphabet’s Q2 2026 earnings remarks, from July 22, 2026, say Google remains supply-constrained, and Google designs its own accelerators.
- Accuracy: quantization saves memory, and the Hugging Face Transformers guide warns that it can cost some accuracy and some speed.
The capacity point deserves a second look. If a company with its own chip line can’t serve all the demand it sees, a buyer renting capacity shouldn’t plan as though spare GPUs will always be there.
The fourth limit is less obvious. Inference-time compute, the practice of letting a model spend more tokens reasoning before it answers, does improve results, and the gains are uneven:
- Snell et al. (arXiv, August 2024; ICLR 2025 oral) found that adaptive test-time compute can beat a model 14 times larger in a matched-FLOPs comparison, on problems where the smaller model already had a non-trivial success rate. The paper adds that pretraining can still win in some settings.
- The Art of Scaling Test-Time Compute (arXiv, December 2025) compared eight open models and found that no single strategy dominates.
- Scaling over Scaling (arXiv, May 2025) studies the points where extra compute saturates, and Rethinking Inference-Time Scaling (arXiv, April 2025) reports a “reasoning floor” for general-purpose models.
Put together, the papers describe a spend with a ceiling. More thinking tokens help on problems the model can nearly solve already, help little on problems far beyond it, and cost the same either way. Measure the gain on your own tasks before you pay for it.
What Changed in AI Inference This Year
What changed in AI inference in 2026 is that volume rose sharply, the standard benchmark moved to newer workloads, and a single query stopped having a predictable cost. Four developments carry most of it.
| Development | Date | Detail |
|---|---|---|
| Google API token volume | Q2 2026 | About 22 billion tokens per minute, up from 16 billion a quarter earlier |
| MLPerf Inference v6.0 | April 1, 2026 | New data center tests, including gpt-oss-120b and a text-to-video model |
| IEA data on AI-focused data centers | 2026 release | Electricity consumption grew 50% in 2025 |
| IEA Key Questions on Energy and AI | April 16, 2026 | Agentic and reasoning tasks can use hundreds to thousands of times more energy per query than simple text generation |
The first row is the cleanest signal. Google’s API traffic grew by more than a third in three months, per Alphabet’s Q2 2026 earnings remarks from July 22, 2026, and that figure covers one company’s APIs alone.
The two IEA rows fit together. The IEA’s 2026 release on data center electricity use reports the 50% growth, and the agency’s April 2026 report says energy per AI task is falling quickly. Efficiency per task improved and total consumption still rose. With reasoning and agentic requests in the mix, the cost of “one query” is now a range instead of a number.
One gap remains. The 2026 Stanford AI Index’s takeaways, published April 13, 2026, state no inference price figure, so any 2026 price number credited to Stanford deserves a second check.
Frequently Asked Questions About AI Inference
The most frequently asked questions about AI inference cover seven topics: the definition, an example, prediction, training, GPUs, energy and cost. Each answer here stands alone.
What is inference in AI and machine learning?
Inference in machine learning is the stage where a trained model, with its parameters fixed, takes a new input and returns an output such as a prediction, a label or generated text. What is inference in AI? The same step under a different name. Harvard Chan School’s plain-language definition of AI inference matches this one.
What is an example of AI inference?
A chatbot writing a reply to your question is an example of AI inference. So is an image model labeling a photo, a fraud model scoring a card payment as it arrives, and Google’s AI Overviews writing a summary for a search query. In each case a trained model receives an input it hasn’t seen and produces an output without changing itself.
Is inference the same as prediction?
Prediction is one kind of output that inference produces. Inference is the act of running a trained model on new input, and the result can be a prediction, a classification or generated text. A fraud score is a prediction. A chatbot reply comes from the same act, repeated once per token.
What is the difference between AI training and inference?
Training adjusts a model’s parameters until it fits its data, and inference applies those fixed parameters to new requests. Training is a large, mostly one-off cost per model version. Inference cost recurs with every request for as long as the product runs.
Does AI inference need a GPU?
Curious what AI could do for your business?
No jargon and no hard sell. Just a friendly look at where AI fits, and where it doesn't.
No. AI inference runs on GPUs, CPUs, NPUs and custom accelerators, and model size decides which one is practical. Large language models need roughly 2 GB of VRAM per billion parameters in bfloat16, per Hugging Face’s Transformers guide as of November 2026, which puts them on GPUs or custom chips. Small language models run on CPUs and NPUs too, and a November 2025 arXiv paper, Edge Deployment of Small Language Models, benchmarks all three backends.
How much energy does one AI query use?
A typical text query uses roughly a quarter to a third of a watt-hour. Google reported 0.24 Wh for the median Gemini text prompt in May 2025 data, Epoch AI estimates about 0.3 Wh, and Sam Altman has put a ChatGPT query at about 0.34 Wh, the last two as listed by Our World in Data in July 2026. Heavy requests sit far above that: an IEA 2026 figure reported by Our World in Data puts an agentic request with reasoning at about 50 Wh.
Why is inference getting cheaper per token but more expensive overall?
Per-token prices are falling at a fixed capability level while the number of tokens consumed keeps rising. Epoch AI’s March 2025 analysis found prices for a fixed performance level dropping 9 to 900 times per year, depending on the benchmark. Reasoning models and agents spend far more tokens per task, and Google’s API volume alone grew from about 16 billion to about 22 billion tokens per minute in a single quarter of 2026. Cheaper units, many more of them.
Where to Start With AI Inference in Your Own Stack
The place to start with AI inference in your own stack is a five-step check, done in order, before you sign a hardware or API contract.
- Size the model against memory: count the weights plus the KV cache at your longest realistic context.
- Choose the location per task: latency and privacy needs decide between cloud, edge and on-device.
- Measure tokens per task: log real workloads before estimating cost, agents and reasoning models most of all.
- Apply the low-effort optimizations first: try quantization and a batching-aware serving layer, then re-test accuracy and speed.
- Verify vendor performance claims: compare them with independent benchmark results such as MLPerf Inference.
Step 3 is the one teams skip. A per-token price is published and easy to find, while tokens per task exists only in your own logs, and the bill is the product of the two. Run real traffic through a test deployment and count.
If you’d rather have the people who build these systems run that check on your workload, AlphaCorp AI offers an AI integration audit.





