You can create a Gemini API key in Google AI Studio.

Create a key in Google AI Studio

  1. Go to Google AI Studio.
  2. Sign in with your Google account.
  3. Accept the terms if Google asks you to.
  4. Open the API keys page and create a new key.
  5. 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.

Official Docs