DEV Community

Cover image for Vertex AI billing alerts and spend caps: what Google's docs say
Nikoloz Turazashvili (@axrisi)

Vertex AI billing alerts and spend caps: what Google's docs say

A developer on Reddit says Google's early cost alert for an overnight Gemini job on Vertex AI arrived almost ten hours after the spending began, and that the bill then went to collections. That is one user's account, I could not confirm any figure, and I found no public statement from Google. The part that can be checked is what Google's own documentation says about Vertex AI billing: what its alerts promise, why credits can hide spend, what a spend cap stops and when those caps shipped. This article goes through those pages and ends with a Monday checklist.

TL;DR

  • The "20 to 40 minutes" in the story belongs to early anomaly alerts, a Preview feature, and Google's page calls it an "expected latency". Budget alerts promise no time at all.
  • An alerts-only budget "doesn't automatically cap" usage or spending, runs on billing data with a documented delay, and by default subtracts credits from the spend it watches.
  • A spend cap pauses new requests to one service in one project. It covers the Gemini API, Vertex AI, Cloud Run and Cloud Run functions, and Google's docs say its enforcement "isn't instant and any cost overages are billed as normal".
  • Google's release notes list spend caps in Preview from July 27 and generally available on October 13; the blog announced general availability on October 31. The brake existed, in preview, before the job in the post ran.
  • My verdict is REVERT on alert-only protection for AI spend. Set a cap, keep your own counter in the job, and treat the alert as a receipt.

What does the developer say happened?

The post on r/googlecloud, which reached Hacker News on December 4, is written in the first person and every number in it is that user's own. It says an overnight Gemini 2.5 Flash job on Vertex AI started around 10 pm Eastern on September 28. It says about C$36,302 of startup credits ran out around 5 am, that the first anomaly email arrived at 7:42 am, 9 hours and 42 minutes after the spending began, and that the poster found out when their card declined an automatic C$8,600 charge at 11:34 am and shut everything off. It lists four more charges after that, the last for C$47,000, puts the total at C$75,951, and says two Billing cases were closed as final, the account was shut down in November and Collections now asks for C$63,896.

All amounts are Canadian dollars and the poster's figures. Some Hacker News commenters doubted the writing, and nobody verified or refuted it. Hacker News also split on the question of responsibility: one commenter wrote that you are responsible for your own spend, others argued the alert should have worked. I am not judging that. The useful question is narrower: what does Google's documentation say these controls do?

What does Google promise about Vertex AI billing alerts?

There are two different alerts, and the story blends them.

Early anomaly alerts are the "20 to 40 minutes" feature. Google's cost anomalies page has a section titled "View early anomalies for AI workloads (preview)". It says early anomalies "use near real-time cost estimates" that "are not finalized and don't appear on cost reports", and that "the system delivers alerts with an expected latency of 20 to 40 minutes from the time of usage." That is an expected latency for a Preview feature. The poster says Google's account team later told them those windows are "not hard limits".

Budget alerts promise less. The budgets page carries a caution: setting an alerts-only budget "doesn't automatically cap Google Cloud or Google Maps Platform usage or spending", and the alert emails "don't automatically prevent the use or billing of your services". It also says "there is a delay between your use of Google Cloud resources, and the usage costs reporting to Cloud Billing" and recommends setting the budget below your available funds to account for it. Google's spend-caps page adds that actual cost details are "typically available within a day, but can sometimes take more than 24 hours to process and appear on billing reports."

Google Cloud billing docs: Savings, including credits, are selected by default

Why can credits hide spend from a budget?

The same budgets page says that when you create a budget, "by default ALL of the Savings types are selected", and that with those included "your actual spend is calculated as the total cost minus any applicable discounts and credits". Promotional credits count as savings. In practice a budget on the default settings watches net spend, so while credits last it can read zero. The poster's own timeline fits that pattern: they say the budget was crossed at the moment the credits ran out. I cannot see their settings, so this describes what the default allows and says nothing about their account.

Google also states the fix: "if you want to calculate and monitor your actual spend before any discounts and credits are applied, don't select any Savings options." Spend caps work on gross, estimated cost at list price and "don't include savings and credits", so credits cannot hide spend from a cap.

What does a spend cap stop on Vertex AI?

Google's spend-cap documentation lists four eligible services: the Gemini API, "Gemini Enterprise Agent Platform (formerly Vertex AI)", Cloud Run and Cloud Run functions.

Google Cloud docs: the four services eligible for spend caps

A cap is scoped to a single project and a single service, on a monthly period. When it triggers, all new usage of that service in that project is paused, including on-demand usage and usage covered by commitments. In-flight requests "are processed to completion, accruing charges as applicable". Resources and data are not deleted. Provisioned Throughput is never halted, according to the October blog.

Two limits matter. First, folders, organizations, labels and multi-project budgets are out of scope. Second, speed: the July 29 blog says AI caps "trigger within minutes", and the documentation adds the footnote that matters for money: "Even though faster than reports, the enforcement of spend caps isn't instant and any cost overages are billed as normal." A cap shortens the overshoot. It does not promise zero.

Does a per-minute quota stop Gemini spend?

One Hacker News commenter advised lowering the per-minute request and token quotas on the models. For Gemini on Standard PayGo, Google's page describes tokens-per-minute as a prioritized throughput threshold by usage tier, and says "your traffic isn't strictly capped at your tier's TPM threshold". A 429 error, it says, "doesn't indicate that you've hit a fixed quota" but temporary contention for shared capacity. For batch inference, the quotas page says "there are no predefined quota limits on batch inference for Gemini models." I could not find a per-minute ceiling you can set for Gemini spend. That is a statement about what I found in the documentation, not proof that none exists, and I do not know which Gemini tier the poster's job used.

When did Google's spend caps actually ship?

The post says Google shipped spend caps "weeks later". The release notes give three dates worth keeping apart:

Date What it is Source
July 27, 2026 Spend cap budgets available for a limited set of services (Preview) Cloud Billing release notes
July 29, 2026 Blog: early anomalies on AI services and spend caps, "During this Public Preview" Google Cloud blog
October 13, 2026 Spend cap budgets generally available for a limited set of services Cloud Billing release notes
October 31, 2026 Blog announcing general availability, with a spend caps API and automatic monthly resets Google Cloud blog

Cloud Billing release notes, July 27 2026: spend cap budgets in Preview

Hacker News commenters said general availability was October 30; neither Google page says that. The point is the Preview. The Preview table listed the Gemini API, Agent Platform (the new name for Vertex AI), Cloud Run and Cloud Run functions, about two months before September 28. I covered Google's spend caps in preview on October 4 in the AWS budget pause episode. Whether this developer's console offered a cap that night, I cannot tell.

What should you set on Monday?

This is my pick, built only from the pages above:

  1. One project per job. Caps are per project and per service, so a runaway job should live in a project you can cap on its own.
  2. A spend cap on Vertex AI in that project, set to a number you could survive overshooting, because overages are billed as normal.
  3. A budget with the Savings options unticked, so credits cannot hide spend from its alerts. Keep the alerts as a second signal.
  4. A counter inside your own job that stops at a token limit you chose. Provider data lags; your own loop knows what it just sent.
  5. No billing shutdown as the brake. Google's own recipe warns that it "removes Cloud Billing from your project, shutting down all resources", that resources "might be irretrievably deleted", and that "following the steps in this example doesn't guarantee that you won't spend more than your budget" because of the delay in budget notifications.

Verdict: REVERT

I stamped it REVERT on alert-only protection for AI spend. The invoice in the post is one person's account. Google's own pages, though, already say that alerts lag, that a cap is not instant and that credits can hide spend. Treat the alert as a receipt, and set the brake.

FAQ

Do Google Cloud budget alerts stop spending?

No. Google's budgets page says an alerts-only budget "doesn't automatically cap Google Cloud or Google Maps Platform usage or spending". A spend cap is the budget type that pauses usage, for eligible services.

How fast is the Vertex AI early anomaly alert supposed to be?

Google's page for the Preview feature says alerts arrive with "an expected latency of 20 to 40 minutes from the time of usage". It is an expected latency for a Preview feature.

Which services can a Google Cloud spend cap cover?

The Gemini API, Gemini Enterprise Agent Platform (formerly Vertex AI), Cloud Run and Cloud Run functions, each cap on one service in one project, on a monthly period.

Do credits count toward a Google Cloud budget?

By default a new budget subtracts discounts and credits, so credits can keep a budget at zero. Unticking the Savings options makes it watch spend before credits. Spend caps use gross estimated cost and ignore credits.

Sources

Credits: portrait of Thomas Kurian, CEO of Google Cloud, cropped and background removed, identification only (he did not author or appear in this article): U.S. Air Force photo by Eric Dietrich (DVIDS), public domain, via Wikimedia Commons. The cover uses it. The "Waiting Skeleton" meme template (imgflip) appears only in thumbnail C of the video, with our own words.


This article expands on an episode of **The Daily Diff, a five-minute daily video on what shipped and what broke in tech.
Watch the episode ยท Subscribe on YouTube ยท the written diff lands in your inbox every morning at thedailydiff.dev.

Video transcript and primary sources

Top comments (1)

Collapse
 
userxnom profile image
Abdullah Naseer •

Nikoloz, the distinction that does the most work here is the one between the two alerts โ€” the early anomaly alert and the budget alert that only watches. Most write-ups would sell the alert as the protection; you show it is a notification, and the story underneath proves the point twice over: Google's own page promises 20 to 40 minutes, but the alert in this story arrived 9 hours and 42 minutes after the spending began, after C$36,302 of credits had already run out.

The part I would push one step further is step 4, the counter inside your own job. If the cap pauses new requests to one service in one project, and enforcement "isn't instant and any cost overages are billed as normal," what happens to the requests already in flight and the retries queued behind them when the cap trips mid-run โ€” are they dropped, or do they land and become the overshoot? That is the number I would want before trusting a cap: run a capped test job, let it trip, and publish how far past the cap the invoice actually goes. The gap between the cap and the invoice is the real protection, not the cap itself.

One question on the per-minute quota point: if someone lowers the per-minute request and token quotas the way the Hacker News commenter suggested, does that actually bound spend, or does it just stretch the same burn over more minutes?