AI GLOSSARY · AI CONCEPTS
Token
In one line: A token is a small piece of text, about four characters or three-quarters of a word in English by OpenAI's estimate, that an AI model reads and writes.
Cost: Anthropic prices its models per million tokens (MTok), with separate input and output prices; as of 2026-11-24, Claude Opus 5.5 is $4 in and $20 out.
Definition
In language-model text processing, a token is a unit of text that a model processes, such as a word, subword, character or byte. Token counts help keep prompts within a context window and manage rate limits and costs.
Also called: tokens, AI token, AI tokens.
In plain language
AI text systems divide text into small pieces called tokens. A token need not be a complete word. The same text can produce different token counts on different models, which matters when keeping prompts within a context window or managing costs. As a rough guide for English text, OpenAI's help page says 1 token is approximately 4 characters and 100 tokens are approximately 75 words, and calls these estimates. To get a model-specific estimate, use the provider's token-counting tool for the model you plan to use.
Technical definition
Text is encoded into a series of tokens for the model to process, and the number of characters a token represents depends on the model and the language. Tokenization methods differ, and the choice can affect model performance, vocabulary size and the handling of out-of-vocabulary words. Subword methods can encode rare and unknown words as sequences of smaller units. Anthropic documents that a newer tokenizer produces more tokens for the same text than earlier models. In Anthropic's token-counting endpoint, the input can include system prompts, tools, images and PDFs, and the count is an estimate that might include system-added tokens that are not billed.
Worked examples in this catalogue
Catalogue examples point at a skill, guide or coding tool listed on this site, with what to run and what you see. An example marked illustrative describes the item from its own documentation; it was not executed for this page. Platform Scores are our assessment under a published method, not a safety guarantee.
Guide · Illustrative, not executed
Claude Code Pricing: What Drives Cost and Plan Options
- What you see
- A guide on what drives Claude Code cost; it says API and cloud-provider use is billed per token and that cost grows with context length.
- Why it exercises the concept
- It shows token counts turning into a bill.
Skill by Skill Almanac · Illustrative, not executed
context-window-packer 56/100 · Provisional, not yet measuredScored · Method v0.2 · How we score
- What you see
- The skill is designed to propose what supplied material to retain or shorten under a stated token budget.
- Why it exercises the concept
- Use it to examine a proposed prompt budget; verify counts with token counting for the model you plan to use.
Skill by Skill Almanac · Illustrative, not executed
llm-cost-estimator 56/100 · Provisional, not yet measuredScored · Method v0.2 · How we score
- What you see
- Turns a usage profile and your own price table into a monthly LLM cost range with cache, batch and subscription effects.
- Why it exercises the concept
- An illustrative place where token counts meet a price table.
Skill by Skill Almanac · Illustrative, not executed
agent-session-cost-review 58/100 · Provisional, not yet measuredScored · Method v0.2 · How we score
- What you see
- Finds where a coding-agent session spent its tokens, by parsing the saved session transcript.
- Why it exercises the concept
- An illustrative place where token use is read from a saved transcript.
How it shows up when you use agents
Anthropic's documentation says to use token counts to keep prompts within a model's context window and to manage rate limits and costs. It also says not to reuse token counts measured on an older model when estimating costs or context-window fit; count with the model you plan to use.
For example, compare the same short paragraph by running token counting once with your current model and once with the model you plan to move to, then compare the two input counts. This is a suggested exercise, not a measured result in this entry. For Claude, the number of characters a token represents depends on the model and the language, so there is no single characters-per-token figure.
For a concrete sense of scale, OpenAI's help page says that for English text 1 token is approximately 4 characters and 100 tokens are approximately 75 words. These are rough estimates; counts differ by model, encoding and language.
At that ratio, a 75-word paragraph is about 100 tokens and a 1,500-word page about 2,000 tokens (our arithmetic from OpenAI's estimate, so also approximate).
Billing follows token counts: Anthropic's pricing page lists Claude Opus 5.5 at $4 per MTok (million tokens) for input and $20 per MTok for output, as of 2026-11-24. For how this shows up in a coding tool, see the guide Claude Code pricing explained.
Common confusions
- Token versus word. A token can correspond to a word, subword, character or byte. A word may be encoded as a sequence of subword units.
- Tokens versus price. In Anthropic's token counting, the count is an estimate and might include system-added tokens that are not billed. Consult the service's current pricing rules.
- Visible text versus counted input. Anthropic's token counting returns the total number of input tokens, and current assistant-turn thinking counts toward input tokens.
- AI versus cryptocurrency. This entry's own scope note: here the word describes model processing, not a digital asset.
Related terms
Show all 41 related terms
Terms that mention Token
101 terms mention this one
- Agent evaluation
- Agent instruction file
- Agent loop
- Agentic RAG
- Agentic search
- AI crawler
- AI credits
- AI-generated content
- AI music
- AI pricing model
- AI subscription
- AI writing assistant
- Attention mechanism
- Autoregressive model
- Azure AI Foundry (Microsoft Foundry)
- Bag of words (BoW)
- Batch API
- Beam search
- BERT
- BERTScore
- BLEU score
- Bolt.new
- Byte-pair encoding (BPE)
- Chain of thought
- Chunking
- Compute (AI)
- Context engineering
- Context rot
- Context window
- DeepSeek
- Diffusion model
- Diffusion transformer (DiT)
- Few-shot prompting
- Fine-tuning
- Firecrawl
- FlashAttention
- FLOPS (floating-point operations per second)
- Free tier
- Frontier model
- Generative AI (gen AI)
- Inference
- Inference cost
- Instruction tuning
- Kimi (Moonshot)
- KV cache
- Language model
- Large language model (LLM)
- Lemmatization
- LLM gateway
- LLMOps
- Long short-term memory (LSTM)
- MCP client
- Mixture of experts (MoE)
- Model router (LLM routing)
- Multimodal AI
- N-gram
- Named entity recognition (NER)
- Natural language processing (NLP)
- Neural network
- AI observability (LLM observability)
- Open-source AI
- OpenRouter
- Part-of-speech tagging (POS tagging)
- Positional encoding
- Prompt
- Provisioned throughput
- Question answering (QA)
- Rate limit
- Reasoning model
- Recurrent neural network (RNN)
- Replicate
- Amazon SageMaker
- Scaling laws
- Self-hosted LLM
- Self-supervised learning
- Semantic search
- Softmax
- Sparse attention
- Speculative decoding
- Stop words
- Supervised learning
- System prompt
- Temperature (LLM sampling)
- Text generation
- TF-IDF
- Time to first token (TTFT)
- Together AI
- Tokenization (NLP)
- Tokenizer
- Top-k sampling
- Top-p sampling
- Transformer
- Tree of thoughts (ToT)
- Usage limits
- Vertex AI
- AI video generation
- Vision model
- Vision transformer (ViT)
- Vision-language-action model (VLA)
- Web search tool
- World model
Guides that mention Token
- Install Codex CLI and Sign In
- Claude skills vs MCP vs plugins: what each one is for
- UI UX Pro Max skill: what it does, install, how to audit
- AI Coding Assistant vs Coding Agent: What Each Can Change
- Claude Code plugins explained: install, build, validate
Show all 32 guides
- Claude Code Pricing: What Drives Cost and Plan Options
- Claude frontend-design skill: what it does and where it stops
- CLAUDE.md examples: four stack templates, rules, imports
- Cloudflare MCP servers: endpoints, access and permissions
- Codex Pricing and Usage Limits: How Metering Works
- How MCP Servers Work: Message Flow and Transports
- How to install a Claude Code skill: personal, project and plugin routes
- MCP Client vs MCP Server: Who Starts Calls and Holds Keys
- What are Claude skills? Definition, SKILL.md format and where they work
- What Is an AI Agent? The Model, Tools and Memory Loop
- What Is an LLM? The Facts Agent Users Need
- What Is RAG? Retrieval-Augmented Generation Explained
- What Is Vibe Coding and When You Must Read the Code
- Best Claude skills, ranked by measured score
- Caveman skill for Claude Code: what it does, how to install it and what it saves
- Codex Skills Explained: Locations and AGENTS.md Differences
- MCP vs API: When an Agent Needs an MCP Server
- Notion MCP: Agent Read and Write Access and How to Limit It
- Atlassian MCP Server Guide for Jira and Confluence
- How to Use AI to Design a Room: Photo to Brief
- How to Add an MCP Server to Claude Code
- Agent Skills vs Tools: Instructions or Callable Actions
- How to Build an AI Agent: A Minimal Tool Loop
- Debug an MCP Server with MCP Inspector
- Figma MCP Server Setup and Design-to-Code Workflow
- Prompt Engineering for Agents vs Chat Models
- Sentry MCP: pull an error into an agent session
More in AI concepts
Sources
- Glossary: Tokens, Anthropic (accessed 2026-11-24)
- Neural Machine Translation of Rare Words with Subword Units — Sennrich, Haddow and Birch; arXiv v5, 2016, arXiv (accessed 2026-11-24)
- Token counting, Anthropic (accessed 2026-11-24)
- What are tokens and how to count them, OpenAI (accessed 2026-11-24)
- Pricing, Anthropic (accessed 2026-11-24)
Definitions are written by Skill Almanac from these sources and were checked against them on 2026-11-24. Wikipedia is never the only source.
Review record
Last verified
Drafted by Claude and Codex (automated drafting); sources and example targets checked by Independent automated source review (OpenAI Codex); not human peer review on 2026-11-24. Last verified .
Change log (20)
- : First version.
- : Initial reference entry with scoped definitions, primary references and illustrative examples.
- : Replaced with Codex's final reviewed version from the staged-approval cohort; earlier history kept above. Still a draft: not indexable.
- : Accuracy pass: short and technical no longer say a token is 'produced by a tokenizer'; reworded to the Anthropic glossary's 'encoded into tokens for the model to process'.
- : Accuracy pass: removed the clause 'commonly represented by vocabulary identifiers' because no cited source says it.
- : Accuracy pass: removed 'a word count is not an exact token count'; kept only the sourced advice to use token counting with the model you plan to use.
- : Accuracy pass: replaced 'different tokenizers give different counts' with Anthropic's documented statement that a newer tokenizer produces more tokens for the same text.
- : Accuracy pass: narrowed multimodal and billing wording to Anthropic's token-counting endpoint (inputs, estimate, system-added tokens not billed); removed the general claim about how services charge.
- : Accuracy pass: removed unsourced body statements (added instructions or history, longer responses, local models and per-token invoices, input versus output, search-volume remark).
- : Accuracy pass: replaced the two cost skill see lines with the catalog one-liners and simplified the three why lines; no new claims added.
- : US spelling; per-example caveats removed (the page states once that examples are illustrative); related terms filled. No verified claim changed.
- : Beginner example added: OpenAI's English estimate (4 characters, 75 words per 100 tokens) for token; Claude Opus 5.5 context size and glosses of FIFO, compaction and max_tokens for context window. Each sourced.
- : Verification reset to pending: the beginner example added after Codex's PASS changed the reviewed text. No other change.
- : Added a written one-line answer (size estimate and per-token pricing, both sourced) and a pointer to the Claude Code pricing guide; pricing page added as a source.
- : Added the Claude Code pricing guide as the first example and a worked size example (arithmetic from OpenAI's 100 tokens per 75 words).
- : Round 6: one-line answer rewritten in plain words with the price on its own cost line; tokenizer moved from the plain section to the technical section.
- : Round 7: plain section no longer uses the word encode; technical wording unchanged.
- : Round 8: MTok defined as million tokens where prices appear.
- : Independent automated factual and example-source review completed; exact-version technical release checks recorded separately. Publication remains disabled.
- : Automated review completed; approved for the staged public release. Search indexing is controlled by the release configuration.