AI GLOSSARY
Token
A token is the smallest unit into which language models break down text—usually a part of a word, a word, or a character. Tokens determine costs, latency, and capacity limits. Understanding tokens allows you to work more efficiently and cost-effectively with AI.
✓ 80+ AI experts ✓ 25+ years of technology expertise ✓ ISO-certified ✓ Made in Germany
Characters per token
an average of 3–4 in German
Cost factor
linear per request
Boundaries
Context windows in tokens
Best Practices
for Efficient Use
Why Tokens Are Crucial for AI Use
Tokens are the currency of language models. All costs, capacities, and latencies are measured in tokens. Understanding the basics saves money and helps build better AI applications.
Cost Control
Each token costs—often millions per month. Awareness leads to significant savings.
Context Planning
Models have token limits—documents must fit within them.
Understanding Latency
More tokens mean longer response times—which is important for UX.
Budget Forecast
Without an understanding of tokens, there can be no reliable cost forecast.
Prompt Optimization
Shorter, more targeted prompts are more cost-effective—minimize the number of tokens.
Choose Your Model More Carefully
Different models have different tokenizers—compare them.
What is a token?
A token is the smallest processing unit in AI language models. Text is broken down into tokens by a tokenizer—depending on the model and language, these are usually parts of words, whole words, or individual characters. The model works exclusively with tokens, not with text.
Typical size ranges: English: 1 token ≈ 4 characters or 0.75 words; German: 1 token ≈ 3–4 characters (less efficient than English); Chinese: 1 token ≈ 1–2 characters; code: variable depending on language and structure.
Key aspects: Context window (maximum tokens per request—4k to over 1 million), input and output tokens (often priced differently), prompt caching (repeated tokens are cheaper), model-specific tokenizers (GPT and Claude tokenize differently).
For small and medium-sized businesses, token awareness is practically relevant: If you don’t pay attention to tokens when using APIs, you’ll end up with hefty bills. Those who optimize effectively (prompt length, RAG chunks, caching) can often reduce costs by a factor of 3 to 10. Token counters and cost estimators are essential for every AI project.
Token Techniques in Detail
These eight concepts will help you work with tokens:
BPE (Byte Pair Encoding)
SentencePiece
Tokenizer Libraries
Prompt Caching
Chunking
Streaming
Token Limits
Cost Estimate
Best Practices for Token Usage
These six principles have proven effective:
- Precise prompts: Vague prompts require longer answers—formulate them specifically.
- UseRAG instead of extensive context: Include only relevant chunks rather than entire documents.
- Use prompt caching: Implement it immediately for recurring system prompts.
- Control output length: Set a maximum number of tokens—to manage costs.
- Use German thoughtfully: German texts require more tokens—use them only where necessary.
- Choose the right model: Not always the largest—smaller ones are often sufficient.
Language 1
English
Efficient — 1 token ≈ 4 characters, 0.75 words. The basis for many pricing models.
Efficient
Language 2
German
Less efficient — 1 token ≈ 3–4 characters. Compound words dominate.
Longer
Language 3
Chinese
Very dense — 1 token ≈ 1–2 characters. Costs less per unit of meaning.
Dense
Common Mistakes with Tokens
We often see these pitfalls:
- Token limit exceeded: Prompt too long—error or truncation without warning.
- Costs underestimated: A few cents per request — but with millions of requests, that adds up to thousands of euros.
- No prompt caching: Missing out on massive savings with recurring prompts.
- Output limit forgotten: Model responds with a novel — expensive and slow.
- German language inefficiency ignored: German requires more tokens than English—stay mindful of this.
Tokens vs. Words vs. Characters
A comparison of three text units:
- Character: Smallest unit—the basis for some tokenizers.
- Token: Language model unit — usually parts of words.
- Word: Natural unit — not identical to tokens.
Contact Us Now
Frequently Asked Questions About Tokens
-
How many tokens constitute a normal sale?
A paragraph in German (150 words) is about 200–250 tokens. In English, it's about 150–200. It always varies.
-
How do I count tokens?
About tokenizer libraries: tiktoken (OpenAI), Anthropic tokenizer, Hugging Face tokenizers. Alternatively: online tools.
-
Why is German more expensive?
German words are longer and are split into several tokens. A German word often consists of 2–3 tokens, while an English word consists of 1–2.
-
What is prompt caching?
Providers recognize recurring parts of prompts and charge less for them. Anthropic offers up to a 90 percent discount on cached tokens.
-
How much do tokens typically cost?
For small SLMs: 0.10–0.50 EUR per 1 million input tokens. For large LLMs: 3–15 EUR per 1 million input tokens. Output is often more expensive.
-
What is a subword token?
Word segment — the most common unit in modern tokenizers. "Unwahrscheinlich" is split into "un-," "wahr-," "ahrscheinlich," or something similar.
-
How are tokens related to the context window?
The context window is measured in tokens—for example, a maximum size of 128k tokens.
Optimize Token Usage with prodot
In a free initial consultation, we’ll analyze your token usage and identify potential savings—typically a 2x to 5x reduction is possible.
As an AI partner for small and medium-sized businesses, we build efficient AI applications—with a clean token economy and active monitoring.
What We Offer
- AI consulting — prompt and token optimization.
- Inference Costs — Detailed Cost Analysis.
- Context window — the token limit.
- Prompt — where tokens are saved.