LinkedIn analytics tracking pixel for AIDOLS AI consulting website performance measurement
Deployment & Operations

Token / Tokenization

A token is the basic unit a language model reads or writes — usually a sub-word fragment (about 4 characters of English text) — and the unit by which API pricing, context-window limits, and inference cost are all measured.

Full definition

Tokenization is the process of converting raw text into the integer IDs the model actually consumes. Modern LLMs use byte-pair encoding (BPE) or SentencePiece. As a rule of thumb, 1,000 tokens ≈ 750 English words, but the ratio is far worse for code, JSON, and non-Latin scripts. Tokenizer choice meaningfully affects cost and quality across languages.

Why it matters

Token economics drive AI unit cost. A 30% reduction in tokens-per-task — through prompt compression, caching, summarization, or a better-fitted model — directly reduces ongoing OPEX. Finance and engineering should both be tracking dollars-per-task, not just dollars-per-million-tokens.

Example

"Retrieval-Augmented Generation is a technique" tokenizes to roughly 8 tokens in GPT-4's tokenizer. The same sentence in Japanese can take 30+ tokens, materially raising cost-per-query for non-English markets.

Source & further reading

Primary source: Sennrich et al. — "Neural Machine Translation of Rare Words with Subword Units" (BPE) (2016).

Citation policy: this entry is part of the AIDOLS AI Implementation Glossary and may be quoted for research, journalism, and education with attribution to aidolsgroup.com/it/glossary/token/.