Skip to content

How to read your token bill

Your AI bill is a pile of token counts multiplied by prices. Once you know which counts to look at, most jumps explain themselves.

The four numbers that matter

Input tokens. Everything you send: system prompt, chat history, retrieved documents, tool results, and the user's message. In most apps this is the biggest number, because the same prompt and history get sent again on every call.

Output tokens. What the model writes back. Usually a smaller count, but often billed at a higher rate per token than input. Check your vendor's pricing page.

Cached input tokens. Some providers charge less for input that matches a recently sent prefix. If your bill shows a cached line, it tells you how much of your prompt was reused. If it is near zero and your prompts share a long, stable start, something is breaking the cache.

Model. Prices differ a lot between models. The same token count on a larger model can cost many times more.

Read it in this order

  1. Find the model mix. Did a call path switch to a bigger model? A config change or a new default can do this quietly.
  2. Split input from output. If input grew, look at prompt length and history. If output grew, look for missing output caps or prompts that invite long answers.
  3. Divide by calls. Total tokens over number of calls gives tokens per call. If calls went up but users did not, look at retries and agent loops.
  4. Break it down by feature. The vendor console usually groups by API key or project. If every feature shares one key, you cannot tell them apart. Give each feature its own key or project, or log usage yourself.

Common causes of a jump

Do this once

Most chat APIs return token counts with every response. Save them. With your own log you can answer "which feature, which model, which user" without waiting for the monthly bill. Log tokens per request shows a small logger.

If you are juggling several providers and want one place to see and buy tokens, TokenCenter is built for that.

Checklist

All field notes