What is a token?

4 min readMarkdown

A token is the unit a model reads and writes. It is a chunk of text, usually a whole short word or a piece of a longer one. In English, one token averages about three quarters of a word.

What a token is

A model cannot read letters. Before your text reaches it, a tokenizer cuts the text into chunks from a fixed list and swaps each chunk for a number. The model only ever sees those numbers, and it answers with numbers that get turned back into text.

Each model family ships its own tokenizer with a list of somewhere between about 30,000 and 250,000 chunks. Common words get a chunk of their own. Rare words get built from several.

A sentence, split

Here is one sentence as a typical modern tokenizer might cut it. The exact split varies by model, so treat this as an illustration.

Local models don't need the internet.
#TokenNote
1LocalCommon word, one token
2␣modelsThe leading space is part of the token
3␣donContractions often split
4't
5␣need
6␣the
7␣internet
8.Punctuation is usually its own token

That is 6 words and 8 tokens. Spaces ride along at the front of the next word, which is why ␣models and models are different tokens.

Rare and technical words cost more. A word like quantization might come out as quant and ization. A string of code, a URL or a number like 3.14159 can take one token for every two or three characters.

Rule of thumb

In English prose, 1,000 tokens is about 750 words. Code, numbers and most other languages use more tokens for the same amount of text.

Why speed is measured in tokens per second

A model writes one token at a time. Each token means a full pass through the model, so the natural unit of speed is tokens per second, written tok/s from here on.

Two speeds matter, and runtimesRuntimeThe software that loads a model file and runs it.Read more report both.

Prompt speed is how fast the model reads your input. Generation speed is how fast it writes the answer. They have different bottlenecks, which What happens when I press enter? explains.

Tokens also measure size. A model's How much can the model keep in mind? is a count of tokens, and so is the price of every cloud API. When someone says a prompt is "8K", they mean about 8,000 tokens, or roughly 6,000 words.

Try it

Run a model in Ollama with timing turned on, ask it anything, and read the stats it prints after the answer.

shell
ollama run qwen3:8b --verbose

prompt eval count is how many tokens you sent. eval count is how many it wrote. eval rate is its writing speed in tok/s.

Reading speed as the yardstick

People read at about about 7 to 15 tok/s. That is the number to hold any speed against.

A model writing faster than you read feels instant in chat. One writing slower than you read feels like waiting.

Chat is the easy case. Other jobs need more, because you are not reading every token as it arrives.

Speed thresholds
Use caseSpeedScaleWhy
Batch or overnightunder 10 tok/s is fineThroughput per dollar matters more than latency.
Reading-speed chat10 to 30 tok/sHuman reading is about 7 to 15 tok/s. 15 and up feels comfortable.
Coding assistant30+ tok/sPlus fast prefill. Large prompts need a quick time to first token.
Agent loops50+ tok/sMulti-step tool calls multiply token counts. Reasoning models emit thousands of thinking tokens.

As of 27 Nov 2026

A coding tool reads large files before it writes anything, so it needs fast prompt speed as well. An agent runs many steps in a row, and each step waits on the last. How fast is fast? lets you feel each speed side by side.

The catch

Reasoning models write hidden thinking tokens before the answer you see. A model that writes at a comfortable speed can still take a minute to reply if it thinks for 2,000 tokens first. What are reasoning models, and why are they slow? covers when to switch thinking off.

Go deeperThat's enough

How the chunk list is built

Most tokenizers use byte-pair encoding. The builders start with single bytes, then repeatedly merge the most common neighbouring pair into a new chunk. After enough merges, frequent words like the are single chunks and rare words are left as pieces.

Because it starts from bytes, any text can be tokenized, including emoji and scripts the builders never planned for. Unusual text just costs more tokens.

Why token counts differ between models

The same paragraph might be 100 tokens in one model and 120 in another. A larger chunk list packs text into fewer tokens. So tok/s from two different families do not compare exactly, though the gap is usually small for English.

This also means a context windowContext windowHow many tokens the model can hold in view at once, prompt and answer together.Read more of the same size holds more text in some models than others.

Special tokens

Some tokens never appear in normal text. They mark where a message starts and ends, who is speaking, or where a model's thinking begins. The chat template places them.

When they leak into the output as stray tags, the template is usually wrong.