Last verified

Models AI glossary

What is inference in AI?

Inference is the act of running a trained AI model on new input to produce an output — answering a prompt, classifying an image — as opposed to training, which creates the model in the first place.

At a glance

  • How it works: The model's fixed weights process your input and generate an output; nothing about the model changes, and the next request starts from scratch.
  • Why it matters: Training is paid once by the vendor; inference is paid on every request by whoever runs the model — it is the cost on your bill.
  • What it costs: Through an API, per token: our index lists every current public model's input and output rates, recounted on each build.
  • Related to: LLM, token, batch API, open-weight model.

Training vs inference

A model's life has two very different phases. Training adjusts billions of parameters over enormous datasets until the model is useful; it is done once per model, at the vendor's expense, and the result is a fixed set of weights. Inference uses those fixed weights: every time you send a prompt and get a reply, the model runs once on your input and its weights do not change.

For a buyer of AI, almost all the cost is inference. An API vendor recovers its training spend and serving costs through per-token prices; a company running an open-weight model pays for the GPUs that run inference. Fine-tuning is a small extra round of training on top of an existing model, priced separately where it is offered at all.

What drives inference cost

A language model handles a request in two steps. It first processes the whole input in one parallel pass — often called prefill — then generates the output one token at a time, each step depending on all the tokens before it. That second step occupies the hardware longer per token, which is why APIs price output above input.

Everything else follows from those two steps. Longer prompts cost more prefill; prompt caching lets a provider skip prefill for a repeated prefix and passes part of the saving on. Longer answers and hidden reasoning cost more generation. Bigger models cost more per token than smaller ones, which is why the cheapest and the most expensive current models in our index sit so far apart.

How inference is sold

  • Real-time API — the default: per-token rates, answers in seconds.
  • Discounted capacity — the batch API (results within 24 hours), flex processing and off-peak pricing trade speed or timing for a lower rate.
  • Premium capacity — fast or priority tiers charge more per token for lower latency.
  • Self-hosted — you rent or own GPUs and pay for time, busy or idle.

The panel below shows the spread of per-token rates across the current models in our index.

In our indexPer-million-token rates in our index

Cheapest input $0.0298 Doubao Seed 2.0 Mini
Median input $0.60
Median output $2.40
Priciest output $180.00 GPT-5.5 Pro

Counted at build from our price index: standard (uncached, real-time) rates in US dollars per million tokens, for the 163 paid models, among the 167 current public models we price, from 33 vendors. Each rate comes from the vendor's own price page, read between 2026-07-11 and 2026-10-09. How we collect prices.

Frequently asked.

Short answers to the questions that come up next.

Q · 01 What is the difference between training and inference? +
Training builds the model by adjusting its weights over large datasets, once. Inference runs the finished model on new input to produce an output, every time it is used.
Q · 02 Why is inference priced per token? +
Because the work scales with tokens: the provider processes every input token and generates every output token one at a time. Per-token pricing tracks that work, with output priced higher because generation is the slower step.
Q · 03 Is inference cheaper on my own hardware? +
Only at high, steady volume that keeps the hardware busy. GPUs cost the same busy or idle, while an API charges only for what you use; for modest or spiky traffic the API is usually cheaper.