
You send a 400-word prompt to an AI assistant. The dashboard says you used 1,200 tokens. Your invoice shows 1,850. Neither number matches the word count, and the gap isn’t a rounding error.
Token counting drives every AI tool’s pricing, but most operators treat it as a black box until the bill arrives higher than expected. The mismatch happens because tokenisation rules, metadata overhead, and billing windows don’t align the way you’d expect.
Tokens aren’t words, and the ratio drifts by language
A token is a chunk of text the model processes—usually a few characters, a whole word, or a word fragment. English averages roughly 0.75 tokens per word, but that ratio breaks down fast. Punctuation, code snippets, and non-Latin scripts push the count higher. A 400-word prompt mixing prose and JSON might tokenise to 650 tokens, while the same word count in German or Chinese can hit 800.
Most dashboards show input tokens (your prompt) and output tokens (the model’s reply) separately. If you asked for a 300-word article and got 450 words back, that output might tokenise to 600 tokens—on top of the 650 from your prompt. You’re billed for 1,250 tokens round-trip, but the UI might show only the prompt count unless you expand the detail view.
Anthropic’s token counting documentation (checked November 2026) explains that Claude models count tokens using a byte-pair encoding tokeniser, and the same text can yield different counts across model families. OpenAI’s tokenizer tool (checked November 2026) shows real-time token breakdown, and it’s worth running your typical prompts through it to benchmark your average ratio.
System prompts and metadata add invisible overhead
Your 400-word prompt isn’t the only text the API processes. If you’re using an AI tool with a system prompt—instructions that set tone, format, or constraints—that prompt gets tokenised and billed on every request. A 150-token system prompt on a 650-token user prompt means you’re paying for 800 tokens before the model replies.
Some platforms append metadata: timestamps, user IDs, session context, or retrieval-augmented generation (RAG) chunks pulled from a knowledge base. If your tool auto-injects three citation blocks of 50 tokens each, that’s another 150 tokens per call. The dashboard might show your prompt token count without breaking out the system-prompt or metadata overhead, so the invoice total looks inflated.
Check your tool’s API request logs or billing detail export. Most platforms—Claude, OpenAI, Cohere—offer a per-request breakdown in the usage dashboard or via API. If the per-request count is consistently higher than the user-prompt token count you see in the UI, system prompts or metadata are the gap.
Billing windows batch usage, and UI counters refresh on delay
Real-time dashboards poll usage every few minutes or on page load. Your invoice aggregates usage across the full billing cycle, often with a reconciliation pass at month-end that picks up requests the live counter missed—retries, cached responses that still counted as billable, or background jobs triggered by integrations.
If you’re calling the API through a wrapper service (Zapier, Make, a custom middleware layer), the wrapper may retry failed requests without surfacing the retry in your app’s UI. Each retry consumes tokens. A single prompt that failed twice and succeeded on the third attempt costs you three times the token count, but your application log shows one successful call.
Caching is another source of mismatch. Some models offer prompt caching: if you send the same system prompt or context block repeatedly, the provider caches it and bills you a reduced rate for cached tokens. The UI might show gross tokens, while the invoice applies the cache discount—making the billed count lower than the dashboard estimate. Anthropic’s prompt caching documentation (checked November 2026) details how cached versus uncached tokens are billed separately.
How to reconcile and forecast usage accurately
Export your tool’s per-request usage log at least once a week. Compare the sum of input + output + system tokens against your live dashboard and your running invoice. If the log matches the invoice but not the dashboard, your UI counter is stale or excludes overhead. If the invoice is higher than the log, check for retries, background jobs, or middleware layers that aren’t logging to your main account.
For forecasting, calculate your average billed tokens per request over the last 500 calls, not the word count of your prompts. Multiply that average by your expected request volume, then add 15–20 percent buffer for retries, metadata drift, and system-prompt changes. That buffer sounds high, but it’s cheaper than a surprise invoice.
If you’re integrating AI into a user-facing product, pass the per-request token count back to your application log and display it in an admin panel. That way you spot usage spikes in real time, not at month-end.
Want more deep-dives on the tools that run your online business? Subscribe to One Two Three Send and get one operator-focused article every day—no fluff, no listicles, just the mechanics that matter.
Heads up — some links in this article are affiliate links. If you sign up through them, we may earn a small commission at no extra cost to you. We only recommend tools we use ourselves.
