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.