Step-by-step official guide · 2026

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.

1. Create the key
AI Studio → Create API key. Works immediately on the free tier.
2. Add a card
Set up billing → Cloud Billing account. This moves you to Tier 1.
3. Credit + limit
Add min $10 credit, enable auto-reload, set a monthly limit.
4. Paste into UPGUN
Panel → Settings → AI Assistant → 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.

1

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).

Tip
AI Studio is free; only API usage is charged — and only based on what you use after adding a card.
2

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.

Your key is like a password
All usage made with this key is billed to your account. Don't share it; if it leaks, delete it in AI Studio and create a new one.
3

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.
Recommendation
For real customer conversations, add a card in the next step and move to Tier 1. This raises the limit and keeps your data private.
4

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:

  1. Select or create a Cloud Billing account.
  2. Enter your country, contact info and credit card details.
  3. 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.

What is Prepay?
You load credit in advance (minimum $10, maximum $5,000 per purchase). It's deducted from this balance in near real-time as you use the API. Postpay (pay later) is only available at Tier 3.
5

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.
Very important
If your Prepay balance hits $0, all API keys in all projects of that account stop working at the same time. Be sure to enable auto-reload.
6

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.)

Recommended start
For a single business's WhatsApp/Instagram conversations, a small monthly cap (e.g. a few dollars) is usually more than enough. You can watch usage and raise it.
7

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).
8

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.

You're ready 🎉
Send a test message and confirm the assistant replies. If there's an issue, check that the key was copied correctly and that billing is enabled.

How Do the Tiers Work?

As you spend and time passes, your account automatically moves up. Higher tier = higher rate limit.

These numbers are NOT a monthly fee 👇
The amounts below are a safety ceiling showing the maximum you can spend at each tier — they are not a fixed charge. In reality you only pay for what you use, and most businesses spend just a few dollars a month. You can also set a much lower monthly cap yourself.
Free
How to reach it
Just create an API key — no card needed
Monthly spend ceiling
No payment
no card needed
Rate limitLowest
Data privacy Open

For testing and low volume. Your data may be used to improve Google products.

RECOMMENDED START
Tier 1
How to reach it
Link a billing account (add a credit card)
Monthly spend ceiling
up to $250 / mo
not a fee — a ceiling
Rate limitMedium
Data privacy Private

Reached as soon as you add a card. Your data is NO LONGER used for training. The right start for most businesses.

Tier 2
How to reach it
Spend $100 total + 3 days since first payment
Monthly spend ceiling
up to $2,000 / mo
not a fee — a ceiling
Rate limitHigh
Data privacy Private

Upgrades automatically. High rate limit for heavy usage.

Tier 3
How to reach it
Spend $1,000 total + 30 days passed
Monthly spend ceiling
up to $20,000+ / mo
not a fee — a ceiling
Rate limitHighest
Data privacy Private

Highest limits + the Postpay (pay-later) option unlocks at this tier.

Tier upgrades are automatic
Free → Tier 1 is usually instant. Tier 2 ($100 + 3 days) and Tier 3 ($1,000 + 30 days) upgrade automatically within ~10 minutes once the conditions are met. There's also a 10-minute spend-based limit at each tier (Tier 1: $10/10min, Tier 2-3: $200/10min).

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.

Very low unit price
Thanks to the economical models the system uses, processing 1 million tokens (about 750k words) costs a few cents.
Pay as you go
No fixed fee. Fewer messages = less cost. Most small businesses stay at a few dollars a month.
You're in control
With a monthly cap + auto-reload limit, you decide your spend entirely.

For current, model-specific prices: Google's official pricing page

Frequently Asked Questions

Is the free tier enough?
For testing and very low volume, yes. But for real customer conversations we recommend adding a card and moving to Tier 1, due to the low rate limit and data privacy.
Do I have to pay $250/month on Tier 1?
No. $250 is only the maximum spend allowed at that tier — not a fixed fee. You only pay for what you actually use, and most businesses stay at a few dollars a month. You can also set a much lower monthly cap yourself.
Will money be charged as soon as I add a card?
With Prepay, it's deducted from the credit you loaded in advance as you use it. You set the auto-reload and monthly limit; you're fully in control.
How do I reach Tier 2?
Once you've spent $100 total and 3 days have passed since your first successful payment, your account automatically upgrades to Tier 2. You don't need to do anything else.
How does UPGUN AI use my key?
Your key is used only for your own business's assistant, stored securely, and you can change or remove it from the panel at any time.
What happens if my balance runs out?
If the Prepay balance hits $0, all keys in that account stop working. Keep auto-reload on to prevent this.
I'm getting a 'rate limit / limit exceeded' error?
It means you're hitting the rate limit. As you add a card and move up tiers, the limits rise. You can see your current limits on the Rate Limit page in AI Studio.

Stuck somewhere?

If you need help with creating the key or setting up billing, our team will walk you through it step by step.