How to Get a Gemini API Key (and What Google's Free Tier Includes)
- Gemini API keys are created in Google AI Studio at aistudio.google.com -- sign in with a Google account, click Get API key, and the key is issued in under a minute.
- Google offers a free tier on many Gemini models with rate limits, which makes Gemini one of the cheapest ways to start using a frontier-family model by API.
- The free tier and paid billing are separate: paid use runs through a Google Cloud billing account at pay-per-token rates with higher limits.
- The same key works in any BYOK app, so Gemini can sit alongside GPT and Claude in one chat interface at raw token prices.
Google has made the Gemini API one of the easiest to start with: keys are issued through Google AI Studio in under a minute, and unlike most providers, there is a genuinely usable free tier on many models. Here is the process, what the free tier does and does not cover, and how to put the key to work.
Step 1: Open Google AI Studio
Go to aistudio.google.com and sign in with any Google account. AI Studio is Google's lightweight developer console for Gemini — distinct from the consumer Gemini app, and far simpler than the full Google Cloud console.
Step 2: Create the key
Look for Get API key in AI Studio and create one. That is genuinely the whole step — no card required for free-tier usage on eligible models. Copy the key and store it in a password manager.
If you have multiple Google accounts, note which one holds the key; the usage and any future billing attach to that account.
Step 3: Understand free vs paid
This is the part worth reading twice.
- Free tier. Many Gemini models can be called at no cost within rate limits — a cap on requests per minute and per day. The exact models and limits change as Google updates the lineup, so check the current rate-limit page in AI Studio. For personal chat-style use, the free tier often goes a long way. One caveat worth knowing: Google's terms have historically allowed free-tier prompts to be used to improve their products — if that matters for your content, use paid billing.
- Paid. Linking a Google Cloud billing account upgrades the key to pay-per-token rates with much higher limits, and data-use terms appropriate for production work.
The upgrade path is smooth: start free, link billing only when you hit the limits.
Step 4: Use the key anywhere
Like any provider key, it works in three broad places: your own code via Google's SDKs, developer tools that accept a Gemini key, and BYOK chat apps. The last category is the fastest way to get a full chat interface out of the key without writing anything — in a multi-model room like ByteChat, the same key puts Gemini in a chatroom next to GPT and Claude, with the key stored in your browser and requests billed at Google's raw rates.
Safety habits
The standard three apply: never commit the key to a repository, only paste it into software that is clear about where the key is stored, and rotate the key immediately if usage looks unfamiliar. With a free-tier key the financial risk is naturally capped, but a leaked key still burns your rate limits — and if you later attach billing, the stakes rise with it.
Why Gemini is a good first API key
If you have never used an AI model by API before, Gemini is arguably the gentlest on-ramp: no upfront payment, a real free allowance, and a model family competitive at the frontier. It is a zero-cost way to discover whether pay-per-token use fits how you actually use AI — many people find their usage costs far less by API than the subscription they were paying for.
Frequently asked questions
Is the Gemini API free?
Many Gemini models have a free tier with rate limits — no card required. Heavier or production use runs on pay-per-token billing through a Google Cloud billing account. The current model list and limits are shown in Google AI Studio.
Where do I create a Gemini API key?
In Google AI Studio at aistudio.google.com — sign in with a Google account and use the Get API key option. The key is issued immediately.
Can I use a Gemini API key in other apps?
Yes. Any BYOK (bring-your-own-key) tool that supports Google's API can use it — you paste the key and the app calls Gemini on your behalf at Google's own rates.