Skip to content
Ask Sera Search
Ask SeraAnswers from our guides, research and news Search
Learn
Guides
Research
Sectors
Platforms
News
Tools
About

What is inference in AI?

Inference is running a trained model to produce an output, such as an answer to a prompt. The model's weights stay fixed while it runs.

In short. Inference is running a trained model to produce an output, such as an answer to a prompt. The model uses the weights it learned in training, and they do not change while it runs. Every AI search answer is an inference run, and retrieved pages enter the model at this step. Reasoning models spend extra tokens at inference to think before they answer.

On this page 7 sections

The evidence

  • Confirmed:

    Google's machine learning glossary defines inference in large language models as the process of using a trained model to generate a response to an input prompt. Training determines a model's weights, and inference uses them.1Google for Developers. Checked Dec 1, 2026

  • Observed:

    On the 2024 AIME math exams, OpenAI's o1 averaged 74% with one sample per problem, 83% with consensus among 64 samples and 93% when a learned scoring function re-ranked 1,000 samples.2OpenAI, Sep 12, 2024

  • Confirmed:

    OpenAI bills the hidden reasoning tokens of its reasoning models as output tokens. A response can use from a few hundred to tens of thousands of them.3OpenAI API documentation. Checked Dec 1, 2026

  • Confirmed:

    Anthropic's glossary says the documents in retrieval-augmented generation are retrieved at runtime, when a query is sent to the model, and passed into the context window.4Claude API documentation. Checked Dec 1, 2026

Confirmed by the platformObserved in data

Inference is the step at which an AI search product writes its answer. A site's pages can only reach that answer through training data, which was fixed earlier, or through retrieval during inference.

#How does inference work?

Inference runs a finished model on new input. Google's machine learning glossary defines it for large language models as the process of using a trained model to generate a response to an input prompt. It describes training as finding a model's ideal weights, and inference as using those learned weights to make predictions.1

Speed is measured at inference. Anthropic's glossary defines latency as the delay between submitting a prompt and receiving the output, and time to first token as the time until the model generates the first token. Model size, hardware, network conditions and the complexity of the prompt all affect both.4

#What is the difference between training and inference?

Training changes the weights, and inference only uses them.1 A model learns from its training data before release. Its weights do not change while it answers a prompt, so the prompt affects that answer but does not retrain the model. How do large language models work? explains both phases in more detail.

#How do reasoning models use inference?

Reasoning models spend more computation at inference to get better answers. In Learning to reason with LLMs, OpenAI said the performance of its o1 model improved with more time spent thinking, which it called test-time compute. On the 2024 AIME math exams, o1 averaged 74% with one sample per problem. It reached 83% with consensus among 64 samples, and 93% when a learned scoring function re-ranked 1,000 samples.2

The thinking has a price. OpenAI's guide to reasoning models says reasoning tokens are not visible through the API but are billed as output tokens. Depending on the problem, a model may generate from a few hundred to tens of thousands of them.3 What are reasoning models? covers how they search and cite.

Retrieval happens at inference. Anthropic's glossary says the documents in retrieval-augmented generation are retrieved at runtime, when a query is sent to the model, and passed into the context window. This lets a model use information beyond its training data.4 A page published after a model's training can still appear in its answers this way. When does AI answer from training data, and when does it search? covers when each path applies.

Read next

Used in

Related terms

Questions

What is the difference between training and inference?

Training sets a model's weights from data, and inference uses those weights to produce outputs. Google's glossary describes training as finding a model's ideal weights and inference as using the learned weights to make predictions. The weights do not change while the model answers a prompt.

What is test-time compute?

Test-time compute is the computation a model spends at inference, after training is done. OpenAI found that the performance of its o1 reasoning model improved with more time spent thinking, and it called this test-time compute.

Why does inference cost money?

Each request runs the model on hardware, and API providers price requests by the tokens they read and write. OpenAI bills a reasoning model's hidden reasoning tokens as output tokens, so a hard question can cost more than its visible answer suggests.

About this page

Researched and reviewed by Promptly Found. Reviewed Dec 1, 2026. Next review due Mar 2027.

Notes

  1. 1
    Machine Learning GlossaryGoogle for Developers · Checked Dec 1, 2026 · Primary source
  2. 2
    Learning to reason with LLMsOpenAI · Sep 12, 2024 · Checked Dec 1, 2026 · Primary source
  3. 3
    Reasoning modelsOpenAI API documentation · Checked Dec 1, 2026 · Primary source
  4. 4
    GlossaryClaude API documentation · Checked Dec 1, 2026 · Primary source
Cite this page
Citation style

Promptly Found. (2026, December 1). What is inference in AI? https://promptlyfound.com/glossary/inference

Revisions 1
First published.