Skip to lesson
How AI Works , back to all courses

Part 1 · How it writes

What the model actually reads

How text becomes tokens, and how tokens are billed.

Lesson 3 of 4 6 min 5 steps

Key term: Token A piece of text, often a word or part of one, that a model reads and writes.

Step 1 of 5

Watch the video

Does a model see the letters you type? The video shows what reaches it instead, and what that means for letter puzzles and for your bill.

Video, 1 min 56 s
Read the transcript

When you type to a model, you see letters and words. The model sees neither. Before it reads anything, a tokenizer cuts your text into tokens.

Common words are usually one token, often with the space in front. Rarer words split into pieces. Pinewick, the coffee company we made up, comes out as three pieces.

Then each token is swapped for its number in a fixed list. For GPT-4.1 mini, the piece "wick" is number 14,105. "Coffee", with its space, is 33,054. What the model actually reads is a row of numbers like these.

So a question about letters asks about something the model doesn't directly see. In "How many r's are in strawberry?", the word strawberry and the space before it make a single token. One piece, where you see ten letters.

We asked three models. GPT-4.1 nano and GPT-4.1 mini said two, every time. Claude Haiku 5.5 said three, the right answer. Our runs don't show exactly why the GPT models slipped. So when an answer depends on exact letters or digits, check it yourself.

Tokens are also how use is billed. Every token in, and every token out, is counted. At the rates we checked in November, Claude Haiku 5.5 costs ten cents per million input tokens, and fifty cents per million output tokens. Writing costs more than reading.

So the model reads tokens, and writes them one at a time from its odds. Next: why the same request can come back different.

Step 1 of 5 Watch