← Hub
Tokens01 / 08 · Beginner

Module 01 · Beginner · ~8 min

Tokens — how AI reads

Type anything and watch a real BPE tokenizer split it live.

Loading module…

Common questions this module answers

What is a token in a large language model?

A token is a chunk of text — usually a word piece of about 3–4 characters in English — that the model treats as a single unit. Models never see letters, only token IDs from a fixed vocabulary of around 100–200k entries learned with byte-pair encoding (BPE).

Why do AI models struggle to count letters in words like 'strawberry'?

Because the model sees the word as one or two tokens, not as individual letters. Counting the r's requires reasoning about characters inside a token it never sees spelled out.

How do tokens relate to API pricing?

LLM APIs price per token, for input and output separately. Roughly 4 characters of English is one token, so 1,000 tokens is about 750 words.