Your Gemini API key: free or paid
Many AI apps — including our factory for visual lessons — run on your own Gemini API key. That way you decide how much you produce and where your data goes. Getting a key takes 5 minutes. Here is how, when the free tier is enough, when you need a paid one, and how to keep the key safe.
01What you will learn
- How to get a Gemini API key and restrict it to Gemini only.
- The difference between a free and a paid key — and why it is about data, not only money.
- What "the limit is used up" means and when it resets.
- How to connect the key in the Onagledeno Factory.
- How to keep it safe and what to do if it leaks.
02Before you start
- A Google account.
- A browser on a computer — a phone works, but copying is less convenient.
- A clear idea of what texts you will send: educational and public — or confidential and personal. Your choice of key depends on it (step 4).
03Steps
-
Open Google AI Studio
Go to aistudio.google.com/apikey and sign in with your Google account. This is the API Keys page.
-
Create the key
Click "Create API key" and copy it. The key is a long string of letters and symbols; formats vary, so don't worry if it doesn't look like someone else's example.
If you want the key in a Google Cloud project you already have, import it first: Dashboard → Projects → Import projects.
⚠️Trap: no "Create API key" buttonYour account lacks permissions in that project. A role such as "Project Editor" is needed. Ask the project owner or use your own project. -
Restrict the key to Gemini
Next to the key: Add restrictions → Restrict to Gemini API only → Restrict key. Then the key is useless for anything else, even if it leaks.
-
Choose: free or paid
Free vs paid · per Google, 2026-10-30FREE PAID Card no yes (Billing in AI Studio) Limit small, per day higher, pay per request Your data may be used by Google not used to improve its products Good for trials, educational client work, personal and and public texts confidential texts, production at scale⛔Confidential content never goes through a free keyOn the free tier Google may use the content to improve its products. Personal data, client data, internal documents — only with a paid key, or not at all.Limits apply per project, not per key: requests per minute, tokens (pieces of words) per minute and requests per day. The daily limit resets at midnight Pacific time.
Paid is enabled with Billing in AI Studio. The first paid tier usually applies immediately. Set a billing alert in Google Cloud so the bill does not surprise you.
-
Connect the key in the factory
- Open kagami.bg/deca/onagledeno (the interface is in Bulgarian).
- At the top, click "Свържи своя ключ за Gemini" (Connect your Gemini key).
- Paste the key and click "Провери и свържи" (Check and connect). The factory makes one small test call.
- The button at the top turns green: "Твой ключ за Gemini: свързан ✓" (your key: connected).
✅Where the key livesOnly in your browser. With each request it passes through the factory server to Google and is stored nowhere. We checked: not in logs, not in counters, not on disk.⚠️"Your key's limit is used up"This is not an error. Your work is saved. Wait for the reset or move to a paid key. -
Keep the key safe
- Never put it in a chat, email, document or Git.
- On a shared computer, click "Изтрий ключа" (Delete key) when you finish.
- If it leaks: create a new key → connect the new one → delete the old one (in Google Cloud, the Credentials page). In this order nothing stops working.
04Check
1. You need to run a client contract through Gemini. Which key?
2. The factory says "your key's limit is used up". What does it mean?
3. Your key leaked in a public chat. What is the right order?
4. Where is the key once you connect it in the factory?
05What next
06Sources
- Google · Using Gemini API keys — creating, restricting and protecting the key.
- Google · Gemini API pricing — free and paid tier, data use (updated 2026-10-30).
- Google · Rate limits — limits, reset, tiers.
- Google · Gemini API Additional Terms of Service — the terms.