How to Get Your Own Gemini API Key from Scratch
To run your UPGUN AI assistant with your own Google Gemini key, we'll walk through creating the key, adding a credit card and setting up billing the right way — every step.
The 5-Minute Summary
The steps you need to get a Gemini API key.
What You Should Know Before Starting
Do
- Add a card and move to at least Tier 1 — this raises your rate limit and keeps your data private.
- Keep your key secret; never share it or show it in screenshots.
- Set a monthly spend cap — no surprise bills.
- Enable auto-reload — so the service never stops when the balance runs out.
- Secure the Google account you created the key in — turn on 2-step verification.
Don't
- Don't put the key anywhere public (website, GitHub, social media).
- Don't process heavy/sensitive customer data on the free tier — due to privacy and limits.
- Don't leave your balance at $0 — when it hits zero, ALL your keys stop at once.
- Don't reuse a single key across many different systems; it gets messy and risky.
- Don't forget credits expire after 12 months (unused balance is non-refundable).
Step-by-Step Setup
Follow each step in order; it takes about 10–15 minutes.
Sign in to Google AI Studio
Go to aistudio.google.com with a Google account. We recommend a separate, dedicated Google account for the business (so it doesn't mix with your personal one).
Create your API key
Open the “API Keys” page from the left menu and click “Create API key” at the top right. Pick a project or create a new one. Your key is generated instantly.
Copy the long key (it starts with e.g. AIza…) and store it somewhere safe.
Try it on the Free tier
Your key works even without a card — this is the Free Tier. It's fine for testing and starting at low volume. But it has two important limits:
- Low rate limit: You'll get “limit exceeded” errors under heavy message traffic.
- Privacy: On the free tier, the data you send may be used to improve Google's products.
Set up billing (add a credit card)
On the API Keys or Projects page, click the “Set up billing” link next to your project. On the screen that opens:
- Select or create a Cloud Billing account.
- Enter your country, contact info and credit card details.
- Choose the payment model: Prepay for most users.
Once the card is linked, your account automatically moves to Tier 1. This usually takes effect instantly.
Add credit + auto-reload + limit
To keep the service running and your costs under control, set these three together:
- Starting credit: Add at least $10 (lasts a long time for messaging).
- Auto-reload: Top up automatically when the balance drops below a threshold — so the service isn't interrupted.
- Monthly auto-charge limit: Set “charge at most this much per month” to avoid surprise costs.
Set a monthly spend cap
On the Spend page in AI Studio you can set a monthly spending cap for your project. It acts as a brake against unexpected high usage. (Requires project owner/editor permission.)
Monitor your spend
You can track it in two places:
- AI Studio → Usage / Spend: Daily and monthly usage, cost per model.
- Cloud Billing console: The official billing record (updates with up to 24 hours of delay).
Add the key to your UPGUN AI panel
Final step: in your business panel, paste your key into the Gemini API Key field under Settings → AI Assistant and save. Your assistant now runs on your own key.
How Do the Tiers Work?
As you spend and time passes, your account automatically moves up. Higher tier = higher rate limit.
For testing and low volume. Your data may be used to improve Google products.
Reached as soon as you add a card. Your data is NO LONGER used for training. The right start for most businesses.
Upgrades automatically. High rate limit for heavy usage.
Highest limits + the Postpay (pay-later) option unlocks at this tier.
How Much Does It Cost?
You only pay for what you use — per token (a piece of a word). Because UPGUN AI runs on economical models behind the scenes, the cost is very low.
For current, model-specific prices: Google's official pricing page
Frequently Asked Questions
Is the free tier enough?
Do I have to pay $250/month on Tier 1?
Will money be charged as soon as I add a card?
How do I reach Tier 2?
How does UPGUN AI use my key?
What happens if my balance runs out?
I'm getting a 'rate limit / limit exceeded' error?
Stuck somewhere?
If you need help with creating the key or setting up billing, our team will walk you through it step by step.
