How to get a Gemini API key in Google AI Studio (free tier included)
Open Google AI Studio (aistudio.google.com/apikey), sign in with your Google account and accept the terms. New users get a project and a key automatically: just copy it. Otherwise click Create API key. The free tier works without a card, but Google may use free-tier data to improve its products. Paid use needs billing (prepay from $5).
Gemini is Google's AI. To use it from another program (for example, to translate YouTube titles), that program needs a Gemini API key: a long password that says "this is me, bill (or count) my usage". 🔑
Good news: getting one takes about a minute, and there is a free tier. Here is how to get a Gemini API key, step by step, plus the two things worth knowing before you paste it anywhere.
Get the key in 4 steps
- Open aistudio.google.com/apikeyGoogle AI Studio, API keys page
- Sign in with your Google account
- Accept the Terms of Service if askedNew users get a project + key automatically
- Copy the key, or click Create API key
If you are new to AI Studio, you'll usually see a key already waiting in the table: copy it. If not, click Create API key and follow the short dialog. Every key belongs to a Google Cloud project; AI Studio creates or imports that project for you.
Free tier vs paid tier
| Free tier | Paid tier | |
|---|---|---|
| Card needed | No | Yes, billing account |
| Models | Certain models | More models |
| Limits | Free rate limits | Higher limits |
| Your data | May be used to improve Google products | Not used to improve products |
| Start | Right away | Prepay from $5 |
The data line matters. Under Google's terms, what you send through the free tier may be used to improve Google products. For public YouTube titles that's usually fine: they'll be public anyway. For private scripts or client texts, use a paid tier or another service.
Paid tier: in AI Studio click Set up billing next to your project. Google asks for a billing account and, for most new accounts, a prepayment of at least $5.
Keep the key safe
- Treat it like a password
- Paste it only into apps you trust
- Delete and recreate it if it leaks
- never post it in comments, chats or screenshots
- never put it in a public file or video
A leaked key lets someone else use your quota or your money. New keys created in AI Studio are restricted to the Gemini API by default, which limits the damage, but a secret is still a secret.
"Create API key" is greyed out?
That usually means your Google account belongs to a company or school, and you don't have permission in that Cloud project. Ask your admin for access, or use a personal Google account.
What you can do with the key
With a key, apps can send text to Gemini and get a translation back in seconds. For YouTube creators that means titles and descriptions in many languages. How it compares to ChatGPT and Claude: translate YouTube with ChatGPT, Claude or Gemini. Other keys: OpenAI API key, Claude API key.
In Syava Studio Translator there's a Connect Gemini for free button: it opens Google AI Studio in the same Google profile as your YouTube Studio, you copy the key and click Paste from clipboard. The app checks the key and stores it locally on your PC. Then titles and descriptions for all your languages go through Gemini, and the app publishes them in YouTube Studio for you.
Questions and answers
Is the Gemini API key free?
Creating a key is free, and the free tier lets you use certain models up to free rate limits without a card. Higher limits and some models need a paid tier with billing.
Where do I find my Gemini API key?
In Google AI Studio, on the API keys page (aistudio.google.com/apikey). New users get a default project and key there automatically.
What does the free tier mean for my data?
According to Google's terms, free-tier prompts and responses may be used to improve Google products. Don't send private text you don't want Google to see through the free tier. On paid tiers this does not apply.
The Create API key button is greyed out. Why?
Usually your Google account belongs to an organization and you lack permissions in that Cloud project. Ask the admin, or use a personal Google account or a project outside the organization.
What if my key leaks?
Delete it on the API keys page and create a new one. Then paste the new key wherever you used the old one.
SyavaTech is an independent company. This article is not affiliated with, endorsed by or sponsored by YouTube or Google.