โ† Back to Blog

March 01, 2026 ยท 73 views

Is google exposing AI API keys on purpose?

Gemini AI Security
Is google exposing AI API keys on purpose?

Recently, I've integrated the Gemini AI API into the workflow of a project of mine.

I want to share my experience!


Here are my two cents:

Gemini AI is slow, and the error rate is quite high. I would say, on average, the success API response rate in my case was 94%, so I had to implement a retry mechanism


Is Google exposing AI API keys on purpose?


Somehow, my API Key was exposed and misused by someone else, and I had to pay an extra $12 on top. For me, this is not a huge deal, but the other cases are more terrifying.

The API key was generated and saved to the env file on the server via ssh, so I don't think I made a mistake of sending it somewhere else or exposing it in any way.


And I've found some evidence that this has happened with other users also:


https://www.malwarebytes.com/blog/news/2026/02/public-google-api-keys-can-be-used-to-expose-gemini-ai-data

๐Ÿ“š How to Cite This Article

APA Format:

I enjoy building things that live on the internet. (2026). Is google exposing AI API keys on purpose?. Steti.info. https://steti.info/blog/is-google-exposing-ai-api-keys-on-purpose

MLA Format:

I enjoy building things that live on the internet. "Is google exposing AI API keys on purpose?." Steti.info, 01 Mar. 2026. https://steti.info/blog/is-google-exposing-ai-api-keys-on-purpose.

Chicago Style:

I enjoy building things that live on the internet. "Is google exposing AI API keys on purpose?." Steti.info. March 01, 2026. https://steti.info/blog/is-google-exposing-ai-api-keys-on-purpose.

Published: March 01, 2026
Last Updated: March 18, 2026

About the Author

Author
I like to build from websites to web apps, I create digital experiences that solve real problems and delight users and the most important is that all that I build, I build with PEOPLE!
Learn more about the author โ†’

Related Posts