AI Cost Save
AICostSave

Token

A token is the unit LLM providers bill by—roughly a word fragment. Token count drives nearly all AI API cost.

Definition

A token is the chunk of text an LLM reads and generates. In English, a token is about four characters or roughly three-quarters of a word. Other languages vary.

Why it matters for cost

Providers price by tokens, split into:

  • Input tokens (what you send)
  • Output tokens (what the model returns)

Your bill is essentially input tokens × input rate + output tokens × output rate, multiplied by how many calls you make.

Practical tip

Reducing token usage—shorter prompts, cached context, capped outputs—is the most direct way to lower AI API cost.

Related reading