Learn · professional

Tokens for professionals

Token accounting affects budgeting, truncation strategy, and multilingual UX.

Reviewed:

Short answer

A token is a chunk of text (often part of a word) converted to an ID the model understands. Context windows and API prices are usually measured in tokens.

Why it matters

Token budgets decide how much evidence you can include, how long answers can be, and what a feature will cost at scale.

Diagram

Diagram of text split into tokens before model input
Diagram of text split into tokens before model input

Article

Planning

Estimate tokens for prompts, retrieved chunks, and expected answers. Leave budget for system instructions and tool JSON.

Examples

Budgeting RAG

You reserve 1,500 tokens for system+question, 6,000 for retrieved chunks, and 1,000 for the answer.

FAQ

How many tokens are in a word?
Often about 0.5–2 tokens for English words, but it varies widely; always measure with the real tokenizer.

Related tools

  • OpenAI API Platform — Developer platform for GPT models, embeddings, tools, and multimodal APIs used to build AI products.
  • Anthropic API — Claude API for developers building apps with Anthropic models, tool use, and enterprise controls.
  • Google AI Studio — Google’s playground and gateway for prototyping Gemini models and obtaining developer API access.

Related rankings

  • Best AI API Platforms in 2026 — AI API platforms are for builders calling models in products. This ranking is distinct from coding IDEs and from…
  • Best AI Developer Tools in 2026 — Developer tools cover IDEs, app builders, and engineer search — adjacent to but broader than “best AI for coding”…

Related topics

  • Large Language Models — Large language models (LLMs) are neural networks trained on vast text corpora to predict tokens in context, enabling…
  • Context Windows — A context window is the maximum amount of text (tokens) a language model can consider at once—including the system…
  • AI APIs — AI APIs expose model capabilities—chat, embeddings, speech, images, and more—over programmatic interfaces so developers…
  • Prompt Engineering — Prompt engineering is the practice of designing instructions, examples, and context so generative models produce more…

Sources