Token

A token is the small piece of text, such as a word, part of a word or a punctuation mark, that an AI language model reads and writes.

Checked 27/11/2026 against 3 sources. Next review 27/05/2027.

A token is the unit a language model uses to process text. OpenAI says a token can represent a character, part of a word, a whole word or punctuation [1]. Anthropic's glossary adds that tokens can also correspond to subwords or bytes [2]. A large language model reads your text as tokens and writes its answer as tokens. Providers count and price usage in them, and each model has a limit on how many it can hold at once [1][3].

How does a model split my text into tokens?

The model does not see words the way you do. The text is divided into tokens, the model processes those, and it generates output tokens [1]. Spaces affect how text is divided, and a word can split differently depending on its spelling, capitalisation and the text around it [1].

So a token count is not a word count. The same text can give different counts depending on the model, its encoding and the language [1]. Anthropic makes the same point: the number of characters in a token depends on the model and the language, and a newer tokenizer can produce more tokens for the same text than an earlier model's [2]. To get an exact count, use a token counter for the model you plan to use [1][2].

How many tokens is a page of my text?

OpenAI gives these English rules of thumb and calls them estimates, not exact counts. Sentence and paragraph lengths vary, and other languages can have different relationships between characters, words and tokens [1]. That matters for Singapore businesses that write in Chinese, Malay or Tamil as well as English.

UnitApproximate size in tokens
1 tokenAbout 4 characters [1]
1 tokenAbout three-quarters of a word [1]
100 tokensAbout 75 words [1]

A worked example

Say your website chat has a 750-word refund and delivery policy pasted into its instructions. By the 100 tokens to 75 words estimate, that is about 1,000 tokens [1]. The policy goes in with every request, so it counts again each time [3]. If 200 customers chat in a day, that policy alone accounts for roughly 200,000 input tokens before a single question is counted.

What counts toward the context window and the bill?

The context window is the most text a model can reference when it writes a response, and the response itself is part of it [3]. OpenAI describes it as the limit on the tokens a model can work with in a request, and says models also have a separate output limit [1]. Anthropic says everything in the request counts: the system prompt, every message, tool results, images, documents and tool definitions [3]. Replies come back with a usage field showing what the request consumed [3].

OpenAI separates the tokens you are charged for into four kinds [1].

  • Input tokens: what you send in the request, also called prompt tokens [1].
  • Output tokens: what the model generates [1].
  • Cached input tokens: input reused through prompt caching, which can be priced differently from uncached input [1].
  • Reasoning tokens: used internally by a reasoning model before the visible answer. They are not shown as answer text but are billed as output tokens [1].

OpenAI says the price depends on the model and the token category, and that a lower price per million tokens does not always mean a lower total cost, because models tokenize the same text differently and produce different amounts of output [1]. Check the provider's pricing page for current rates [1]. Retrieved passages added by RAG, long instructions from prompt engineering, and the repeated steps of an AI agent all add tokens. So does every turn of a chatbot conversation, because earlier turns stay in the window [3].

Questions people ask

How many tokens is 1,000 words?

OpenAI estimates 100 tokens is about 75 words [1]. On that ratio, 1,000 words is roughly 1,333 tokens. It is an estimate: the exact number changes with the model, its encoding and the language [1].

Is a token the same as a word?

No. A token can be a whole word, part of a word, a character or punctuation [1]. Anthropic says tokens can also be subwords or bytes [2]. A long or unusual word can split into several tokens.

Why does the AI say my message is too long?

The request has gone past the model's context window, which limits the tokens it can work with at once [1]. OpenAI suggests shortening the prompt, removing repeated context, splitting large inputs or summarising them first [1].

Can I count tokens before I send a request?

Yes. OpenAI offers a tokenizer tool and says its input-token counting endpoint is free and does not use your normal inference quota [1]. A plain-text count may miss tokens added by message structure, tools, images and files [1].

See also

  • Large language model A large language model (LLM) is an AI system trained on huge amounts of text to predict the next piece of text, which lets it write, summarise and answer questions.
  • Chatbot A chatbot is a program you talk to by text or voice, which answers questions or helps you finish a task.
  • RAG RAG is a method where an AI looks up your own documents first, then writes its answer from what it found, not only from what it learned in training.
  • Prompt engineering Prompt engineering is the practice of writing clear instructions and examples for an AI model so it reliably produces the output you need.
  • AI agent An AI agent is a system where a language model decides its own steps and uses tools, such as search or a booking calendar, to finish a task.
  • Embedding An embedding is a list of numbers that represents a piece of text, or an image, so software can measure how close in meaning two things are.

References

  1. Understanding and counting tokens, OpenAI Help Center. Read 27/11/2026.Tokens are the units that OpenAI models use to process text. A token can represent a character, part of a word, a whole word, or punctuation.
  2. Glossary, Anthropic. Read 27/11/2026.Tokens are the smallest individual units of a language model, and can correspond to words, subwords, characters, or even bytes (in the case of Unicode).
  3. Context windows, Anthropic. Read 27/11/2026.Everything in the request counts toward the context window: the system prompt, every message in messages (including tool results, images, and documents), and your tool definitions.