AI Glossary Term

What does “Token” mean?

Definition

A chunk of text processed by language models, such as a word piece or symbol.

How Token works

Diagram for Token, steps in order: Text: 'Unbelievable!'; then Split into pieces; then Un | believ | able | !; then Each piece gets a number ID.Text: 'Unbelievable!'Split into piecesUn | believ | able | !Each piece gets a number ID

Example

The word 'unbelievable' might be split into three tokens, while a short common word like 'the' is one. Providers count tokens to limit input and to price usage.

Why it matters

Tokens determine cost, speed, and how much fits in the context window. Different languages can need different token counts for the same meaning.

Common questions

How many words is a token?

In English, a token averages roughly three-quarters of a word, but it varies by tokenizer and language.

Why not use whole words?

Pieces handle rare words and new spellings by combining familiar parts.

Are spaces and punctuation tokens?

They are often included in or alongside tokens.

Learn more in our free guides

Test yourself

See also