AI token (AI tokens). What it means.

In AI, a token is the unit of text a language model reads and writes: a word, part of a word or a punctuation mark. Model limits and prices are measured in tokens.

By Brady Heinrich · Updated

Definition

In AI, a token is the unit of text a language model reads and writes: a word, part of a word or a punctuation mark. Model limits and prices are measured in tokens.

What is a token in AI?

A token is a piece of text that a language model treats as one unit. Models do not read letters or whole sentences. Text is first cut into tokens, and each token is mapped to a number. A short common word is usually one token. A long or rare word is split into several. Punctuation and spaces count too.

This sense of the word has nothing to do with crypto tokens or with the access tokens used to log in to software.

How many words is a token?

There is no fixed ratio, because each model family has its own tokenizer. As a rule of thumb for English, OpenAI's guidance for its models is that one token is roughly four characters, or about three-quarters of a word, so 100 tokens is about 75 words. Other languages, code and unusual names often use more tokens per word.

For anything that matters, count instead of estimating. Model providers publish token counters for their own models.

Why do tokens matter?

WhatHow tokens are involved
CostAPI pricing is per token, usually with separate rates for input and output
Context windowThe most a model can consider at once is a token limit
Output lengthA cap on output tokens decides how long an answer can be
SpeedOutput is generated token by token, so longer answers take longer
Rate limitsUsage caps are often set in tokens per minute

Input tokens vs output tokens

Input tokens are everything sent to the model: the instructions, the conversation so far, any documents and tool results. Output tokens are what it writes back. Output usually costs more per token than input. In a long chat the whole conversation is sent again on every turn, so input tokens grow even when each new message is short.

How do you reduce token use?

  1. Send only the passages the model needs, not whole documents.
  2. Ask for the format and length you want, so the answer is not padded.
  3. Start a new conversation when the topic changes.
  4. Use a smaller model for simple, high-volume steps.
  5. Use prompt caching where the provider offers it, for instructions repeated on every request.

An example

A team plans to summarise 10,000 support tickets a month. Each ticket averages 600 tokens, the instructions add 200 and each summary is about 100. That is 800 input and 100 output tokens per ticket, or 8 million input and 1 million output tokens a month. Multiplying by the provider's two published rates gives the monthly bill before a single request is sent.

The common mistake

Estimating cost from the visible message alone. The model is also sent the system instructions, the conversation history and any retrieved documents, on every turn. Measure real token counts from the API response, not from what the user typed.

How people search for AI token

  • ai token6,600 a month
  • ai tokens6,600 a month
  • what is an ai token5,400 a month
  • what is a token in ai4,400 a month
  • what are tokens in ai4,400 a month
  • llm tokens880 a month

US monthly searches, Google Ads keyword data.

Related terms

Go deeper

Building something ambitious? Let's talk.

We reply within one business day.