Gemini API Update

Hi Everyone - we’re reposting this announcement from the Gemini product team:

Starting June 19, 2026, the Gemini API stopped accepting requests from unrestricted API keys to prevent unauthorized usage and billing risks.

If your Google Cloud project has the Gemini API enabled and contains unrestricted keys, please restrict them immediately.

What to do:

Note: Keys generated directly in AI Studio are restricted to the Gemini API by default.

Please see this documentation page for more information.

3 Likes