You can create a Gemini API key in Google AI Studio.
Create a key in Google AI Studio
- Go to Google AI Studio.
- Sign in with your Google account.
- Accept the terms if Google asks you to.
- Open the API keys page and create a new key.
- Copy your new key.
Connect Gemini in CalorieCodex
Open Settings → AI quick log. Choose Gemini, paste the key into Gemini API Key, and save.
Keep your key private
Warning
Keep your API key out of screenshots, chats, and public repositories. If you think the key was exposed, revoke or rotate it right away.