Short answerA token is the unit of text an LLM processes — typically a subword produced by the model's tokenizer. For English, one token averages about 0.75 words or 4 characters. A 1000-token prompt is roughly 750 words. Everything about LLMs is measured in tokens: context window size, API pricing, throughput, latency. Understanding tokens is the difference between reasoning about LLMs correctly and burning money unnecessarily.
In depth
An LLM doesn't read text directly. A tokenizer first chops the input into a sequence of tokens drawn from a vocabulary of 50,000 to 200,000 entries. Each token is an integer ID the model processes. OpenAI's cl100k (GPT-4-era) and o200k (GPT-4o/5) tokenizers use byte pair encoding (BPE), which learns common subwords from training data. 'The cat sat' becomes [464, 3797, 3332] — three tokens. 'unbelievable' becomes [403, 6667, 11203] — three tokens. Rare or non-English text uses more tokens per character. Tokens matter for three reasons. (1) Context window: every model has a maximum number of tokens it can consider in one call. Claude 4.5 supports 200K tokens; Gemini 2.5 up to 2M; GPT-5 up to 400K depending on tier. Going over the limit truncates or fails. 200K tokens is about 500 pages of text. (2) Pricing: every commercial API bills by input and output tokens separately. As of 2026, Claude 4.5 Sonnet is around $3/$15 per million tokens (input/output), GPT-5 around $5/$15, DeepSeek V3 around $0.27/$1.10. Output tokens are 3-5x more expensive than input tokens on most providers because they're more compute-intensive. (3) Latency: time-to-first-token depends on prompt length (the model must process all input before starting output); throughput after that depends on output token count. A 10000-input/200-output call is fast; a 200-input/2000-output call is slow. Tokenization has subtle traps. Different providers use different tokenizers, so the same text is a different number of tokens on Claude vs GPT vs Gemini. Non-English is dramatically more expensive token-wise — Chinese text can be 2-3x more tokens than the equivalent English. Code and JSON are token-heavy because symbols and punctuation each take a token. When budgeting for an agent app, count tokens with the actual tokenizer you'll use (tiktoken for OpenAI, anthropic's tokenizer endpoint for Claude), not rough word counts. Common token math: 1K tokens ≈ 750 English words ≈ 1 page of prose. A typical 5-minute conversation with Claude is 2-5K tokens. A RAG query with 10 retrieved chunks is 5-15K tokens input. Summarizing a 50-page PDF is 40-60K input + 2-3K output. Daily usage for an active AI-employee user typically runs 100K-500K tokens per day. At Claude 4.5 Sonnet prices that's roughly $1-$5 per day per active user, which is why managing token budgets is central to unit economics. Optimizations: (1) Prompt caching — Anthropic and OpenAI both support caching large static prefixes so you pay full price only the first time. For RAG systems with big system prompts, this can cut costs 80%+. (2) Context compression — summarize old conversation turns into short paragraphs rather than sending verbatim. (3) Model routing — use cheap models (Haiku, GPT-5 mini, DeepSeek) for simple tasks and reserve expensive ones for hard reasoning. (4) Output length caps — many prompts produce answers 5x longer than needed; 'answer in 50 words' saves half the output cost. For Tycoon, tokens are the unit of business. Every call to Tycoon Agent costs tokens; every RAG retrieval costs tokens; every tool call costs tokens. The product economics depend on token efficiency. We aggressively cache system prompts, route to cheaper models for low-complexity tasks, and compress old conversation context. Users never see 'tokens' in the UI — but the unit is doing the work underneath.
Examples
- 'The quick brown fox' = 4 tokens in cl100k, often 4-5 in other tokenizers
- 'unbelievable' = 3 tokens (un-believ-able) — compound words split into subwords
- Chinese '你好世界' (hello world) = 6-8 tokens depending on tokenizer — 2x English overhead
- A 100-line Python function = 400-800 tokens; symbols and whitespace each consume tokens
- OpenAI's gpt-4o o200k tokenizer is more efficient than cl100k for non-English — up to 4x fewer tokens for Chinese
- Prompt caching on Anthropic: 10K-token system prompt cached once, reused across thousands of calls at 10% cost
- A full Claude 4.5 context window (200K tokens) = roughly 150K words = 500 pages of text
- Tycoon Tycoon Agent's average chat turn: 3K input tokens (system + memory + current message) + 500 output tokens