Getting Your Google Gemini API Key
This guide will help you obtain an API key for Google's Gemini AI models to use with EZ Testing.
Prerequisites
- Google account
- Web browser
- Access to Google AI Studio (available in supported regions)
Step-by-Step Instructions
1. Access Google AI Studio
- Navigate to Google AI Studio
- Sign in with your Google account
- Accept the terms of service if prompted
[Image placeholder: Google AI Studio landing page]
2. Create a New Project (if needed)
If you don't have an existing Google Cloud project:
- Click "Create new project" or use the project selector
- Enter a project name (e.g., "EZ Testing Integration")
- Wait for the project to be created
[Image placeholder: Google Cloud project creation]
3. Generate Your API Key
- In Google AI Studio, click "Get API key" or "Create API key"
- Choose to create an API key in your existing project or create a new one
- Click "Create API key in new project" or "Create API key in existing project"
- Your API key will be generated and displayed
[Image placeholder: Gemini API key generation page]
4. Copy and Secure Your API Key
- Click the copy button next to your API key
- Store it securely (password manager recommended)
- Important: Keep this key private and secure
Treat your API key like a password. Don't share it publicly or include it in client-side code.
5. Enable the Generative AI API (if required)
If you encounter permission issues:
- Go to the Google Cloud Console
- Select your project
- Navigate to APIs & Services > Library
- Search for "Generative Language API" or "AI Platform API"
- Click Enable
[Image placeholder: Google Cloud API enablement page]
Configuration in EZ Testing
To configure Gemini in EZ Testing:
- Open EZ Testing settings
- Go to LLM Configuration or API Settings
- Select Google Gemini as your provider
- Enter your API key
- Choose your preferred Gemini model:
gemini-pro(text-only)gemini-pro-vision(text and images)gemini-1.5-pro(latest model)
Available Models
Google Gemini offers several models:
| Model | Description | Use Case |
|---|---|---|
gemini-1.5-pro | Latest and most capable | Complex reasoning, coding |
gemini-1.5-flash | Fast and efficient | Quick responses, simple tasks |
gemini-pro | Stable production model | General-purpose applications |
Usage Limits and Pricing
Free Tier
- Limited requests per minute
- Good for testing and development
- Check current limits in Google AI Studio
Paid Tier
- Higher rate limits
- Production-ready quotas
- Pay-per-use pricing model
Visit the Google AI Pricing page for current rates.
Troubleshooting
Common Issues
"API key not valid" error
- Verify the API key was copied correctly
- Ensure the Generative Language API is enabled
- Check that your Google Cloud project is active
"Permission denied" error
- Enable the Generative Language API in Google Cloud Console
- Verify your Google account has proper permissions
- Check if your region is supported
"Quota exceeded" error
- Review your usage in Google AI Studio
- Consider upgrading to paid tier
- Wait for quota reset (if on free tier)
Regional Availability
Gemini API may not be available in all regions. If you encounter access issues:
- Check the supported regions list
- Consider using a VPN if necessary
- Contact Google Support for region-specific questions
Testing Your Integration
After configuration:
- Send a test prompt through EZ Testing
- Verify the response is generated correctly
- Check for any error messages in the logs
- Monitor your usage in Google AI Studio