Token

Also called: subword token

Filed under AI & modern tech

What Token means in practice

Before a model sees your text, a tokenizer splits it into tokens and maps each to a number. Common words such as “the” are usually one token; rarer words are split into pieces. Exactly how text is split differs from model to model.

You meet the term in three places: pricing (APIs charge per million input and output tokens), limits (context windows and reply lengths are counted in tokens) and usage dashboards. For planning, 1,000 English words is roughly 1,300 to 1,400 tokens.

One nuance: other languages, code and unusual formatting often need more tokens per word than plain English, so the same message can cost different amounts depending on what it contains.

With a typical tokenizer, “I love ice cream!” is about five tokens: “I”, “ love”, “ ice”, “ cream” and “!”.

Used in a sentence: That PDF is 40,000 tokens, so it will use up most of the smaller model’s context window.

Often confused with

Word
Words are how people count; tokens are how the model counts. Short common words are often one token, but long or rare words can be several, so English token counts run about a third higher than word counts.
Character
A character is a single letter, digit or symbol. Tokens usually group several characters, which is one reason models can struggle to count letters in a word.
Embedding
A token is a piece of text; an embedding is a list of numbers representing meaning. Inside a model, each token is turned into a vector before processing.

What are tokens in AI? →

How it works, examples, and common questions, explained in plain English.

Common questions

Is a token the same as a word?

No. A common word is often a single token, but long, rare or non-English words are usually split into several, and punctuation counts separately. As a rule of thumb from OpenAI, 100 tokens is about 75 English words.

What does “tokens per second” mean?

It measures how fast a model generates text. A model streaming 50 tokens per second produces roughly 35 to 40 English words per second. Providers and benchmark sites use it to compare response speed.

What are input and output tokens?

Input tokens are everything sent to the model: your message, the system prompt, earlier conversation and attached files. Output tokens are the text the model writes back. APIs count and price the two separately.

Sources and further reading

  1. What are tokens and how to count them? — OpenAI Help Center
  2. Token counting — Anthropic (Claude Docs)

Read more