Skip to content

Inference

AI glossary

Inference

Also called: model inference, serving

Inference is the act of running a trained model to get an output: a completion, a class label, an image, or a tool call. In 2026 it is what you pay for in almost every API invoice. Training updates the weights. Inference uses the weights you already have.

Simplified diagram of how a large language model reads tokens and samples an answer
How a large language model turns a prompt into an answer. This is a teaching diagram, not a picture of one vendor model.

What happens at serve time

Your request is tokenised, the model runs on a GPU or another accelerator, and tokens stream back. Batching, quantization, speculative decoding, and prompt caching are all inference-time tricks to cut cost or latency. None of them trains a new model.

Latency is a mix of queue time, the time to the first token, and the time to the last token. Tokens per second describes the generation phase, not the quality of the answer.

Choices that change the bill

Larger models, longer contexts, higher reasoning effort, and image inputs all make inference heavier. A model router can send easy traffic to a smaller model. A local or quantised model can cut spend if quality still clears your bar.

A concrete example

Example Every time a customer sends a chat message and gets a reply, that is inference.

FAQs about Inference

Is fine-tuning a form of inference?

No. Fine-tuning is training. After it finishes, you serve the new weights, and that serving is inference.

Why is my inference bill higher than I expected?

Look at input size (history, retrieved files, images), output length, retries, and whether a reasoning mode is on. Logs that show token counts per request are the fastest diagnosis.

Can I run inference without a GPU?

Yes, for small or heavily quantised models, especially on a laptop or a phone. Large production models still usually run on GPUs or specialist chips.

Does inference change the model for the next user?

Not unless you explicitly save something (memory, logs, or a later training job). A normal API call leaves the shared weights as they were.

Back to the full AI glossary