How to monitor Anthropic API spend: five ways, and how fresh each one is
Anthropic gives you two Console pages, spend limits and two Admin APIs for watching Claude API spend. They answer different questions, and their data arrives at very different speeds: minutes for one, hours for another. Here is what each shows, which question it answers, and when a third-party tool is worth adding.
Last reviewed 30 Nov 2026
The short version
- Stop first, watch second. Only an organization or workspace spend limit stops requests. Everything else on this page tells you after the money is spent.
- "How much this month?" The Console Cost page (
platform.claude.com/cost): daily cost chart by workspace and model, CSV export. You have to go and look. - "Is today unusual?" The legacy cost report (
/v1/organizations/cost_report): data typically within 5 minutes, but daily buckets only and no per-key split. - "Which key or agent spent it?" The Usage and Cost Analytics API (beta): cost by API key, model, workspace or user, in minute, hour or day buckets, but data typically refreshes within 4 hours and can take up to 24.
- Alerts beyond a workspace email notification need a script or a tool that polls one of these APIs with an Admin API key.
KeyBark checks your OpenAI, Anthropic or OpenRouter spend about every 15 minutes during the beta and emails you when it crosses a daily or monthly threshold you set, or jumps above its 7-day average. It doesn't set or enforce limits for you. Free for one key, no card.
The five ways side by side
| Way | What you see | How fresh | Alerts? | Stops spend? |
|---|---|---|---|---|
| Console Cost page | Cost in USD by workspace and model, daily chart for a month, token and tool-use costs (web search, code execution), CSV | Not stated in Anthropic's docs | No | No |
| Console Usage page | Tokens (not dollars) by model, API key and date, down to hour and minute; rate-limited requests; CSV | Not stated | No | No |
| Spend limits + workspace email notifications | A monthly cap for the organization and for each workspace; an email when a workspace reaches an amount you choose | Monthly running total | Email, workspace level, if Anthropic bills you directly | Yes, the limit |
| Cost report API (legacy, still supported) | Organization cost in USD cents per UTC day, by workspace or description | Typically within 5 minutes | Only what you build | No |
| Usage and Cost Analytics API (beta) | Cost by API key, model, workspace, service tier, user or service account; 1m, 1h or 1d buckets | Typically within 4 hours, up to 24; revised until about 7 days after month end | Only what you build | No |
The Console reports are visible to the Developer, Billing and Admin roles, and the Help Center notes the Console can't break usage or cost down by individual user. Both APIs need an Admin API key (sk-ant-admin01-…) or another Admin API credential, not a workspace key, and aren't available to individual Console accounts (set up an organization first) or to organizations on the claude.ai Team plan.
The trade-off that matters: fresh or detailed
The two Admin APIs are not interchangeable, and this is the part most monitoring setups get wrong.
- The legacy cost report is fresh but coarse. Anthropic says data typically appears within 5 minutes and that polling once per minute is fine for sustained use. But the cost endpoint only has daily buckets, and you can group by workspace or description, not by key. That makes it the right source for a daily threshold or a spike check on today's running total.
- The Analytics API is detailed but late. It splits cost by
api_key_id, model, workspace or actor, even per minute. But its docs say data typically refreshes within 4 hours and can take up to 24, and that usage after thedata_refreshed_attimestamp in each response is missing or partial. An alert built on it can be hours behind; a breakdown built on it is the best Anthropic offers. - Use both. Alert from the cost report; when an alert fires, open the Analytics API (or the Console Usage page for tokens by key) to find the key. Step-by-step per-key queries are in Anthropic cost per API key.
Two commands to start with
Both need an Admin API key in ANTHROPIC_ADMIN_KEY (keep it in a secrets store, not in code) and jq.
# Today's Claude API cost so far (UTC day), in dollars
curl -s "https://api.anthropic.com/v1/organizations/cost_report?starting_at=$(date -u +%Y-%m-%d)T00:00:00Z&bucket_width=1d" \
-H "anthropic-version: 2026-10-21" -H "x-api-key: $ANTHROPIC_ADMIN_KEY" \
| jq '[.data[].results[].amount | tonumber] | add // 0 | . / 100'The cost report returns amounts as decimal strings in cents, so the command divides by 100. Priority Tier costs are not in this endpoint (track Priority Tier through the usage endpoint).
# Which API keys spent the most in the last 7 days (UTC days)
curl -s --globoff "https://api.anthropic.com/v1/organizations/analytics/cost?\
starting_at=$(date -u -d '7 days ago' +%Y-%m-%d)T00:00:00Z&\
ending_at=$(date -u +%Y-%m-%d)T00:00:00Z&\
group_by[]=api_key_id&limit=10" \
-H "anthropic-version: 2026-10-21" \
-H "anthropic-beta: analytics-usage-cost-2026-08-24" \
-H "x-api-key: $ANTHROPIC_ADMIN_KEY" \
| jq -r '.data_refreshed_at, (.data[] | [.group.api_key_id, ((.cost.amount | tonumber) / 100)] | @tsv)'Analytics API amounts are also cents (six decimal places, after discounts and before credits). Rows are ranked by cost, largest first. Ranges must start on or after 1 January 2026, within the last 365 days, and span at most 31 days per request. The first line printed is data_refreshed_at: anything after it isn't counted yet.
Details that change your numbers
- Default Workspace: the legacy reports show its
workspace_idasnull; the Analytics API shows its realwrkspc_ID. Don't drop null rows when you sum. Default Workspace limits have their own caveats: see Anthropic Default Workspace limits. - Usage without a key: Console playground requests have
api_key_id: null, as do Workload Identity Federation requests and some Claude Managed Agents sessions, so a per-key view never adds up to the organization total. - Claude Code: when a member signs in with a Console account, Claude Code can create a per-user key in the auto-created Claude Code workspace (the only workspace with per-user monthly spend limits); after a sign-in without an API key, its usage has no
api_key_id. For per-user cost, the Analytics API cost endpoint takesproducts[]=claude_code&group_by[]=actor. Caps are covered in Claude Code spend limit. - Priority Tier: in the Analytics API, requests under a Priority Tier commitment show zero token cost, because the commitment fee is billed separately.
- Cloud platforms: on Claude Platform on AWS the legacy endpoints aren't available (use the Analytics API per AWS region); on Claude Models on Google Cloud (Anthropic managed) only the legacy usage endpoint is, so cost data comes from the Analytics API or the Console Cost page.
Set the limits that actually stop spend
- Open Spend limits in the Console (
platform.claude.com/settings/spend-limits) and set an organization monthly spend limit (it can't exceed your tier's cap). When it's reached, requests return HTTP 400invalid_request_errorstarting "You have reached your specified API usage limits". - Under Workspace limits, give each app or agent's workspace its own monthly limit. If Anthropic bills you directly, click Add notification for an email at an amount below it.
- Then add the monitoring above for what limits can't do: daily thresholds, spikes, and finding the key. The API route for workspace limits is in Anthropic workspace spend limits via the API, and the alert script in Anthropic API spend alerts.
When a monitoring tool is worth it
Every outside tool reads the same Admin APIs, so none can see spend sooner than Anthropic reports it, and none replaces a spend limit. What a tool saves you is running and maintaining a script, plus history, charts and delivery. Roughly:
- FinOps platforms suit teams that already track cloud bills there. Vantage says it connects with an Admin API key using read-only access, breaks costs down by model, workspace, API key and service tier, and alerts on cost or usage budgets. Datadog's integration ingests the Admin and Analytics usage and cost APIs for dashboards, monitors and anomaly alerts.
- Request-level tools (proxies, SDK wrappers, tracing) see each call as it happens, but only the calls routed through them, and they usually work cost out from token counts.
- Small spend-alert tools poll the provider's cost data and email or post when a threshold or spike hits, for builders without a FinOps team. A fair side-by-side is in AI API spend alert tools compared.
Where KeyBark fits
We built KeyBark, so weigh this accordingly. With an Anthropic Admin key you connect, it reads your organization's daily cost report (Default Workspace included) from our servers about every 15 minutes during the beta and emails you when a daily or monthly dollar threshold you set is crossed, or when today's spend jumps above its 7-day average. Slack alerts and an opt-in kill switch (beta) are on paid plans; the kill switch can set one Anthropic key you name to inactive when a threshold is crossed. Free for one key.
Limits, honestly: organization totals only, not per key or per model (use the Analytics API or Console Usage page for that); checks run on a schedule and depend on Anthropic's reporting delay, so an alert can come after money has been spent; it doesn't set Anthropic spend limits for you; and the Console Admin key it needs has no scopes, so give it a dedicated key (see Read-only admin key for AI cost tools). Teams already in Vantage or Datadog may prefer those integrations.
Checklist
- Organization monthly spend limit set.
- Each app or agent in its own workspace with a monthly limit and, if available, an email notification.
- A daily and spike check from the cost report (script or tool), delivered somewhere you'll see it.
- A saved Analytics API query by
api_key_idfor when that check fires, readingdata_refreshed_atbefore trusting the numbers. - A dedicated Admin key for monitoring, stored as a secret; a plan to disable a key if it may have leaked (Anthropic API key leaked).
Want a second opinion on your caps? The free AI key limit audit checks OpenAI, Anthropic and OpenRouter settings in a couple of minutes (no sign-up, no key needed). Related: Anthropic API spend alerts, Anthropic cost per API key, Runaway AI agent cost.
FAQ
What is the best way to monitor Anthropic API spend?
Use two layers. First, set an organization monthly spend limit and per-workspace limits in the Claude Console, because only a limit stops requests. Then add monitoring that matches your question: the Console Cost page for a monthly look, the Admin API cost report (data typically within 5 minutes, daily totals) for 'is today unusual?', and the Usage and Cost Analytics API (per key, but typically refreshed within 4 hours) for 'which key or agent spent it?'. A monitoring tool is worth it when you want alerts without running your own script.
How up to date is Anthropic cost data?
It depends on the source. Anthropic's legacy Usage and Cost API docs say data typically appears within 5 minutes of a request completing, though delays can occasionally be longer. The newer Usage and Cost Analytics API says data typically refreshes within 4 hours and can take up to 24 hours, and values can still be revised until about 7 days after the end of the month. Every Analytics API response carries a data_refreshed_at timestamp; usage after it is missing or partial.
Can I see Anthropic spend per API key?
In dollars, yes, with the Usage and Cost Analytics API: GET /v1/organizations/analytics/cost with group_by[]=api_key_id (Admin API key and the analytics beta header). The Console Usage page breaks down tokens by API key, and the Console Cost page shows cost by workspace and model, not by key. The legacy cost report groups by workspace or description, not by key.
Does Anthropic alert me when spend is high?
Partly. A spend limit you set stops requests when reached, and if Anthropic bills your organization directly you can add an email notification to a workspace's spend limit at an amount you choose. There is no daily threshold or spike alert in the Console, so daily or spike alerts need a script or a tool that reads the Admin API.
Sources (checked 30 Nov 2026): Claude Help Center Cost and usage reporting in the Claude Console; Claude docs Usage and Cost API, Usage and Cost Analytics API, Workspaces, Rate limits; Vantage Anthropic integration; Datadog Anthropic Usage and Costs. KeyBark is not affiliated with Anthropic, Vantage or Datadog.
KeyBark watches your OpenAI, Anthropic and OpenRouter spend from the server and flags a crossed threshold or spike by email and on your dashboard. Free for one key.