Google Cloud budget alert didn't stop the bill? Alerts aren't caps

Ship ItChecked against the official source

The short answer

On Google Cloud, where Gemini API keys live, a budget alert is just an alert. Google's docs say an alerts-only budget doesn't automatically cap usage or spending. So if a key leaks, or a loop runs all night, the charges keep coming.

What to do

  1. Keep API keys on your server, never in your app's browser code.
  2. Limit what each key can do.
  3. Set a real spending cap where your provider offers one, and check your AI provider's billing page today.

Source

Checked on 30 Sept 2026. Prices, limits and settings change, so check the source before you rely on them.

Related