Given the recent policy change where the Gemini API stopped supporting unrestricted keys on June 19, 2026, what is the recommended process for migrating existing unrestricted keys to restricted ones to avoid any disruptions?"
Hi, To migrate an existing unrestricted API key to a restricted key, navigate to the Google Cloud Console under Credentials, select your API key, and set API restrictions (e.g. restrict to the Gemini API) alongside Application restrictions (HTTP Referrers or IP addresses). Save your changes and test your API requests to ensure no disruption to your application. For step-by-step instructions on configuring key restrictions, please visit ai.google.dev/gemini-api/docs/api-key#restricting-keys.