Nythrex

Glossary · Definition

Tokens

Tokens are the chunks of text a language model reads and writes; they are how context limits are measured and how most model APIs are billed.

By Nythrex EngineeringUpdated 1 min read

In plain words

Models don’t process words but tokens — pieces of words, whole words or punctuation. Providers charge per million input and output tokens, usually with output costing more. The same text can take more tokens in some languages than in English.

When it matters to you

  • Estimating API costs
  • Designing prompts and retrieval
  • Comparing models and providers

Common pitfalls

  • Counting only the user’s message, not the whole prompt
  • Forgetting output tokens are pricier
  • Assuming token counts are identical across languages and models

Want a second opinion on your project?

Tell us what you’re building and where you’re stuck. We’ll reply within one business day with the most practical next step — even if that step isn’t us.

Start a project