How ChatGPT works · Lesson 2

Tokens: how AI reads text

Models don't read letters or whole words. They read tokens: common words stay whole, rarer words are split into pieces. In English, one token is about ¾ of a word.

Tokens matter because limits and prices are counted in tokens, and because some languages need many more tokens than English for the same meaning.

Try it Yourself: Use ChatGPT's real tokenizer (Tokenizer)

Exercises

🔎esc