AI CompendiumA public chart of the language
Tokens & Context

Token

The chunk of text the model actually sees — and the unit you are billed in.

Definition

A token is a piece of text, often a word or part of a word. Models read and write tokens, not characters. Roughly 4 characters or 0.75 words per token in English.

Token counts drive three things at once: how much fits in context, how much each request costs, and how long the response takes. When someone says "one million tokens", they mean roughly 750,000 words.

Because tokens are the billing unit, they are also the unit of architectural decisions. Every context-management technique in this compendium — summarising, retrieving, caching, pointing at a file instead of pasting it — is a way of buying the same outcome with fewer tokens.

How people use it
Estimating a document pipeline.
"A 300-page PDF is maybe 150k tokens. That is a long-context request, not a chat message."
Worked example

The estimate that survives a meeting

Someone asks whether a document will fit in the window.

Divide characters by four for English prose. A 200-page PDF is roughly 100,000 tokens, which is a fact you can establish in ten seconds without opening a tokeniser — enough to know whether the plan is plausible before anyone builds it.

Sources
  • docsGet token count ↗Google Cloud Vertex AI docs · 2026

    How text and multimodal input are tokenised and counted, with usage reporting. Concrete counts are model-specific; the concept is not.

  • paperLanguage models are few-shot learners ↗OpenAI (arXiv) · 2020

    Introduces GPT-3 at 175B parameters and shows that scale alone produced in-context learning: performance from examples in the prompt, with no gradient updates.

Related terms