A stolen Gemini API key turned a $180 bill into $82,000 in two days

Alfonso Maruccia

Posts: 2,515   +935
Staff
AI Economy: A team of three developers in Mexico is facing a roughly 455× increase in monthly AI service expenses after an API key associated with their project was allegedly compromised. The key was later used to access Google Gemini services at scale. The small company has reportedly attempted to negotiate relief with Google, but says the company has not offered a payment adjustment.

One of the affected developers shared the incident on Reddit. According to the post, the Google Cloud API key was compromised between February 11 and February 12 and was primarily used to access Gemini 3 Pro Image and Gemini 3 Pro Text services.

The company's typical monthly AI service expense was approximately $180, but the unauthorized usage generated a bill of about $82,314.44. The developers say they were operating under tight financial conditions and were hoping their product would eventually become profitable. Even if only one-third of the billed amount is enforced, they fear the cost could still drive the business toward insolvency.

A Mountain View representative said customers using generative AI services are responsible for securing their own credentials under the platform's Shared Responsibility Model. Under this framework, users are expected to implement appropriate security safeguards, as service providers may not assume liability for misuse resulting from compromised authentication keys.

The developers said they did not believe they made any "obvious" operational mistake. After discovering the compromised key, they attempted to secure their system by deleting exposed keys, disabling Google Gemini API access, and enabling two-factor authentication across their accounts. They also opened a support request with Google, though they report receiving no meaningful resolution so far.

One of the developers argued on Reddit that cloud providers should implement stronger safeguards against extreme billing anomalies. The developer suggested that platforms should automatically halt or verify charges once usage reaches abnormal thresholds, noting the lack of mandatory confirmation mechanisms during sudden usage spikes.

"A jump from $180/month to $82k in 48 hours is not 'normal variability.' It is obvious abuse," the dev said.

The Mexican team has been seeking advice from the developer community online. Some contributors have warned against relying heavily on computation-intensive services such as Gemini-style generative AI APIs. There have also been conflicting claims regarding whether the developers uploaded the compromised key to public repositories such as GitHub, a point that relates to the Shared Responsibility Model emphasized by Google. The developers later disputed assertions that the key was knowingly exposed.

Before the introduction of modern authentication practices for generative AI services, some older API systems were considered easier to compromise. The developers believe this case may help highlight broader security and billing protection concerns in cloud computing environments. They have reportedly also filed a complaint with the Federal Bureau of Investigation.

Permalink to story:

 
They aren't going to see any relief from this. AI is already extremely unprofitable, the cost to Google is probably double what the bill they racked up.
 
The developers said they did not believe they made any "obvious" operational mistake...
Other than exposing their secret credentials, they mean?

"A jump from $180/month to $82k in 48 hours is not 'normal variability.' It is obvious abuse," the dev said.
Or a prototype system going live ... I imagine GCP and other cloud providers see similar usage jumps on a daily basis.
 
Interestingly I had a much better response from Google. I accidentally left something running that consumed Gemini credits up to about $1k and they did an adjustment and gave it back without question. Customer sewrvice was great, helping me stop services etc. Investigation tool about 24 hours.
 
Surely a 400x increase in usage should result in account restriction until the account team verify usage?
 
Or a prototype system going live ... I imagine GCP and other cloud providers see similar usage jumps on a daily basis.

I think their point is when these spikes occur, the service provider should halt services until the customer confirms the spike is legitimate, or notify the service provider in advance of a usage spike if it can be anticipated and delays would be undesirable.

I.e. an email from Google say "this you spending all this money?", just like your credit card provider, would be nice.
 
Welcome to the future. Once AI has been locked in by companies and the workforce let go, the big tech companies will start turning the screws to pay the astronomical bills to set up the data centres and the energy being consumed by all the mindless queries being made of AI.
 
I think their point is when these spikes occur, the service provider should halt services until the customer confirms the spike is legitimate, or notify the service provider in advance of a usage spike if it can be anticipated and delays would be undesirable.

I.e. an email from Google say "this you spending all this money?", just like your credit card provider, would be nice.
At least you can set a monthly budget with GCP, not something you can do with AWS
 
Great, another avenue for thieves, stealing others AI time. Until the penalties are so severe for cyber crimes it's not worth it, we'll keep seeing this. START NAILING CYBER CRIMINALS TO THE WALL!
 
Welcome to the future. Once AI has been locked in by companies and the workforce let go, the big tech companies will start turning the screws to pay the astronomical bills to set up the data centres and the energy being consumed by all the mindless queries being made of AI.
Yep, people will see soon enough what a bad Idea AI is. They want to *automate crap* screw people and their families. Now Jenson says the negativity about AI is hurting their industry. Good as people studied for their dream job just to be replace by a computer that did not spend thousands to know what a human knows
 
Back