What are AI tokens and how do they work
AI tokens are what large language models (LLMs) read and write, and a token is a piece of text such as a short word, part of a word, or a punctuation mark. The model reads your message as a sequence of tokens and generates its response one token at a time. That's why usage is measured in tokens, and why you're billed by token usage when you use a model through its API.
Albert López·Founder of DelegIA·Updated
- Also called
- Tokens
- Type
- Concept
- Related to
- LLM, Prompt, API, AI hallucinations
- Reading time
- 5 minutes
How do AI tokens work in an LLM
How are AI tokens calculated? Before processing text, a language model splits it into pieces from its vocabulary. Common words often fit into a single token, while long or unusual words may take several. The LLM uses these tokens to read and write.
OpenAI gives a rough estimate for English: one token is about four characters, or three-quarters of a word, so 100 tokens are about 75 words. You can use that ratio to estimate how many words an LLM can process in 1 million tokens. The average number of tokens per word varies by language and LLM, so the English estimate won't give you an exact count for every model. Anthropic, for example, says the newer tokenizer used by Claude 4.7 and later models produces about 30% more tokens for the same text than the previous tokenizer. The exact increase depends on the content.
How many tokens does ChatGPT use, and how do they work? LLM tokens are what ChatGPT, Claude, and other generative AI tools read and write, so your messages, attached documents, and responses all count toward token usage.
LLM tokens explained with OpenAI's English estimate
- 11 tokenAbout four characters
- 2100 tokensAbout 75 words
- 3Other languages and modelsThe count changes
How much do AI tokens cost for a business
With a paid ChatGPT or Claude subscription, you pay a monthly fee with usage limits. You don't get a separate token bill. When a business system uses a model through its API, you pay based on token usage. OpenAI and Anthropic publish rates per million tokens: input tokens are what the AI model reads, and output tokens are what it generates. In their text model pricing tables, output tokens cost more.
To estimate the cost of LLM tokens per user per day for an enterprise, consider the tasks as well as the model. Summarizing a twenty-page contract means reading many tokens and writing relatively few. Sending long replies to fifty customers a day adds many output tokens, plus the input tokens for each customer's email and conversation history. Processing ten invoices a month is also a different workload from processing a thousand.
| Task | What it reads | What it writes | How often |
|---|---|---|---|
| Summarizing a twenty-page contract | Many tokens | Few tokens | Depends on the number of contracts each month |
| Replying to customers | The email and conversation history | Long replies | Fifty times a day |
| Reading invoices | Each invoice | A few fields | Ten to a thousand times a month |
We estimate costs by measuring how many tokens each step uses with real documents, then choosing an Anthropic, OpenAI, or open model for that step. A less expensive model often handles reading and classification well, so we save the more capable model for the step that needs it.
What is an LLM context window and does it include output tokens
Anthropic's definition of an LLM context window is the maximum number of tokens a model can consider at once, including the sum of what it reads as input and generates as output. Several current Claude models have a one-million-token window, while others, such as Claude Sonnet 4.5, have a 200,000-token window.
Each message, document, and response takes up space in the context window. When it fills up, the tool may drop the oldest material or ask you to start over. Problems can appear well before that limit, though. We see it in our daily work: the AI's responses get worse as a session accumulates more tokens. Anthropic also notes that accuracy and the ability to recall earlier information can decline as the token count grows.
When a conversation gets long, ask the AI to summarize the work so far and what you want to achieve. Then use that summary to start a new chat. A business system handles this automatically by giving each task only the documents it needs, instead of sending everything at once.
What token means outside AI
In cryptocurrency, a token is a digital asset recorded on a blockchain. In software and APIs, an access token is a credential that gives a program permission to access another system, with limits on what it can access and for how long. In security, a token can also be a device that generates codes for signing in to online banking.
In this definition, AI tokens have a different meaning: they are the pieces of text a language model reads and writes.
For more on keys and access tokens, see What is an API.
Our AI consulting page explains how we choose a model for each task in your business and estimate the cost. You can also request a free call.
Sources
- OpenAI, Understanding and counting tokens. Accessed November 26, 2026.help.openai.com
- OpenAI, API pricing. Accessed November 26, 2026.developers.openai.com
- Anthropic, Context windows. Accessed November 26, 2026.platform.claude.com
- Anthropic, Pricing. Accessed November 26, 2026.platform.claude.com
- Anthropic, Effective context engineering for AI agents. Accessed November 26, 2026.www.anthropic.com
- SEC Investor.gov, Crypto Assets. Accessed November 26, 2026.www.investor.gov
- IETF, RFC 6749, section 1.4: Access Token. Accessed November 26, 2026.www.rfc-editor.org
- NIST, Authenticators and Verifiers. Accessed November 26, 2026.pages.nist.gov

Albert López
Founder of DelegIA
He works with small and mid-sized businesses in Spain to decide where AI makes sense, implement the agreed systems, and support the teams that use them. These entries draw on what he learns from his work with each business.
Last reviewed:
From the glossary
Browse the glossary- LLMThe language model behind ChatGPT, Claude, or Gemini: it reads what you write and generates the response.
- PromptThe instruction you give an AI: what you want, what information to use, and how to format the answer.
- APIThe interface that lets one program request data or send instructions to another, without anyone copying information by hand.
- AI hallucinationsAI responses that sound confident and read well but contain false information, such as an invented fact, quote, or source.
From the blog
Browse all articles
ChatGPT vs Gemini vs Copilot: which should your business choose?How each fits the software your team already uses, what each costs, and how to test them in a week.
Claude vs ChatGPT: which should your team choose?Compare how each platform handles different types of work before changing subscriptions for the whole team.
ChatGPT prompts for business and commands for daily workThe four things a good prompt needs to specify, plus prompts you can copy for office tasks.