Guide
Anthropic API bill doesn't match Claude Code usage
The short answer: your /usage figure is a local estimate, not the bill. The Console's Usage and Cost pages are the authoritative record, and the two sides often measure different things. Check the time range, the key, and the token buckets first; if the gap is still there after the 3-step check, take a day-by-day reconciliation to Anthropic Support.
For developers paying Anthropic API credits by the token and running Claude Code, whose bill total and local usage total do not line up. Not for subscription-only users with no API bill. Your numbers live in a different system.
Check it in 3 minutes
- 1
Check the time range first. Open the Console Cost page for the same organisation, workspace and date range as the sessions you checked. Normal: the same days on both sides. Abnormal: you compared a session total against a monthly bill. A session total resets to $0 with /clear and covers only this machine.
- 2
Check the key and the billing route. Run /status in Claude Code and check which credential is active. Normal: the key and organisation match the Console Billing page you are reading. Abnormal: an API key is in use while you expected plan usage. Public reports show this exact mix-up billing $447.30 to the API instead of a Max subscription (GitHub issue #62338).
- 3
Check the usage log, not the total. Split the day into input, cache write, cache read and output tokens. Normal: most of a long session is cheap cache reads. Abnormal: one day's cache writes dwarf everything else. The cache probably expired (default lifetime is 5 minutes) and the whole conversation was rewritten at full price.
Why the numbers differ
| Cause | How to check | What to keep |
|---|---|---|
| /usage is an estimate, not the bill | Claude Code computes the dollar figure locally from token counts at list price. The Console is authoritative. | The /usage output and the Console Cost export for the same days. |
| Session totals reset with /clear | A new session starts at $0. Add up sessions yourself instead of trusting one session's total. | Each session's /usage output before you clear it. |
| Cache writes and reads are billed too | Cache writes cost more than plain input; cache reads cost only a fraction of it. Long sessions mostly pay the read rate, unless the cache expired. | The prompt-cache line in /usage: request count, cache share, misses, warm or cold. |
| Cache expired mid-session | Default lifetime is 5 minutes, counted from the start of the request. A pause of a few minutes can force a full rewrite of the conversation prefix. | The gap between requests and the cache-miss time in /usage. |
| API key instead of subscription | Run /status. If an API key is active, spend lands on the Console organisation's prepaid credits, not your plan. | The key name (never the full key value) and the Console organisation it belongs to. |
| Monthly plan credits can't pay for Claude Code | Max, Ultra and Team monthly API credits cannot be used in Claude Code or the Claude apps. That spend is prepaid credits. | Whether the sessions in question ran on plan usage or prepaid credits. |
| Data-residency multiplier | Responses billed at the 1.1× data-residency rate cost 10% more than list price; /usage already multiplies them in. | Whether the organisation uses US-only inference. |
| Failed requests are not charged | Anthropic bills only successful API calls and completed tasks. If a day is high, look for completed retries and loops, not failures. | The retry and loop counts in your session logs for the high days. |
| Time-zone or day-boundary split | Reconcile the same days twice, once by UTC, once by the time zone the bill shows, and see which version the gap shrinks in. | Both versions of the day-by-day table, with the time zone written on each. |
| One key shared by several tools | Check the Console Usage page grouped by API key. Another script, test or scheduled job on the same key bills to the same account. | The per-key usage breakdown for the disputed days. |
Model prices change. This page does not list them. Check the current prices at claude.com/pricing and use the prices in force on the billing dates, not today's prices, when you re-calculate.
Reconcile it day by day
- 1
Lock the scope. Confirm the billing period, organisation, workspace, API key and currency (USD) match on both sides, and that the spend is API pay-as-you-go, not subscription usage. If any of these differ, stop and fix the scope first. A scope error is not a billing error.
- 2
Prepare two files. Your local logs (Claude Code session logs, with date, model, input/output tokens, and cache read/write where available) and the bill CSV exported from the Console Usage or Cost page for the same period. Remove API keys and sensitive file contents before you share either file.
- 3
Run the free check-up. Drop both files into /app. It runs in your browser and produces a day-by-day table: local estimate, bill amount, difference and difference % for each day and model.
- 4
Re-calculate by token bucket. Split each high-gap day into input, cache read, cache write and output, and multiply each bucket by the price in force that day. A bucket that is zero locally but large on the bill, or one bucket carrying more than half the total gap. Is the lead to chase.
- 5
Decide: explainable, or worth disputing. As an operating rule of thumb from Fireborn (not an Anthropic policy): a single day over $5 and over 3%, or a billing period over $20 and over 3% in total, is worth taking to support with an evidence pack. Below that, work through the causes table first. If the gap sits on the first or last day only, re-run the reconciliation in the other time zone. If it disappears, it was a day-boundary split, not a billing error.
What to keep for a dispute
- Bill export: the invoice or receipt from the Console Billing page, with the billing period, date, amount and invoice number.
- Usage export: the Usage and Cost CSVs for the same date range.
- Local record: the /usage output for the sessions in question, saved before /clear.
- Scope note: organisation, workspace, API key name, model, and the time zone used for the day split.
- Day-by-day table: local estimate vs bill amount vs difference, per day and model, with the worst 3 days highlighted.
- Bucket split: the token-bucket re-calculation for the worst days, showing which bucket carries the gap.
- Contact record: ticket number and date for every message you send to support.
The check-up reads your files inside your browser tab and sends nothing anywhere. It does not log in to your account, does not promise a refund, and does not file disputes for you.
Dispute draft. Copy this structure
Do not paste a finished letter full of numbers. Fill in the blanks from your own evidence pack:
- Facts: billing period, organisation, total on the bill, total from your logs, and the date range.
- Difference: the day-by-day table for the worst days. Date, model, local tokens by bucket, bill tokens by bucket, local amount, bill amount, difference.
- Ask: ask support to review the listed charges. Do not write “please refund me” as the opening ask. The review comes first.
- Attachments: list the files attached (bill export, Usage/Cost CSVs, /usage output, day-by-day table).
FAQ · Anthropic API bill vs Claude Code usage
Why doesn't my Anthropic API bill match my Claude Code usage?
The two numbers usually measure different things. Claude Code's /usage command shows a local estimate computed from token counts at list price for the current session, and that figure resets when you start a new session with /clear. The Anthropic Console Usage and Cost pages are the authoritative billing record. A second common cause is billing identity: a Claude subscription and the Claude API are billed separately, and if an API key is in use, Claude Code bills the Console organisation's prepaid credits instead of your plan. Check that you are comparing the same organisation, workspace, API key, model and date range on both sides.
Is the dollar amount shown by /usage in Claude Code the amount I will be billed?
No. The /usage figure is an estimate Claude Code computes locally from token counts at list price. For authoritative billing, use the Usage and Cost pages in the Claude Console. Session totals reset to $0 when /clear starts a new session, so a single session total never equals a monthly bill.
How do I check whether Claude Code is using my subscription or an API key?
Run /status inside Claude Code and check which credential is active, then compare it with the organisation and billing page in the Claude Console. Public reports show the mix-up happening in practice: one developer was billed $447.30 to the API instead of a Max subscription when an API key was set (GitHub issue #62338). If the key is not the one you meant to use, remove it from your environment and sign in with your plan instead.
What evidence should I collect before disputing an Anthropic bill?
Collect the billing period and the exact charge (date, amount, invoice or receipt number from the Console Billing page), the Console organisation and workspace, the API key or keys involved, the /usage output for the sessions in question, the Usage and Cost CSV exports for the same date range, and a short note of the discrepancy. Do not share the full API key value with support; share only the key name or its last characters if asked. Then contact Anthropic Support from the Console and attach the evidence pack.
Sources
- Claude Code: Manage costs effectively: /usage is a local estimate; totals reset with /clear; cache statistics; 1.1× data-residency rate. Opened 2026-11-23.
- Anthropic: How do I pay for my Claude API usage?: prepaid credits; only successful calls billed; monthly plan credits can't be used in Claude Code; credits expire after one year and are non-refundable. Opened 2026-11-23.
- Anthropic: Prompt caching: cache writes and reads are charged; default 5-minute lifetime; lifetime counts from the start of the request.
- Anthropic: Pricing: billing is per token, per model, input and output priced separately, all prices in USD. Model prices are not repeated here; check the live page.
- GitHub: Claude Code billed $447.30 to the API instead of a Max subscription: public report of the API-key vs subscription mix-up.
- Claude pricing page: current model prices.
Fireborn finds and stops surprise charges for free. If money is owed, it gives you a free appeal template to send yourself. Setting up a hard spend cap for you is a paid job on Upwork. It does not promise refunds or log in on your behalf. Figures in this page follow the sources cited; anything without a source is marked as to be verified. Last verified: 2026-11-23. Applies to: Anthropic API pay-as-you-go billing with Claude Code. By Fireborn (6hn68).