EN

Language

Our editions

Written for each audience, not translated word for word.

What is a token in a language model?

ExplainerBy Lucas Matías García TorresUpdated (first published )Data checked 5 min read

Reviewed by Lucas Matías García Torres on . How we work.

Leer en español

A 3D lattice of thin steel lines and nodes with a few pathways lit in orange, like a neural network

Short answer

A token is the unit a model reads and writes: a character, part of a word or a whole word. In English, OpenAI estimates 100 tokens at about 75 words and Google at 60 to 80. We counted the same legal text in three languages with OpenAI's open encodings: Spanish needed 22% more tokens than English and French 33% more (48% and 59% with the older encoding). Context windows, answer limits and API prices are all measured in tokens, and reasoning tokens are billed as output even though you do not see them.

Prices and limits change often: check the vendor's page before you pay. How we make money.

What is a token in a language model? A token is the unit a language model reads and writes. Models do not see letters or words directly: they split text into tokens, which can be a single character, part of a word, a whole word or a punctuation mark. Everything about using a model is measured in tokens: how much text it can take in at once (its context window), how long its answer can be and how much the API charges. This guide explains how text becomes tokens, how many words a token is, why Spanish and French need more tokens than English (we measured it) and how tokens are billed, with the vendors' own documentation checked on October 6, 2026.

How text becomes tokens

OpenAI describes the process in three steps: the text is divided into tokens, the model processes them, and the model generates output tokens. Google gives the examples of a single character such as "z" or a whole word such as "cat", explains that "long words are broken up into several tokens", and calls the set of all tokens a model knows its vocabulary.

Details matter more than you might expect. OpenAI notes that "red", "Red" and " red" (with a leading space) are different text and can become different tokens. Token IDs also depend on the model's encoding, so an example token ID does not apply to every model.

How many words is a token?

Each provider publishes a rule of thumb for English:

Table: token rules of thumb for English text

Source Rule of thumb 1,000 English words is about
OpenAI 1 token ≈ 4 characters ≈ ¾ of a word; 100 tokens ≈ 75 words 1,330 tokens
Google (Gemini) 1 token ≈ 4 characters; 100 tokens ≈ 60 to 80 words 1,250 to 1,670 tokens

These are estimates, and both companies say so. OpenAI adds that "the same text can produce different token counts depending on the model, its encoding, and the language". Even within one company, counts change between model generations: Anthropic says the tokenizer in Claude 4.7 and later models "produces approximately 30% more tokens for the same text" than its previous one.

Do Spanish and French use more tokens than English?

Yes, with the encodings we tested. OpenAI warns that other languages "can have different relationships between characters, words, and tokens", but it does not publish a ratio, so we measured one. We took Articles 1 to 5 of the Universal Declaration of Human Rights in the English, Spanish and French versions published by the United Nations, and counted their tokens with two of OpenAI's open encodings, using the open-source gpt-tokenizer library (version 4.0.0), a JavaScript port of OpenAI's tiktoken.

Table: tokens for the same legal text in three languages (our measurement, October 6, 2026)

Language Words Characters Tokens with o200k_base Compared with English Tokens with cl100k_base Compared with English
English 156 965 189 1.00x 190 1.00x
Spanish 168 1,073 231 1.22x 282 1.48x
French 188 1,119 252 1.33x 303 1.59x

OpenAI's cookbook lists o200k_base for gpt-4o and gpt-4o-mini, and cl100k_base for gpt-4, gpt-4-turbo and gpt-3.5-turbo. With the newer encoding, the Spanish text needs 22% more tokens than the English one and the French text 33% more; with the older one, 48% and 59% more. That is about 1.2 tokens per English word against 1.4 per Spanish word with the newer encoding.

Treat this as a measured example of a pattern, not as a prediction. One legal text is a small sample, the tokenizers of today's models are not all published, and Anthropic and Google use their own. But the direction matters for anyone writing in a language other than English: API prices, usage limits and context windows are all counted in tokens, so the same content can cost more and fill the window sooner. OpenAI makes the same point about comparing models: a lower price per million tokens "does not necessarily produce a lower total cost", because models tokenize the same text differently. For your own content, count a sample with the tool of the model you use.

Images, audio and video count as tokens too

For Gemini models, Google's documentation lists images of up to 384 pixels in both dimensions as 258 tokens, with larger images split into 768 by 768 pixel tiles of 258 tokens each. Audio is 32 tokens per second (1,920 tokens for 60 seconds), and video, in its default mode, about 100 tokens per second at the default low resolution (about 6,000 tokens for 60 seconds) or about 300 at high resolution. A picture in a prompt is therefore not free: it uses part of the window and is billed like text.

Input, output, cached and reasoning tokens

APIs bill tokens in several categories:

  • Input tokens: everything you send, including instructions, documents, conversation history and tool definitions.
  • Output tokens: what the model writes. They usually cost several times more than input; see LLM API pricing compared.
  • Cached input tokens: repeated input the provider can reuse, billed at a lower rate.
  • Reasoning (thinking) tokens: reasoning models "think" before answering. OpenAI says these tokens are not shown as answer text but "count toward output usage and are billed as output tokens", and Anthropic says the same of Claude's thinking tokens. A short answer can therefore use far more tokens than it seems.

In a chat subscription you do not see these bills, but the same units sit behind the usage limits: our guides to Claude pricing and ChatGPT pricing explain how each plan describes its limits.

Tokens and the context window

The context window is the maximum number of tokens a model can work with in one request, counting your input and the output it generates. It is measured in the unit described here, and it costs memory when you run a model on your own computer: see what a context window is for the sizes of today's models and what happens when you fill one, and our VRAM calculator for the local case.

How to count tokens exactly

  • OpenAI: its Tokenizer page shows how text splits; for code, the tiktoken library with the encoding for your target model; for a full request including images, files and tools, its input-token counting API.
  • Anthropic: a token counting API that is "free to use", subject to requests-per-minute rate limits. Anthropic calls the count an estimate and says not to reuse counts measured on a model older than Claude Opus 4.7 to estimate costs on a newer one.
  • Google: a token counting method in the Gemini API, and usage figures returned with each response.

For anything that affects a budget, count a sample of your real prompts with the provider's own tool instead of relying on rules of thumb.

What we checked

  • OpenAI: 1 token is about 4 characters or three-quarters of a word, 100 tokens about 75 words; other languages can have different relationships between characters, words and tokens; the same text can produce different counts depending on the model, encoding and language; red, Red and a leading-space red can tokenize differently; reasoning tokens count toward output usage and are billed as output tokens; Tokenizer, tiktoken and an input-token counting API; a lower price per million tokens does not necessarily produce a lower total cost. (OpenAI Help Center, )
  • Google: for Gemini, 1 token is about 4 characters and 100 tokens about 60 to 80 English words; long words are broken into several tokens; images up to 384 pixels in both dimensions are 258 tokens and larger ones are tiled into 768 by 768 tiles of 258 tokens; audio is 32 tokens per second; video in static processing is about 100 tokens per second at the default low resolution or about 300 at high resolution; a count_tokens method. (Google (Gemini API docs), )
  • Anthropic's tokenizer for Claude 4.7 and later produces about 30% more tokens for the same text than its previous tokenizer. (Anthropic, )
  • Anthropic token counting is free to use, subject to requests-per-minute rate limits; the count is an estimate; token counts measured on a model before Claude Opus 4.7 should not be reused to estimate costs on a newer one. (Anthropic, )
  • Our test text, Articles 1 to 5 of the Universal Declaration of Human Rights in English as published by the United Nations, has 156 words and 965 characters and counts 189 tokens with o200k_base and 190 with cl100k_base. (United Nations, )
  • The same articles in Spanish as published by the United Nations have 168 words and 1,073 characters and count 231 tokens with o200k_base (1.22 times the English count) and 282 with cl100k_base (1.48 times). (Naciones Unidas, )
  • The same articles in French as published by the United Nations have 188 words and 1,119 characters and count 252 tokens with o200k_base (1.33 times the English count) and 303 with cl100k_base (1.59 times). (Nations Unies, )
  • OpenAI's cookbook lists the o200k_base encoding for gpt-4o and gpt-4o-mini and cl100k_base for gpt-4-turbo, gpt-4 and gpt-3.5-turbo, among others. (OpenAI Cookbook, )
  • The counts were computed with the MIT-licensed gpt-tokenizer library, version 4.0.0, a JavaScript implementation of OpenAI's tokenizers. (npm / GitHub, )

What may change

  • Tokenizers change with new models, and vendors do not publish all of them; our language measurement uses two open OpenAI encodings and one legal text.
  • Chat apps may change how much of the window they make available on each plan.

Frequently asked questions

How many words is 1,000 tokens?

In English, about 750 words by OpenAI's rule of thumb (100 tokens ≈ 75 words) and 600 to 800 by Google's (100 tokens ≈ 60 to 80 words). Other languages and models give different counts: in our measurement, Spanish needed about 1.4 tokens per word with OpenAI's newer encoding, against 1.2 for English.

Do Spanish and French use more tokens than English?

With OpenAI's open encodings, yes. In our count of Articles 1 to 5 of the Universal Declaration of Human Rights, Spanish needed 22% more tokens than English and French 33% more with o200k_base, and 48% and 59% more with the older cl100k_base. The tokenizers of other vendors and newer models differ, so count a sample of your own text.

What is a context window?

The maximum number of tokens a model can handle in one request, counting your input and its output. It is measured in tokens, so a language that needs more tokens per word fills it sooner. Sizes by model are in our guide to the context window.

Why did my short answer use so many tokens?

Reasoning models think before they answer. Those reasoning tokens are not shown but are billed as output tokens, according to both OpenAI and Anthropic.

How do I count tokens exactly?

Use the provider's own tools: OpenAI's Tokenizer, tiktoken or input-token counting API; Anthropic's free token counting API; or count_tokens in the Gemini API.

How many tokens is an image?

It depends on the model. For Gemini, Google lists 258 tokens for an image of up to 384 pixels in both dimensions, and 258 tokens per 768 by 768 pixel tile for larger ones. Other vendors use their own rules, so use the provider's counting tool.

Sources

  1. Understanding and counting tokens, OpenAI Help Center. Accessed October 6, 2026.
  2. Understand and count tokens (Gemini API), Google (Gemini API docs). Accessed October 6, 2026.
  3. Claude API pricing: models, prompt caching, batch, long context and tokenizer note, Anthropic. Accessed October 6, 2026.
  4. Token counting (Claude API), Anthropic. Accessed October 6, 2026.
  5. Universal Declaration of Human Rights, Articles 1 to 5 (English), United Nations. Accessed October 6, 2026.
  6. Declaración Universal de los Derechos Humanos, artículos 1 a 5 (español), Naciones Unidas. Accessed October 6, 2026.
  7. Déclaration universelle des droits de l homme, articles 1 à 5 (français), Nations Unies. Accessed October 6, 2026.
  8. How to count tokens with tiktoken: encodings and the OpenAI models that use them, OpenAI Cookbook. Accessed October 6, 2026.
  9. gpt-tokenizer: JavaScript implementation of OpenAI tokenizers (MIT), npm / GitHub. Accessed October 6, 2026.

Spotted an error or an outdated price? Tell us and we will fix it.

Change history

  • : Wording revised; no figure, date or source changed.
  • : Re-checked against OpenAI, Google and Anthropic documentation. Added our measurement of tokens per language (English, Spanish, French) and the Gemini image rules, and moved the context window sizes to their own guide.
  • : First published, with token rules of thumb from OpenAI and Google and context windows as of October 2026.

Next review: .

Part of our Language Models Explained guide.

Other topics