Skip to content

What is a token?

The smallest unit of text an AI model processes: not a word, but a word fragment mapped to a numeric id.

A token is the smallest unit of text a language model reads and produces: a fragment produced by a tokenizer and assigned a numeric id inside the model's vocabulary. Nothing to do with a cryptocurrency token or a bank's authentication token: those are homonyms, not relatives. A model does not "read words": it receives a sequence of these ids and, at each step, predicts the most probable next token. A token can be a whole common word ("cat"), a piece of a rarer word ("un", "constitution", "al"), a single character, a punctuation mark or an emoji, depending on how frequent it is in the training data. For English, OpenAI documents a rule of thumb of roughly 4 characters per token and about 0.75 words per token (source: OpenAI Help Center). The token is therefore the unit through which a model reads, is trained and gets billed, distinct both from the word and from the embedding vector that represents its meaning.

See also: Context windowThe context window is the limit, measured in tokens, on how much information an AI model can use for a request, including the response that the model generates.

Why a token is not a word

The ratio between tokens and characters is not the same across languages. A peer-reviewed study (Petrov et al., NeurIPS 2023, "Language Model Tokenizers Introduce Unfairness Between Languages") measured that some languages need up to several times more tokens than English for equivalent content, because the vocabularies of common tokenizers are built on predominantly English corpora. Italian, with its inflectional morphology, tends to consume more tokens than English for an equivalent sentence, though less so than typologically more distant languages. The disparity and its consequences are covered in the tokenizer fairness entry: what matters here is the practical consequence, the same text in Italian costs more tokens than the same text in English.

The three places where the token gets paid

A company runs into the token, and pays for it, in three distinct places. First, API pricing: providers bill per million input and output tokens, so input length in tokens is the first cost driver, a topic developed in the tokenomics entry. Second, the capacity of the context window: how many tokens fit in a single request is a physical limit of the model, not adjustable at will. Third, perceived speed for the user, measured in tokens per second generated during decoding, a technical detail tied to the model's prefill and decode cycle. The token is therefore the unit that runs through all three constraints: cost, capacity and speed.

An enterprise example

A client budgeting a project to automatically analyze contracts in Italian often makes the same mistake: counting the corpus's words, not its tokens, and applying the 0.75-words-per-token ratio that holds for English. A 500,000-word corpus in Italian, because of richer morphology and a tokenizer vocabulary skewed toward English, typically produces more tokens than an equivalent-length English corpus, not fewer. Estimating API cost or context-window capacity by word count instead of token count risks underestimating both. That mistake is avoidable by counting tokens with the actual model's tokenizer before signing the estimate.

Why it matters for decision makers

The token is the unit that connects three decisions normally made by different people inside a company: how much generative AI costs, how many documents fit into a single request, and how fast the answer arrives. Anyone who signs an estimate or a contract with a model provider should demand estimates in tokens, not words or pages, and should know that an Italian corpus does not convert to tokens at the same ratio as an English one. It is a seemingly minor technical detail that, multiplied across millions of documents, shifts the real cost of a project.

Frequently asked questions

In English, a page of roughly 500 words equals about 650 to 700 tokens, following OpenAI's rule of 0.75 words per token. In Italian the count runs higher for the same word count, due to richer morphology and Italian's smaller share in the training corpora of common tokenizers: always verify with the chosen model's actual tokenizer rather than estimating by eye.

No. The same informational content in Italian typically needs more tokens than the same content in English, so at an equal price per token, Italian text costs more to process. The tokenizer fairness entry covers the size of this effect and its implications in more depth.
  • Context windowThe context window is the limit, measured in tokens, on how much information an AI model can use for a request, including the response that the model generates.
  • AI tokenomicsAI tokenomics examines the cost of tokens used by generative models and compares it with the results, quality, and operating costs of a business service.
  • Tokenizer fairnessTokenizer fairness concerns differences in how many tokens equivalent content needs in different languages, and the practical effects of those differences.
  • LLMAn LLM is a large language model that processes and generates text across many tasks; it must be evaluated for quality, cost, and risk in its intended use.
  • EmbeddingsAn embedding is a numerical representation of content, which lets a system compare it with other content based on the similarity an AI model has learned.

See it in the universe

If you need the AI in production, not in a demo, that is my job.

See AI integrations

Or write to me.