Guide

Why your token count doesn't match the bill

The short answer: your counter and the bill are counting different things. Your counter sees the words you typed. The bill counts those words plus formatting, tool definitions, hidden reasoning, and cache pricing. The gap is usually one of four things.

1. Message formatting

Every message carries framing tokens the API adds around your text. A local counter that only counts words misses them, and the miss grows with the number of messages. Short chats hide it; long ones do not.

2. Tool definitions, injected every call

If your agent defines tools, the definitions ride along on every call, whether the model uses them or not. A big tool list billed on every turn is a common reason the count drifts upward across a session.

3. Hidden reasoning tokens

Reasoning models spend tokens thinking before they answer. Those tokens are billed, usually at output rates, and you never see them in the reply. Streaming responses often do not return usage unless you ask for it, so a streamer counting locally is counting blind.

4. Cache pricing

A cached read costs a fraction of full price, so the same prompt can cost several times more the day it falls out of cache. One developer's bill went from $1,108 to $4,312 in a week when a small edit moved a roughly 60,000-token prompt out of the cached prefix. And every message re-sends the history: in a measured test, typing "thanks!" sent 588 input tokens.

What to check

  1. Read the usage object on the API response: prompt_tokens, completion_tokens, and the cached split. That is what you are billed on, not your estimate.
  2. Split cached reads from full-price input. A cache-hit rate that fell is the $4,312 pattern.
  3. Check reasoning_tokens on reasoning models, and whether your streaming client requests usage at all.
  4. Reconcile the bill day by day. A gap that grows across days is usually history growth or a cache miss, not a rate change.

Numbers on this page come from the sources below, not from our own estimate.

FAQ · Why your token count doesn't match the bill

Why is the billed count higher than my count?

Your counter sees the message text. The bill also counts per-message formatting, tool definitions injected on every call, and hidden reasoning tokens billed at output rates. One worked example: 1,200 counted, 1,950 billed.

What are hidden reasoning tokens?

Tokens the model spends thinking before it answers. You do not see them in the reply, but they are billed, usually at output rates. Streaming responses often do not return usage at all unless you ask for it.

Can the cache explain a big gap?

Yes, and it explains the biggest gaps. A cached read costs a fraction of full price. One developer's bill went from $1,108 to $4,312 in a week when a 38-line edit moved a 60,000-token prompt out of the cache prefix.

Does a long chat make it worse?

Yes. Every message re-sends the whole history. In a measured test, a two-token "thanks!" sent 588 input tokens, and after 8 turns the same word needed 933.

Sources

Case counts on this page come from our research library of 656 verified public AI billing dispute cases (170 curated cases plus 486 collected on 2026-11-24). Counts are keyword counts over the case texts; one case can match more than one pattern.

Fireborn finds and stops surprise charges for free, and the appeal templates are free too. The paid service is a hard spend cap set up for you, sold on Upwork. It does not promise refunds or log in on your behalf. Figures on this page follow the sources cited. Last verified: 2026-11-28. By Fireborn (6hn68).

Still seeing a gap? Generate a day-by-day reconciliation in /app Get a hard cap set up for you on Upwork