Google GenAI Provider
Google's Gemini models offer excellent performance at competitive prices with strong multilingual support.
Setup
-
Get API Key:
- Go to Google AI Studio
- Create a new API key
-
Set Environment Variable:
bash export GOOGLE_API_KEY=AIza-your-api-key
-
Configure MegaLinter:
yaml LLM_ADVISOR_ENABLED: true LLM_PROVIDER: google LLM_MODEL_NAME: gemini-2.5-flash LLM_MAX_TOKENS: 1000 LLM_TEMPERATURE: 0.1
Official Model List
For the most up-to-date list of Gemini models and their capabilities, see the official Google documentation:
Configuration Options
Basic Configuration
LLM_PROVIDER: google
LLM_MODEL_NAME: gemini-pro # or gemini-pro-vision
Advanced Configuration
# Custom settings (rarely needed)
GOOGLE_APPLICATION_CREDENTIALS: /path/to/service-account.json
Troubleshooting
Common Issues
-
"API key not valid"
- Verify API key format:
AIza...
- Check that Generative AI API is enabled
- Ensure you're in a supported region
- Verify API key format:
-
"Quota exceeded"
- Check your quota limits in Google Cloud Console
- Request quota increases if needed
- Implement rate limiting
-
"Model not found"
- Verify model name is correct
- Check regional availability
- Some models may require special access
Debug Mode
LOG_LEVEL: DEBUG