Skip to content
mentoor

Topic 1 of 5 · 4 min read

Training costs versus inference costs

Goal: Given a usage scenario, say whether training or inference dominates the cost and estimate how a switch to a reasoning model changes the per-task bill.

Training is a big bill you pay once per model; inference is a small bill you pay every time someone uses it, and for a popular product the small bills add up to more.

Check yourself · 1 of 3

A company uses a hosted model through an API and pays by the token. Which cost is it paying?

Choose one answer

Why it matters

Most people who use AI only ever see the second bill. If you buy access to Claude, ChatGPT or Gemini through an API, you pay for inference: the work the model does when it reads your input and writes an answer. The lab already paid for training: the months of computing, the data and the engineers that produced the model. Knowing which bill you are on tells you what you can control. You cannot lower the cost of training. You can lower the cost of inference.

How to think about it

  1. Training is a fixed cost. A lab trains a model once, on thousands of specialised chips, then sells access to it. The price of that run is spread over every future customer. Epoch AI and the Stanford AI Index both track how large these training bills have become.
  2. Inference is a variable cost. Each request uses chips for a short time. The cost grows with the number of requests and with the length of each one.
  3. Tokens are the unit. A token is a small piece of text, roughly three quarters of a word. Providers price input tokens (what you send) and output tokens (what the model writes). Output tokens usually cost more.
  4. Who pays what. A lab with millions of users pays mostly for inference after launch. A company that only calls an API pays only inference, inside the price per token. A company that fine-tunes or trains its own model pays training too.
  5. Reasoning and agents multiply tokens. A reasoning model writes a long chain of hidden thinking before its answer, and you pay for those tokens. An agent makes many model calls to finish one job, and each call re-reads the growing context.

Before and after

Before: "A reasoning model costs the same per token, so switching will not change our bill."

After: "The price per token is the same, but a reasoning model may write ten times as many tokens per answer. Our support bot sends 1,000 input tokens and gets 300 back. With reasoning, it may get 3,000 back. The bill per ticket rises, even though the price list did not change."

The numbers in the second example are made up for the sketch. Measure your own task before you trust them.

What goes wrong

  • Teams compare price lists and forget the length of the output. The cheaper model that rambles can cost more per task than the dearer one that is brief.
  • Teams budget from a single test run. Agents vary a lot: one job may take four calls and the next forty.
  • Teams hear that training costs hundreds of millions and conclude AI is too costly to use. Almost every buyer pays only the inference price, which is set per token and is far smaller.

Examples

Same price, longer answers

A team runs a support bot on a model priced at $1 per million input tokens and $4 per million output tokens (example prices). A ticket uses 1,000 tokens in and 300 out, so about $0.0022. Switching to a reasoning model at the same prices makes it write 3,000 tokens out: about $0.013 per ticket, nearly six times more. At 50,000 tickets a month that is the difference between $110 and $650.

Who is paying for training?

A startup builds a contract-review tool on a hosted model. It pays per token and never trains anything. A bank that trains its own model on private data pays for the training run and for the servers that run the model. The startup's costs scale with use; the bank's start high before the first user.

Key points

  • Training is a large one-off cost for the lab; inference is paid again on every request.
  • Most buyers of an API pay only inference, priced per input and output token.
  • Cost per task is price per token times the number of tokens used, so output length matters as much as the price list.
  • Reasoning models and agents use many more tokens per task, so the bill can rise at an unchanged price.
  • Test your own task with real prompts and count the tokens before you budget.

Common mistakes

  • Comparing models by the price per token alone and ignoring how many tokens each one writes.
  • Thinking every AI user pays for training.
  • Budgeting an agent from one run instead of an average over many runs.
  • Forgetting that input tokens are paid again on every call when the context grows.

Check yourself · 2 of 3

A support bot answers 20,000 tickets a month on a standard model. The team switches to a reasoning model that writes about five times more tokens per answer. Prices per token stay the same. What happens to the output bill?

Choose one answer

Check yourself · 3 of 3

Which task is most likely to have a bill that varies a lot from one run to the next?

Choose one answer

Practice items, not counted towards your mastery.

Start here

More for this topic