Google Gemini API Key Tester
Test any AI or API key in your browser — instantly see if it's valid, and why it isn't. Nothing is stored.
Test your Google Gemini API key with the generateContent endpoint
Data verified 2026-07-13
Key format & how to get one
Prefix: AIzaSy Example: AIzaSyA1b2C3... Google API keys start with AIzaSy. 1. Visit https://ai.google.dev/ and sign in with Google 2. Click 'Get API key' in the dashboard 3. Create a new API key or use existing one 4. Copy the generated key 5. No payment required for basic usage
How to test
- Copy your key from Google AI Studio (aistudio.google.com/apikey).
- Paste it into the tester above and click Test Key.
- Green means valid; red shows the error. Brand-new keys may need a few minutes — see the note above.
Common errors
| Cause | Fix |
|---|---|
| The key is malformed or copied incorrectly. | Recreate the key in Google AI Studio (aistudio.google.com/apikey) and copy it fully. |
| The key lacks access to the Generative Language API, or the API isn't enabled on the project. | Enable the Generative Language API for the key's Google Cloud project. |
| Free-tier rate or daily quota exceeded. | Wait and retry, or enable billing for higher quota. |
Related tools
Building with AI APIs? Elegant Atomics turns AI capability into B2B SaaS growth. Work with us →