Basics
Token
A token is the unit of text a language model reads and writes: a word, part of a word or a punctuation mark. AI APIs measure prompts, answers, limits and prices in tokens.
Also called LLM token, AI token
Checked November 29, 2026
At a glance
- English estimate
- About 4 characters, or ¾ of a word, per token (OpenAI)
- Kinds
- Input, cached input, output (reasoning included)
- Where counts appear
usage, in every answer- Measured in tokens
- Prices, the context window, max tokens, rate limits
- On /model
- Billed per token at the serving channel's prices;
POST /v1/messages/count_tokenscounts input
Models don't read letters or words. A tokenizer splits the text into tokens first, and the count depends on the model, its encoding and the language (OpenAI). OpenAI's estimate for English is about four characters, or three quarters of a word, per token: 100 tokens make about 75 words. DeepSeek puts one English character at about 0.3 tokens (DeepSeek), and Anthropic says the tokenizer of Claude 4.7 and later models makes about 30% more tokens from the same text than the one before (Anthropic).
Input, output and cached tokens
- Input tokens are what you send: the system prompt, the conversation so far, tool definitions and images. OpenAI's Chat Completions calls them prompt tokens.
- Output tokens are what the model writes, its reasoning tokens included. Chat Completions calls them completion tokens.
- Cached input tokens are input read from a prompt cache, which can be priced differently from other input.
Every answer reports its counts in usage: prompt_tokens and completion_tokens on Chat Completions, input_tokens and output_tokens on OpenAI's Responses API and on Anthropic's Messages API.
Counting tokens before you send
To learn a prompt's size before you pay for it, count it with the model you plan to use: Anthropic warns against reusing counts measured on models before Claude Opus 4.7 for its newer ones (Anthropic). OpenAI's input-token counting endpoint for the Responses API, POST /v1/responses/input_tokens, is free (OpenAI).
Tokens on /model
Every model is billed per token, at the prices of the channel that served the request, with input and output priced apart: see the pricing page. The usage in each answer has the counts, in the same fields as at the model's maker. POST /v1/messages/count_tokens counts a request's input tokens: exactly for GPT models, as an estimate for the others (Endpoints).
Where it applies on /model
Questions
How many words is 1,000 tokens?
In English, about 750, by OpenAI's estimate of 100 tokens to 75 words. It is an estimate: other languages and code have different ratios, and each model's tokenizer counts differently.
Are input and output tokens priced the same?
Usually not. Output tokens cost more than input tokens, and cached input costs less. Each model's prices are on the pricing page.
Is the same text the same number of tokens on every model?
No. Each model family has its own tokenizer, so the same text can come to a different count. Compare the usage each model reports.
Sources
The makers' own pages, each opened on November 29, 2026.