technicals

What are tokens?

June 1, 2026 · 4 min read

TOKENSText is sliced into chunks.Each chunk is one thing you pay for.“models are useful”models␣are␣useful¢¢¢¢¢5 tokens= 5 chargesA token is a sub-word chunk — not a whole word, not a letter. You're billed per token.

Definition

A token is a small chunk of text, often part of a word, that an AI reads and writes one at a time and bills you by.

At a glance

How it works

Your text is sliced into common character chunks before the model reads it.[5] Frequent words like “the” are one token; a rarer word like “tokenization” splits into “token” and “ization”. Spaces and punctuation count too. You never count by hand: free online tokenizer tools count any text exactly.[1]

Why it matters

Tokens are the meter. In 2026, prices ran from about 10 cents per million for budget models to $30+ for top reasoning models.[3] One request costs a fraction of a cent, but across thousands of daily users that becomes thousands of dollars a month. Long chat histories get re-sent every turn, so the meter runs faster than expected.

The context window

This is the model’s short-term memory, a hard ceiling on tokens. Modern windows hold hundreds of thousands of tokens, but when you hit the limit the oldest material drops, so the AI “forgets” the start of a long chat or misses details in a big document.

Bottom line

Once you know 100 tokens is about 75 words, that input and output are billed separately, and that the context window caps what fits, AI pricing becomes a number you can estimate and control.

Connects to Computer ScienceEconomics

References

  1. What are tokens and how to count them? OpenAI Help Center help.openai.com
  2. What Is Token-Based Pricing for AI Models. MindStudio www.mindstudio.ai
  3. LLM API Pricing Comparison In 2026: Every Major Model, Ranked By Cost. CloudZero www.cloudzero.com
  4. AI Context Window Comparison (2026): GPT, Claude, Gemini Token Limits by Model. Crazyrouter crazyrouter.com
  5. How tokenizers work in AI models: a beginner-friendly guide. Nebius nebius.com