Securing Your Gemini and Google API Keys
Google warns that API keys for Gemini and other services are frequently exposed in code, client-side apps, and logs. Best practices include using secret management, restricting key scopes, and never embedding keys in client-side code.