Tools to Track and Reduce OpenAI and Anthropic API Spend (2026)

For engineering and finance teams who pay OpenAI, Anthropic, Google or AWS for model usage. Written by SOMA AI, which is one of the options at the end, so check each claim against the linked page. Checked on .

Page updated

Part of the SOMA AI Emission Factors cluster.

What tools track and reduce OpenAI and Anthropic API spend?

SOMA AI, a Barcelona company that estimates and helps cut the cost and carbon of company AI use, publishes this guide to the ways of tracking and capping OpenAI and Anthropic API spend, ordered from the controls you already have to the tools you add. Start with the native controls, because every provider has some: spend limits, alerts, usage dashboards and cost APIs. Add a gateway if you need per-key or per-team caps the provider does not offer. Add observability if you need cost per trace or per user. Add a FinOps platform if finance needs AI next to cloud. SOMA AI's free AI footprint calculator estimates a company's monthly AI cost across seats and API at list price, with saving actions and carbon, energy and water estimates, and its LLM API cost calculator compares the list-price cost of models for your token mix. The order of the tools below is not a ranking.

What can you control inside OpenAI, Anthropic, Google and AWS?

Native controls, from each provider's own documentation as read on 25 November 2026. "Not stated" means the pages we read did not say.
ProviderSpend capAlertsBreakdown and APILimits to know
OpenAI API platformMonthly limits at organisation and project level, with an optional hard limit that returns a 429 errorAlert at 100% by default when a project limit is created, more recipients can be addedUsage by project in the dashboard. Usage API and Costs API group by project, API key, user and model, with an admin keyNo per-key cap in the guide. Alerts do not cap spend. Enforcement is not instantaneous
Anthropic ConsoleOrganisation spend limit and a monthly cap per tier (Start, Build, Scale, Custom). Custom limits per workspaceNot stated on the pages readUsage and Cost pages in the Console. Usage and Cost API by workspace, API key and model, and a newer Usage and Cost Analytics API in betaAdmin API needs an organisation. At the tier cap, usage pauses until the first day of next month unless a higher limit is requested. Cost API is daily only
Google Cloud Billing for Gemini API and Vertex AISpend-cap budgets pause the Gemini API or Vertex AI for the rest of the budget periodEmails at 50%, 80% and 100% of a spend cap. Alert-only budgets also existCloud Billing reports. Per-key breakdown not statedVertex AI appears as Gemini Enterprise Agent Platform on Google's page
AWS BedrockNot stated on the page readNot stated on the page readApplication inference profiles attribute cost by application, team or workload, with tags flowing to Cost Explorer and Cost and Usage ReportsFinest grain is per usage type per day, not per request. Tags take up to 24 hours and are not retroactive. Not supported by the Responses and Chat Completions APIs

How do OpenAI's limits and cost reports work?

OpenAI's project guide says monthly API spend limits are available at both the organisation and project levels. In a project you set a monthly limit and an alert threshold, and you can enforce a hard limit that stops API traffic once the tracked limit is reached. Requests then return a 429 error with organization_spend_limit_exceeded or project_spend_limit_exceeded. The guide also says spend alerts do not enforce a cap, and that enforcement is not instantaneous. For reporting, the Usage API returns completions usage in one-minute, one-hour or one-day buckets, and the Costs API returns daily cost, both grouped by project, user or API key and needing an admin key. That gives you cost per key even though the limit guide describes no per-key cap.

How do Anthropic's workspaces, tiers and cost API work?

Anthropic's rate-limits page names the tiers Start, Build, Scale and Custom. Each of Start, Build and Scale carries a monthly spend cap, $500, $1,000 and $200,000, and Custom has none. New organisations may start in an Evaluation tier. You can set your own organisation spend limit at the Console's spend-limits page, which cannot exceed the tier cap, and custom spend and rate limits for each workspace. If a workspace has none, it matches the organisation's limit. The default workspace's spend limit might not count or stop some usage, such as the playground, Managed Agents and some Claude Code.

For reporting, the Console shows Usage and Cost pages. The Usage and Cost API is described as a legacy API that remains supported, and Anthropic points new integrations to the Usage and Cost Analytics API, currently in beta. Usage data typically appears within 5 minutes. The Cost API reports in USD at daily granularity, and Priority Tier costs are not included in the cost endpoint. Anthropic lists CloudZero, Datadog, Grafana Cloud, Harness, Honeycomb, Tempo and Vantage as partner integrations.

Which gateways, observability tools and FinOps platforms add to that?

From each publisher's own pages, read on 25 November 2026 (Vantage, CloudZero and Finout rows also draw on a read of 23 November 2026). The order is not a ranking. No prices are shown.
ToolKindWhat it does for API spendBudget or cap
LiteLLM proxyOpen-source gateway, MIT, self-hostedBudgets per virtual key, team, team member, user, customer, model and globalYes, max_budget in USD with a duration. Over budget, requests fail. Needs a PostgreSQL database
PortkeyGatewayCost from provider pricing tables across over 250 modelsBudget limits in USD or tokens, weekly or monthly reset, with email alerts. Available on the Enterprise plan and select Pro customers
OpenRouterSingle API to hundreds of modelsPer-key spending cap with a daily, weekly or monthly resetYes. An exhausted key's requests fail with a 403
Cloudflare AI GatewayProxy, available on all plansRequests, tokens and cost metrics, caching and rate limiting. Cost is an estimate from tokens sent and received, with custom costs for negotiated ratesSpend limit not stated
LangfuseOpen-source LLM observability, MITCost ingested from the provider response or inferred from model price definitions, with dashboards and spend alertsBudget enforcement not stated
LangSmithLLM observabilityRecords token usage and cost automaticallyNot stated
Datadog LLM ObservabilityObservability suiteEstimated cost per LLM request from providers' public pricing and token counts, with manual overrideNot stated
HeliconeGateway and observabilityThe site says Helicone is now part of Experiential Labs, and its sign-up page says sign-ups are disabled, so we do not list it as a new optionNot stated
CloudZeroFinOps platformAnthropic, OpenAI and Gemini cost next to cloud costNot stated
VantageFinOps platformOpenAI cost by operation and model, ChatGPT Enterprise by user, and AnthropicNot stated
FinoutFinOps platformConnects to provider APIs and breaks usage down by model, endpoint and token count, with budgets and forecastingBudgets and forecasting stated, enforcement not stated

A gateway sits in the request path, so it can refuse a call once a budget is spent. Observability tools and FinOps platforms report and alert, and some read the provider's billing data. If finance needs the wider picture, see the AI cost management tools compared guide, which also covers SaaS spend tools and carbon, and FinOps for generative AI for the practices around them.

How do you reduce the spend once you can see it?

Visibility is the first step and the savings come from the levers. Prompt caching, batch processing, routing work to a smaller model and lowering reasoning effort each change what a token costs or how many you use. SOMA AI's six levers guide sets each one next to its effect on carbon, and the cost and carbon per million tokens table puts list prices beside the SAEF estimates.

Where does SOMA AI fit?

SOMA AI is a Barcelona company, and this page is its own. Its free AI footprint calculator needs no sign-up. You describe the AI your organisation uses, seat tools and API usage, and it estimates the monthly cost at list price together with CO2e, electricity and water, and lists saving actions. The LLM API cost calculator compares models for a token mix.

Limits worth knowing. The cost is a list-price estimate, not your invoice, and it does not read your billing data or sit in your request path. It therefore does not enforce a budget, and it does not replace a native limit, a gateway or a FinOps platform. The carbon figures are estimates from published defaults. The method is on the methodology page.

What does this page not claim?

  • That this list is complete or ranks the tools. It is a dated sample of tools whose official pages we could read.
  • That a limit or feature marked not stated does not exist. It means the pages we read did not say.
  • That any limit, tier or feature holds beyond 25 November 2026. Providers change them.
  • That SOMA AI's figure matches an invoice. It is a list-price estimate and does not enforce a spend limit.
  • Any prices for the third-party tools. We left them out because vendors change them often.

How was this page checked, and how do I correct it?

Every row links to the publisher's own page, read on 25 November 2026. Other pages used: OpenAI spend limits guide, Google Cloud budgets and Portkey budget limits. If you maintain one of these products and something here is wrong or out of date, write to guillermollopis@somaai.earth and we will correct it and date the change.

Short answers

Can I set a spending limit on the OpenAI API?
Yes. OpenAI offers monthly spend limits at organisation and project level, with an alert at 100% of the limit created by default and an optional hard limit. With the hard limit on, requests return a 429 error once the limit is reached. Alerts alone do not cap spend, and enforcement is not instantaneous, so recorded spend can slightly exceed the limit.
Can I cap spend per API key on OpenAI?
OpenAI's spend-limit guide describes limits at organisation and project level only, not per key. You can track cost per key through the Costs API by grouping on api_key_id, or put keys behind a gateway such as LiteLLM or OpenRouter, which cap spend per key.
How do I track Anthropic API costs by team?
Use workspaces. Each workspace can have its own spend and rate limits, and the Cost page and the Usage and Cost API group by workspace, with the usage endpoint also filtering by API key. The Admin API is not available to individual Console accounts or the claude.ai Team plan, so you need an organisation.
What are Anthropic's API spend tiers?
Start, Build, Scale and Custom. Start carries a monthly spend cap of $500, Build $1,000 and Scale $200,000, and Custom has no cap and is arranged with Anthropic. New organisations may start in an Evaluation tier. Placement is automatic, based on usage history and account standing.
Can I stop Gemini API spend automatically?
Yes. A Google Cloud Billing spend-cap budget that covers the Gemini API or Vertex AI (now named Gemini Enterprise Agent Platform on Google's billing page) pauses usage for the rest of the budget period at 100%, and sends alert emails at 50%, 80% and 100%. Budgets that only alert are also available.

Keep reading