Bill horror story
$82,314 in 48 hours: a public Maps key that could call Gemini
October 21, 2026 · 3 min read
A startup spending $180 a month enabled Gemini on a project whose browser key was public. Two days later the bill was over $82,000.
Retold from The Register, by Jessica Lyons, March 3, 2026. Summary in our own words; every figure is the source's.
What happened
A three-person startup in Mexico usually spent about $180 a month on Google Cloud. Its API key had been embedded in website code to use a Maps service, which is normal for browser keys. Then a teammate enabled the Gemini API on the same project, and that public key could suddenly call Gemini as well.
The key was abused on February 11 and 12, 2026, and about $82,314.44 in Gemini charges built up in roughly 48 hours. The developer, as quoted by The Register from their Reddit post: "I am in a state of shock and panic right now". Security firm Truffle Security found 2,863 live keys exposed in the same way.
How it ended
The developer deleted the key, disabled Gemini and rotated credentials. Google support pointed to the shared responsibility model and said the charges stood. No refund was reported.
What would have stopped it
- Restricting the key. A browser key restricted to the Maps APIs it needs can't call Gemini, whatever else is enabled on the project.
- A quota on the expensive API. A per-day request quota on the Gemini API bounds what a stolen key can spend (how to set limits).
- Spike detection from zero. A service that had no usage at all and suddenly has thousands of requests is the clearest possible anomaly. Watching Gemini usage would have flagged it within minutes, and an automatic action could have stopped it on the first day instead of the third.
