AI search & GEOIntermediate

Inference

Inference is the act of running a trained AI model to produce an output, such as answering a prompt, as opposed to training the model in the first place.

Also called: Model inference, Test-time compute

Inference is what happens every time someone uses an AI model: the trained model takes an input, processes it and generates an output. Training builds the model once, at great expense; inference runs it millions of times a day. Inference cost and speed shape many product decisions in AI search, including how many sources a system retrieves, how long answers are, and when a slower reasoning mode is used.

Training versus inference

During training, a model's weights change as it learns from data. During inference, the weights are fixed and the model only computes outputs. A model does not learn from your conversation during inference, although a product may store conversations and use them for future training if its policies allow.

Example

Budgeting an in-app assistant

Lanternmoss, a fictional knowledge base tool, prices out an AI search feature. Retrieving ten long passages per question makes answers slightly better but multiplies inference cost. Retrieving five shorter, well-chunked passages gives nearly the same quality for less. The same trade-off, at much larger scale, shapes public AI search products.

Common mistakes

Thinking the model learns from each chat

Inference does not update weights. Changes to model knowledge come from new training or retrieval.

Ignoring output length

Output tokens often cost more than input tokens. Long default responses add up in your own AI features.

Questions

A company that runs models and sells access to them through an API, whether it trained the model or hosts someone else's.

Inference is running the model. Reasoning is a style of inference where the model generates intermediate steps before the final answer.

Know the terms. Now win the searches.

We find the searches your buyers make, then build, publish and improve the pages that win them.