Module 7 · Running it: memory, speed and money

The price of a token, from both sides

In this lesson

  • 9 min read
  • 11 reading sections
  • Knowledge check
  • Lesson 7 of 10 in this chapter

This chapter’s goalPredict the tokens-per-second a given model will produce on a given machine from memory bandwidth alone, say whether a model and context will fit in a stated amount of memory, choose a quantisation level and defend it with a measurement, estimate the cost of a token from a GPU’s hourly price, and explain the trade an alternative architecture is making.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available
The break-even is a utilisation figure, not a priceSelf-hosting winsSteady, high, predictable load, so the card isbusy most of the hourAbout $0.20 to $0.30 per million output tokensat full useA privacy requirement that rules the API outDrift is intolerable and the weights must befrozenThe API winsBursty or small loadA card busy a fifth of the time costs fivetimes as much per tokenNo capacity to plan, no engine to upgrade, nocard to keep warmPrices have fallen roughly tenfold a yearwithout you doing anythingRent a card at two to three dollars an hour and the hardware arithmetic and the published price listagree, which is a useful check on both. The levers that pay before this one: shorten the context,cache the prefix, batch what can wait, and use a smaller model where quality allows.
Rent a card at two to three dollars an hour and the hardware arithmetic and the published price list agree, which is a useful check on both. The levers that pay before this one: shorten the context, cache the prefix, batch what can wait, and use a smaller model where quality allows.

Figure

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 12Free · no account needed
Lesson steps

Reading a price list

Every API price list has the same shape. Input tokens at one price, output tokens at three to five times that price, a discount for input the provider has seen before, a further discount for work that can wait, and (on reasoning models) a note that the thinking is billed as output whether you see it or not. Each line has a mechanism behind it, and once you have the mechanisms you can predict where the price will move and which of your own levers matters.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the AI, Actually Explained exam.

Stuck on something?Ask Anjali, your AI tutor

How to cite: Addaly (2026) ‘The price of a token, from both sides’, in How a Language Model Actually Works. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/how-llms-work/the-price-of-a-token (Accessed: 27 November 2026).