Glossary

Token

Token

The smallest unit in which AI reads and writes text, often used to measure usage and cost.

AI doesn’t read text character by character. It first cuts the text into small pieces, and those pieces are tokens. In Chinese, one token is roughly one or two characters; in English, roughly half a word to one word.

Many AI services charge by the token, and context window length is also measured in tokens.

An example

When you translate an article with AI and it shows “used a few thousand tokens”, that’s the number of pieces it read in and wrote out.

Articles that mention it

Go deeper (English Wiki): Tokenization →

This entry was compiled with AI assistance from the sources in the English Wiki. Found an error? See Corrections