DelegIA
Get started

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
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

  1. 11 tokenAbout four characters
  2. 2100 tokensAbout 75 words
  3. 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.

TaskWhat it readsWhat it writesHow often
Summarizing a twenty-page contractMany tokensFew tokensDepends on the number of contracts each month
Replying to customersThe email and conversation historyLong repliesFifty times a day
Reading invoicesEach invoiceA few fieldsTen 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

  1. OpenAI, Understanding and counting tokens. Accessed November 26, 2026.help.openai.com
  2. OpenAI, API pricing. Accessed November 26, 2026.developers.openai.com
  3. Anthropic, Context windows. Accessed November 26, 2026.platform.claude.com
  4. Anthropic, Pricing. Accessed November 26, 2026.platform.claude.com
  5. Anthropic, Effective context engineering for AI agents. Accessed November 26, 2026.www.anthropic.com
  6. SEC Investor.gov, Crypto Assets. Accessed November 26, 2026.www.investor.gov
  7. IETF, RFC 6749, section 1.4: Access Token. Accessed November 26, 2026.www.rfc-editor.org
  8. NIST, Authenticators and Verifiers. Accessed November 26, 2026.pages.nist.gov
Albert López

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: