CCyberwiki

Spending limits and budget alerts

Between 11 and 12 February 2026, a stolen Google Cloud API key belonging to a three-developer company in Mexico ran up $82,314.44 in charges, mostly on Gemini 3 Pro Image and Gemini 3 Pro Text. The company usually spent $180 a month, and a Google representative reportedly cited the shared responsibility model and said the charges stood.1 Running up another account's bill with a leaked key is called denial of wallet. Two kinds of setting bound that bill. A budget alert sends a message when spending passes a threshold and changes nothing else. A spending limit, also called a spend cap or hard limit, makes the provider refuse or pause new usage once the threshold is reached.

Alerts and caps by provider

An alert on its own stops nothing. An alerts-only Google Cloud budget does not cap usage or spending; its emails go out at 50%, 90% and 100% of the amount unless the owner changes the thresholds.2 The same split exists at OpenAI, where a spend alert notifies and API traffic carries on, and only a hard limit makes requests fail.3 On Vercel, a budget by itself leaves usage running until Pause production deployments is turned on.4

Table 1. What happens at the threshold
ProviderSetting that acts at the limitEffect at the limit
Google CloudSpend cap budget, for the Gemini API, Vertex AI, Cloud Run and Cloud Run functionsNew requests to that one service in that one project are paused until the next month
AWSBudget actionA deny policy blocks new resources, or chosen EC2 or RDS instances are targeted; API calls are not capped
OpenAIHard spend limit, per organization or projectHTTP 429 with project_spend_limit_exceeded or organization_spend_limit_exceeded
AnthropicTier cap; own limit per organization or workspaceHTTP 429 at the tier cap, HTTP 400 at a limit the owner set
VercelPause production deploymentsSites, APIs and functions stop serving until each project is resumed
AzureSpending limit, on credit-based subscriptions onlyServices disabled for the rest of the billing period

Some caps come from the provider rather than the owner. Anthropic gives each usage tier a monthly ceiling ($500 on Start, $1,000 on Build, $200,000 on Scale), pauses API usage until 00:00 UTC on the first day of the next month once it is reached, and lets the owner set a lower limit under Spend limits in the Claude Console.5 Azure turns a limit on by default for free accounts and subscriptions that include credit over several months, fixes it at the credit amount (USD 200 for a free account), and offers none at all on pay-as-you-go or commitment plans.6

Why a cap overshoots

Billing data reaches the system that enforces a limit some time after the usage happens. AWS Budgets refreshes up to three times a day, usually 8 to 12 hours apart, and charges past the threshold can build up before any notification arrives.7 Google enforces spend caps on gross estimated costs, which arrive faster than the figures on billing reports, yet enforcement is still not instant and the overage is billed as normal.8 Vercel checks spend every few minutes, so projects keep serving traffic for several minutes after a budget is passed.4 At OpenAI, recorded spend can slightly exceed a hard limit because enforcement is not instantaneous.3

A cap on requests also leaves standing resources alone. Under a Google spend cap, requests already in flight finish and are charged, and compute or storage that runs continuously keeps accruing.8 Google advises a budget below the funds available, and Vercel an amount below the most the owner is willing to spend.24

Scope

A limit covers the usage billed to its scope. An OpenAI organization limit applies to traffic across every project, and a project limit only to traffic billed to that project.3 Anthropic lets the owner give each workspace its own spend and rate limits.5 A Google spend cap covers exactly one project and one eligible service, on a monthly period.8 A key kept in its own project or workspace, with its own limit, therefore has a ceiling of its own.

Stopping the service

A hard stop also stops the owner's own application. OpenAI warns that a hard limit can interrupt production traffic.3 A paused Vercel project serves no visitors until it is resumed by hand,4 and an Azure subscription at its limit has its virtual machines stopped and de-allocated, with storage left read-only.6

Budget events can also start an automated response. An AWS budget action runs on its own or after manual approval; it can apply an IAM policy or a service control policy (the same kind of rule, set for a whole AWS account) that denies new resources, or target named EC2 server or RDS database instances.9 Google documents a small Cloud Run function that receives budget notifications through Pub/Sub, Google's message service, and removes Cloud Billing from the project. That shuts down every service in the project, Free Tier included, and resources may be deleted beyond recovery; the delay in notifications means it still does not guarantee spending stays within the budget.10

Setting a limit

At OpenAI, open Organization limits, or Project settings then Limits for one project, select Edit spend limit under Spend, enter the Monthly spend limit, turn on Enforce a hard limit and select Save.3 On Google Cloud, a spend cap budget asks for a single project, a single eligible service and a target amount, and an enforced cap can be lifted by hand before the month ends.8 Vercel budgets can also be set from the command line, where --pause turns on pausing:4

vercel billing budgets set --amount 200 --pause --webhook https://example.com/spend
vercel billing budgets set --project my-app --amount 100

An abused key still has to be revoked and replaced after the charges stop (see Responding to a leaked API key).

See also

References

  1. back Lyons, Jessica (3 March 2026). "Dev stunned by $82K Gemini bill after unknown API key thief goes to town". The Register.
  2. a b Google Cloud. "Create, edit, or delete budgets and budget alerts". Cloud Billing documentation.
  3. a b c d e OpenAI. "Spend limits". OpenAI API documentation.
  4. a b c d e Vercel (n.d., read 22 November 2026). "Spend Management". Vercel documentation.
  5. a b Anthropic (n.d., read 22 November 2026). "Rate limits", section "Spend limits". Claude API documentation.
  6. a b Microsoft (n.d., read 22 November 2026). "Azure spending limit". Microsoft Learn.
  7. back Amazon Web Services (n.d., read 22 November 2026). "Managing your costs with AWS Budgets". AWS Billing and Cost Management User Guide.
  8. a b c d Google Cloud. "Manage spend cap budgets". Cloud Billing documentation.
  9. back Amazon Web Services (n.d., read 22 November 2026). "Configuring budget actions". AWS Billing and Cost Management User Guide.
  10. back Google Cloud (n.d., read 22 November 2026). "Disable billing usage with notifications". Cloud Billing documentation.