Get your Google API Key
Access Gemini 2.0 Flash, Gemini 2.5 Pro, and other Google AI models.
Step-by-step
1
Go to Google AI Studio
Visit aistudio.google.com/apikey and sign in with your Google account.
2
Create an API key
Click Create API Key. Select a Google Cloud project (or create a new one). Copy the key.
3
Add to your .env
GOOGLE_API_KEY=AIza...
Your key starts with AIza.
Free tier: Gemini API has a generous free tier. Gemini 2.0 Flash is free for up to 15 requests per minute and 1M tokens per day.
Compatible frameworks
Google ADKCrewAILangGraphLlamaIndex
Available models
| Model | Best for |
|---|---|
| gemini-2.0-flash | Fast, great for most tasks (free tier) |
| gemini-2.5-pro | Most capable Gemini model |