Gemini API
Gemini API gives free tokens on selected models with no card and will not bill you, but Google may use that content to improve its products.
The Gemini API gives developers access to Google's Gemini models for text, code, images, and other inputs, with a free tier and AI Studio to try it.
By Google CloudAIChecked ✓ 23 Nov 2026
Changed in Oct 2026: Qualified the paid billing setup to distinguish Prepay's minimum credit purchase from eligible Postpay accounts.
Is it a fit?
Good fit
Use the Gemini API when you want to prototype with Google's models for free, or add text and multimodal features to an app through an SDK or REST.
- prototyping
- AI-powered apps
- multimodal projects
Not a fit
Avoid the free tier for private or sensitive data, since Google's standard Free Tier terms permit it to use your content to improve its products. Higher-volume workloads may need the Paid Tier.
- you send private or customer data on the free tier
- you need high rate limits for production
- you need on-premises hosting
You use the Gemini API through an API key from Google AI Studio, with the Python or JavaScript SDK or plain REST. It suits developers who prototype AI features and do not want to run models themselves.
What the free plan gives you
New accounts start on the Free Tier, with free input and output tokens on certain models up to each model's rate limits. The pricing page lists "Free of charge" prices for those models. Others, such as Gemini 4 Argon and Gemini 3.1 Pro Preview, show as not available. Batch and Flex vary by model: Gemini 3.1 Flash-Lite lists both as free, while Gemini 3.8 Flash does not.
Rate limits are measured in requests per minute, tokens per minute, and requests per day. They apply per project, not per API key, and are stricter for experimental and preview models. The pricing page lists no exact numbers; you read your active limits in Google AI Studio. Additional projects and projects created outside AI Studio need a QR device check first.
When you hit a limit
If you go over any single limit, the API returns a rate limit error. Daily request quotas reset at midnight Pacific time. Billing starts only after you link a billing account. To get higher limits and paid-tier data handling, link a billing account. Prepay setup requires at least $5 in credits; the billing guide also describes eligible Postpay accounts. For supported Gemini 3 and newer models, Paid Tier Search grounding allows 5,000 free searches per month across those models, subject to a 1,500-request daily cap. After the free allowance, Google bills $14 per 1,000 search queries. One API call can perform multiple queries.
Gotchas
- Google's standard Free Tier terms allow it to use your prompts and responses to improve products. Paid-tier data handling also applies to people using the Free Tier from the EEA, Switzerland, and the United Kingdom. Grounding with Google Search and Maps shows as not available on the API Free Tier for Gemini 3.x models, although some pricing footnotes allow testing in AI Studio.
- Rate limits are stricter for experimental and preview models.
- If you upgrade to Paid Prepay, purchased credits expire after 12 months. Billing can lag by about 10 minutes, so long-running work may exceed the prepaid balance before requests stop; this does not apply to Free Tier usage.
Alternatives in this atlas
- Groq: when you want a free plan with daily request limits and hosted open models.
- Mistral API: when you want a free plan with monthly API credits.
- OpenRouter: when you want to try many models from different providers through one API.
Questions people ask
Is the Gemini API free?
Yes, on the Free Tier. You get free input and output tokens on supported models, with rate limits. The pricing page also lists free access to Google AI Studio.
Does the Gemini API need a credit card?
No. New accounts start on the Free Tier. You link a billing account only to move to the Paid Tier.
Is my data used to train Google models on the Gemini API free tier?
Generally, Google may use Free Tier prompts and responses to improve its products. The terms apply Paid Services data handling to Free Tier users in the EEA, Switzerland, and the United Kingdom. Paid Services terms exclude product improvement use of prompts and responses.
How to get started
- Open Google AI Studio and sign in with a Google account. It creates a project and an API key for new users.
- Copy the key from the API keys page and set it as the `GEMINI_API_KEY` environment variable.
- Install an SDK with `pip install -U google-genai` or `npm install @google/genai`.
- Make a request with the SDK client, or send a POST with the `x-goog-api-key` header to `generativelanguage.googleapis.com`.
- Check your rate limits and usage in AI Studio. Link billing only if you want the Paid Tier.
Other free ai options
Same category, safest first.