Skip to content
AIDownload

Explainer · Updated November 28, 2026 · 3 minute read

What is AI inference?

The short answer

AI inference is the process of running a trained AI model to produce an output. Every time someone sends a prompt and the model returns an answer, an image or a prediction, that is inference. It is separate from training, which builds the model in the first place, and it accounts for the ongoing cost of running an AI service.

Training and inference are separate stages

Training happens first. A developer feeds a model enormous amounts of data over weeks or months, and the model's internal settings are adjusted until it performs well. That work is done once for each version of a model.

Inference is what happens afterward. The finished model receives an input and computes an output, and its settings do not change while it does so. A product that seems to remember earlier chats does it by saving notes and adding them to later prompts. Conversations can change the model itself only if the company uses them in a future round of training.

Why inference gets so much attention

Training a large model is a large one-time expense. Inference is paid for on every request, for as long as the model is in service. For a product with millions of users, the total inference bill can exceed what the training cost.

This is why news stories about data centers, chips and energy use often mention inference. Companies that sell access to models usually charge by the token, a small unit of text, with separate rates for what goes in and what comes out.

What affects speed and cost

Several things determine how fast and how expensive inference is.

  • Larger models need more computation for each token they produce.
  • Longer prompts and longer answers cost more, because the model processes every token.
  • Reasoning models spend extra tokens working through a problem before they answer.
  • Hardware matters, and most large models run on graphics processors (GPUs) or other specialized chips.

Where inference runs

Most inference for large models happens in data centers, and the answer travels back over the internet. Smaller models can run directly on a laptop or phone, which is called local or on-device inference. Running locally keeps data on the device and works offline, though the models that fit on such devices are less capable than the largest ones.

Common questions

Why do output tokens cost more than input tokens?

Output takes more computation per token. A model can process all the tokens of a prompt in parallel, but it has to generate an answer one token at a time, so many providers set a higher rate for output.

Can I run AI inference on my own computer?

Yes, for smaller models. Tools such as Ollama and LM Studio download a model with openly released weights and run it on a laptop or desktop.

What is an inference provider?

An inference provider is a company that runs AI models on its own hardware and sells access to them, usually through an API. Developers use one to avoid buying and operating the chips themselves.

Written and reviewed by AI DownloadHow we write and review explainers

Inference in the news

Research · Sep 18 · arXiv cs.AI + cs.CL

Zarya: A Hybrid Autoregressive--Masked Diffusion Language Model with Flexible Training and Dual-Mode Inference

Zarya is a new family of hybrid language models that combines autoregressive and masked diffusion objectives in a single architecture. It uses variable-size training slots and a curriculum to bridge fine-grained AR learning with coarse-grained diffusion learning, and supports two inference modes including speculative decoding.

Why it matters. Zarya targets a core tradeoff in LLM generation, trying to get the coherence of autoregressive models and the speed of diffusion-based parallel decoding at the same time.

Research · Oct 2 · arXiv cs.AI + cs.CL

Compute Aligned Training: Optimizing for Test Time Inference

Researchers propose Compute Aligned Training (CAT), a framework that rewrites SFT and RL loss functions to directly optimize for test-time inference strategies like majority voting and filtered sampling, rather than treating training and inference as separate concerns. Empirical results show CAT meaningfully improves test-time scaling compared to standard training approaches.

Why it matters. Closing the gap between how models are trained and how they actually run at inference time is a practical lever for squeezing more performance out of existing compute budgets.

Keep reading

Follow the news behind these terms

The digest covers what happens in AI each day, with terms linked to these explanations.