Token

The unit a language model reads and writes, a word or a piece of one; context limits, rate limits and API prices are all counted in tokens.

Updated November 23, 2026

A rough rule for English is three to four characters per token. Code tends to use more tokens than prose of the same length.

Tokens explain most agent limits: a long file uses context, many tool calls use rate limit, and every one of them costs money on an API key.