
Yes, Google AI Studio offers a free Gemini API key with no credit card required. Sign in at aistudio.google.com/apikey with a Google account to generate a key in under 2 minutes and call eligible models including Gemini 4 Hydrogen, Gemini 3.8 Flash, Gemini 3.6 Flash, Gemini 3.5 Flash-Lite, Gemini 2.5 Pro, Gemini 2.5 Flash, Gemini Embedding 2, and Gemma 4. Flagship Gemini 4 Carbon, Gemini 4 Argon, Gemini 4 Neon, Gemini 3.1 Pro Preview, and Nano Banana image models are paid-only, and free-tier prompts may be used by Google to improve its products.
| Feature | Free Tier | Paid Tier (Tier 1+) |
|---|---|---|
| Cost & Credit Card | Free, no credit card or billing account required | Prepay minimum $5 (or equivalent) to unlock Tier 1 |
| Eligible Models | Hydrogen, 3.8/3.6 Flash, Flash-Lite, 2.5 Pro/Flash, Gemma 4 | All Free models plus Gemini 4 Carbon, Argon, Neon, and image models |
| Rate Limits (RPM / TPM / RPD) | Dynamic per Google Cloud project; check AI Studio dashboard | Higher project limits plus $10/10-min spend cap at Tier 1 |
| Overage Behavior | Returns HTTP 429 RESOURCE_EXHAUSTED with zero charges | Billed pay-as-you-go up to your tier spend cap |
| Data Privacy | Inputs and outputs may be reviewed and used to improve Google products | Content is not used to improve Google products |
export GEMINI_API_KEY="YOUR_API_KEY"Google updates model eligibility regularly. According to official Gemini Developer API pricing as of November 2026, here is how current models split between Free and Paid tiers:
| Model | Free Tier Status | Best For |
|---|---|---|
| Gemini 4 Hydrogen | Free of charge | Current default fast model in official quickstart guides |
| Gemini 3.8 Flash & Gemini 3.6 Flash | Free of charge | Low-latency chat, agents, and tool calls |
| Gemini 3.5 Flash-Lite & Gemini 3.1 Flash-Lite | Free of charge | High-throughput classification and extraction |
| Gemini 2.5 Pro, 2.5 Flash, 2.5 Flash-Lite | Free of charge | Stable production fallback and coding tasks |
| Gemini 3.8 Flash TTS, 3.5 Transcribe, Embedding 2, Gemma 4 | Free of charge | Speech synthesis, audio transcription, embeddings, open weights |
| Gemini 4 Carbon, Argon, Neon | Paid-only (Not available on Free) | Frontier reasoning and complex software engineering |
| Gemini 3.1 Pro Preview & Nano Banana Image Models | Paid-only (Not available on Free) | Preview flagship reasoning and native image generation |
You can also compare available endpoints and community uptime reports on the Google AI Studio provider page.
429 RESOURCE_EXHAUSTED rather than charging you.Verify your key immediately from the terminal using the official REST endpoint:
curl "https://generativelanguage.googleapis.com/v1beta/models/gemini-4-hydrogen:generateContent" \
-H "x-goog-api-key: $GEMINI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"contents": [{
"parts": [{"text": "Explain how rate limits work in one sentence."}]
}]
}'For Python applications, install the official google-genai SDK (the legacy google-generativeai package is deprecated):
pip install -U google-genaifrom google import genai
# Reads GEMINI_API_KEY from your environment automatically
client = genai.Client()
interaction = client.interactions.create(
model="gemini-4-hydrogen",
input="List 3 best practices for keeping API keys secure.",
)
print(interaction.output_text)Want to test your key safely without writing code first? Visit our Google AI Studio endpoints directory to run requests directly from your browser using Bring-Your-Own-Key (Free AI API forwards requests without storing your key on the server).
apikeys.keys.create, iam.serviceAccounts.create, or iam.serviceAccountApiKeyBindings.create. Create a new Google Cloud project that you own or request the Project Editor role.
Community Feedback
Comments are tied to your GitHub account — sign in to join the discussion.