What is a token (in AI)?

A token is the smallest unit a language model works with (opens in a new tab). A token can be a word, part of a word, a character or even a byte. A language model, an LLM, doesn't read and write letters or words, but tokens.

How big is a token?

That depends on the model. For the recent Claude models, one token is about 3.5 English characters.

Where do you notice them?

As a user you just see text. Tokens become visible when you look closely at what goes into and comes out of a model. A related term is the context window: the amount of text a model can look back on while it writes new text. The larger it is, the longer and more complex your question can be.

Back to the overview