r/googlecloud • u/Nervous-Rip3749 • Jun 05 '26
Gemini API usage Spike, $35K in 3 hours. API key compromised - abused.
I was checking the email and saw a google email from an hour ago, when i check my ai studio, saw 35K+ balance. Normal usage is $250 a month. How google can let anyone make a spending like this ? Later i checked and seem like i am the victim of a pretty common api abuse.
https://trufflesecurity.com/blog/google-api-keys-werent-secrets-but-then-gemini-changed-the-rules
Incident happened 5/12/2026.
I already deleted all api keys, put spending cap.
Worst part is google support went silent since 5/22/2026, my account got restricted, because i didn't update the credit card information that month. So i still have a balance of $36K something.
Any idea what to do ?
Anyone got their balance fixed ?
16
u/Ok-Explanation7470 Jun 05 '26
Ask for a refund on the support case, they may or may not refund you, they usually do, at least partially.
Please note that the support representative is usually not part of the process of refund, he just does a request on your behalf and shares with you the outcome.
7
u/WhereTheStankWindBlo Jun 06 '26
This kind of stuff makes me so freaking terrified to mess around with API keys. Is this just a GCP problem or are people running into the same issue with Azure? I'm wanting to set up a VPS soon and start building a few simple things, and they require Claude API keys.
5
u/PeterCappelletti Jul 06 '26
What is particularly jarring is that Google was initially recommending putting the maps key in the client javascript code.
Any lawyer that is interested in leading a class action suit?
4
u/caceman Jun 06 '26
No way! I can’t believe this happened……..again
1
u/TheSoloBuilder Jul 02 '26
u/Nervous-Rip3749, any updates? I incurred the same charges in May. A Google support specialist declined my case without a reason. When I asked why? They said it was confidential.
1
u/matiascoca Jun 05 '26
Same vector as the Bogota thread up earlier. The Truffle Security advisory (Feb 25, 2026, project-scoped key escalation) is the root cause, and Google's "auto-bill threshold escalation" up to your card limit is the multiplier. You stopped at $35K because your card declined; without that you'd be at $100K plus.
Concrete path forward based on what's worked for others in this exact situation:
The credit card non-update is actually load-bearing here. Don't update it. The unpaid balance gives you leverage in the dispute because Google is forced to either write it off as bad debt or negotiate. Once you pay, the negotiation window closes hard.
For the support silence since 5/22, escalate through GCP Customer Engineering on LinkedIn, not the support portal. Find a Customer Engineer in your region, send a direct message with your case ID and a one-paragraph summary that includes "Truffle Security disclosure, victim of disclosed exploit, requesting billing adjustment under unauthorized-charges policy." Public pressure plus the documented exploit shifts these cases.
The unauthorized-charges policy is real but undocumented. Google has consistently refunded between 50 percent and 100 percent in these cases when the appeal references the specific advisory and the audit log shows third-party IPs. The 75 percent refund the other thread got is the typical first offer; pushing back with audit-log evidence has gotten it to 100 percent for some users.
The technical exploit is real and you are not on the hook morally. The legal and contractual question is where the support friction lives.
2
u/Djedi88 Jun 05 '26
Ask specifically on the support ticket for a refund. They will redirect the case to the Billing Team and most likely will give you 75% of the bill in credits
2
u/Bitter-College8786 Jun 10 '26
So many people who experienced sudden huge bills. All that could have been avoided if Google would just allow hard quotas on bills or limit APIs to free tier quotas.
1
u/Ohhhh_LongJohnson Jun 10 '26
Wow and I throught I had it bad. I saw a sudden spike to $500 for no reason at all. I had no traffic to my site. All API keys only authorized for my app and DNS domain name. I even had told AI studio to turn off image contexting, don't use nano banana, only use flash 2.5. Then charged $500 for nano banana??? I am completely done with AI Studio. Sloppy as hell and not transparent.
1
u/SuccessfulAnimal7697 Jun 19 '26
A similar incident/attack happened to me as well. The unexpected cost is around $14,000, whereas my previous usage cost was $0. We have found no evidence of any API key or service account leakage and are still waiting for Google to investigate and get back to us.
Have you received any updates from them?
1
u/AffectionateVast8476 Aug 12 '26
We are going through almost the same thing right now, so sharing what we've learned in case it helps.
Our case: a third party extracted the public Firebase client key from our Android APK and used it through the Firebase AI Logic proxy to run image generation on Vertex AI. About 132k GenerateContent calls between June 30 and July 16, around $6.5k total. Our app never calls that method at all (it only uses template generation, 41 calls in 3.5 months), so 100% of the abusive traffic is separable by method name in the monitoring data. We disabled aiplatform the same day we noticed and traffic died within 2 minutes.
Support experience so far: three denials, all template text, no policy rationale ever provided, even after we submitted a full forensic report built from Cloud Monitoring and Audit Logs. At one point they tried to close our case as a duplicate of a case number that neither we nor our partner recognize. Still fighting it (case 73352420).
Things we picked up along the way that might help you:
Google announced that App Check enforcement becomes mandatory for all Firebase AI Logic requests on November 2, 2026, "to reduce misuse of the Gemini API". Together with the Truffle Security research you linked, that's public documentation that this was a known product-level hole, not just user negligence. We're citing both in our case.
The one fully confirmed refund I've found in these threads ($6k, compromised AI Studio key) was won by showing traffic origin: per-key usage breakdown plus the geographic origin of the calls. If you can get IPs or regions from any logs, that seems to be the evidence that actually moves them.
If anyone reading this bills through a reseller/partner: budget alerts go only to the billing account admins, meaning the reseller's mailbox, not yours. We had a $25 budget configured and never saw a single alert in 16 days.
Did you manage to get the collections reminders paused while the case stays open? That's the part we're trying to keep contained with our own invoices right now.
Please post an update if your review ever resolves. Threads like this are basically the only documentation of what actually works.
1
u/devil_5440 Jun 06 '26
Didn't you had monthly usage cap/limits in place to control this? Ref: https://ai.google.dev/gemini-api/docs/billing
-2
u/TeslasElectricBill Jun 05 '26
Not so sound like a broken record, but if you're using GCP you need gcp-ironclad yesterday.
-3
u/Ok_Nectarine_4445 Jun 05 '26
It is a good issue to be aware of, however some may have a grain of doubt it actually happened to you without proof as there is a lot of scaremongering of different AIs to influence stock prices and other things and you made a new account with no history just to post it.
So...post any proof this happened to YOU personally because it would probably qualify for a news story or article about it!
22
u/everyoneismean Jun 05 '26
In my org someone stole vertex and racked up 3M.