Overview
Gemini is the recommended AI provider for VibeLearn. The free tier provides 1500 requests/day — sufficient for daily coding sessions. VibeLearn uses Gemini for two LLM calls per session:- Concept extraction — identifies what you learned (
ConceptExtractor) - Quiz generation — creates questions per concept (
QuizGenerator)
Setup
1. Get an API Key
Go to aistudio.google.com/apikey and create a free API key.2. Add to Settings
~/.vibelearn/settings.json
Available Models
| Model | Speed | Quality | Notes |
|---|---|---|---|
gemini-2.5-flash-lite | Fast | Good | Default — best for daily use |
gemini-2.5-flash | Medium | Better | More thorough concept extraction |
gemini-2.0-flash-exp | Fast | Good | Experimental, may change |
Rate Limiting
The free tier limit is 1500 requests/day. VibeLearn uses 2 requests per session (concept extraction + quiz generation), giving you up to 750 sessions/day on the free tier. Rate limiting is enabled by default:Troubleshooting
API key not valid — Check the key is correctly copied from AI Studio. Keys start with AIza.
RESOURCE_EXHAUSTED — Hit the daily quota. Resets at midnight Pacific time. Switch to OpenRouter as a fallback:

