<aside> 🎯 Tokens are the fundamental unit of AI API pricing. Understanding them can save you hundreds of dollars per month.

</aside>

What is a Token?

A token is a chunk of text that AI models process. It's not exactly a word β€” it's more like a piece of a word. On average, 1 token β‰ˆ 0.75 English words, or about 4 characters.

Token Examples

Why Tokens Matter for Developers

Every AI API charges by tokens. When you send a prompt and receive a response, you're paying for:

  1. Input tokens β€” your prompt (system message + user message + context)
  2. Output tokens β€” the model's response
  3. Total cost = (input tokens Γ— input price) + (output tokens Γ— output price)

Token Pricing Comparison (2026)