Google Gemini API free tier: models, key setup and quotas
Selected models with free standard API input/output; project quotas apply
API setup and how to claim
- Sign in to Google AI Studio and create an API key in a project eligible for the free tier without billing.
- Check the exact model's standard API input and output pricing. Only models and features explicitly marked free qualify; an app's model access does not establish API eligibility.
- Use the documented native Gemini endpoint or https://generativelanguage.googleapis.com/v1beta/openai/ with a supported model.
- Read the project's current per-model request and token quotas before making a small request. Do not enable paid billing merely to test a free offer.
Listed model IDs
gemini-4-hydrogen, gemini-3.8-flash, gemini-3.6-flash, gemini-3.5-flash-lite, gemini-3-flash-preview, gemini-2.5-pro, gemini-2.5-flash, gemini-2.5-flash-lite, gemini-3.1-flash-lite, gemini-3.5-transcribe, gemini-3.8-live, gemini-3.8-flash-tts, gemini-decision-1
Free-tier models confirmed on the pricing page include Gemini 4 Hydrogen, 3.8 Flash, 3.6 Flash, 3.5 Flash-Lite, 3 Flash Preview, the 2.5 Pro/Flash/Flash-Lite line, 3.1 Flash-Lite, 3.5 Transcribe, 3.8 Live and the Flash TTS models, plus Gemma via API. Google no longer publishes the per-model free quotas on that page: they appear in the AI Studio dashboard.
Details
- Offer
- Selected models with free standard API input/output; project quotas apply
- Type
- Free tier
- Product
- API, Official
- Signup requirements
- Sign in to Google AI Studio and use a project eligible for the free tier without billing. Check current regional and account eligibility; API access is not account-tested here.
- Card required
- No
- Expires
- Model eligibility and quotas can change; the free tier has no end date
- Verification
- Owner confirmed working access on Nov 26, 2026. This records the confirmation, not a new dated test of every model or offer term.
- Historical last tested
- Nov 21, 2026
Verification and test history
Owner tested on 2026-11-21: working access confirmed.
Limits, eligibility and billing
Free-tier content may be used to improve Google products. Paid-only options such as gemini-3.1-pro-preview, gemini-4-carbon, gemini-4-argon and certain Omni/image models are excluded from this free list. Neither Pro nor Flash is a blanket pricing rule: the checked pricing table also lists free standard input/output for gemini-2.5-pro. Batch, grounding and other features have separate pricing. No fresh account/API test is recorded.
Sources
- Gemini API pricing - checked Nov 26, 2026
- Gemini model catalog - checked Nov 11, 2026
Quickstart
Google Gemini API is OpenAI-compatible. Set your key as GEMINI_API_KEY, then run one of these. Base URL: https://generativelanguage.googleapis.com/v1beta/openai
curl https://generativelanguage.googleapis.com/v1beta/openai/chat/completions \
-H "Authorization: Bearer $GEMINI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-4-hydrogen",
"messages": [{"role": "user", "content": "Say hello"}]
}'
# pip install openai
import os
from openai import OpenAI
client = OpenAI(
base_url="https://generativelanguage.googleapis.com/v1beta/openai",
api_key=os.environ["GEMINI_API_KEY"],
)
reply = client.chat.completions.create(
model="gemini-4-hydrogen",
messages=[{"role": "user", "content": "Say hello"}],
)
print(reply.choices[0].message.content)
// npm install openai
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://generativelanguage.googleapis.com/v1beta/openai",
apiKey: process.env.GEMINI_API_KEY,
});
const reply = await client.chat.completions.create({
model: "gemini-4-hydrogen",
messages: [{ role: "user", content: "Say hello" }],
});
console.log(reply.choices[0].message.content);
Example model: gemini-4-hydrogen. Use any free model ID from the provider’s catalog. Keep your key in an environment variable, never in code you share. Google Gemini API API docs