Token
Also known as: Tokens, Tokenization
In one sentence
A chunk of text (usually a word or part of a word) that AI processes. 'Chatbot' might be one token or split into 'chat' and 'bot'.
Explain like I'm 12
AI breaks sentences into pieces (tokens) like you'd break a sentence into words. Sometimes one word = one token, sometimes it's split up.
In context
If your prompt is 100 tokens and the response is 200 tokens, you used 300 tokens total. Many AI services charge per token.
See also
Related Guides
Learn more about Token in these guides:
Context Management: Handling Long Conversations and Documents
IntermediateMaster context window management for AI. Learn strategies for long conversations, document processing, memory systems, and context optimization.
12 min readToken Economics: Understanding AI Costs
IntermediateAI APIs charge per token. Learn how tokens work, how to estimate costs, and how to optimize spending.
6 min readCost & Latency: Making AI Fast and Affordable
AdvancedOptimize AI systems for speed and cost. Techniques for reducing latency, controlling API costs, and scaling efficiently.
13 min read