How to Set Up Your Google Gemini API Key
EvalFrame Local Edition runs 100% locally on your machine using your own Gemini API key. Follow this guide to generate a key with the required Generative Language API permissions, verify connectivity, and resolve common status codes.
Option A: Google AI Studio (Fastest, 2 Minutes)
Google AI Studio is the easiest and recommended route. Keys created here have the Generative Language API pre-enabled, grant immediate access to the latest Gemini models, and include a free usage tier.
- Navigate to aistudio.google.com/apikey and sign in with any Google account.
- Click Create API key and choose or create a Google Cloud project.
- Copy the generated key (starts with
AIzaSy...). - In EvalFrame: open Settings → Advanced → API key, paste, click Save, then click Test.
Option B: Google Cloud Console & Permissions Setup
If you generate keys within an existing Google Cloud Platform (GCP) project, ensure the correct API service is enabled and key restrictions are properly configured:
- Enable the Generative Language API: In Google Cloud Console → APIs & Services → Library, search for Generative Language API and click Enable. Without this, requests fail with 403 Forbidden.
- API Key Restrictions: If restrictions are enabled, ensure Generative Language API is selected (do not restrict to Vertex AI only).
- Application Restrictions: Set to None (or IP address). Do not select "Websites (HTTP referrers)" because desktop apps do not send HTTP website referrers.
In-App Test Status & Error Decoder
- Key works: Both live transcription (gemini-3.5-transcribe-live) and structured cards (gemini-3.5-flash-lite) are active.
- 403 Forbidden: The Generative Language API is not enabled for the project, or key restrictions block it.
- 400 / 401 Invalid: The key was rejected, malformed, or deleted. Verify the full string starting with AIzaSy...
- Missing models: The key works but the project cannot access required models. Enable billing in AI Studio or switch to Custom models in Settings.
- 429 Rate limited: Free tier quota exceeded. Wait 60 seconds or enable pay-as-you-go billing in AI Studio.
- Network error: Could not connect to generativelanguage.googleapis.com. Check VPN, proxy, or corporate firewall.
Security & Storage
Your API key is encrypted using Windows DPAPI in Windows Credential Manager. It is never sent to EvalFrame servers and communicates directly with Google over TLS.