A Gemini API key is a bearer credential that authenticates calls to Google's Gemini models. There are two ways to get one: get an official key from Google AI Studio, or use Kunavo to call Gemini, Claude, GPT, and image/video models with one OpenAI-compatible key (no Google Cloud project required). This guide compares the two options and shows the fastest way to start making calls in production.
Method 1 — Google AI Studio (official)
If you plan to call only Gemini, getting a key directly from Google is a good fit.
- Visit
aistudio.google.comand sign in with your Google account. - Create a key via Get API key → Create API key. The key has the format
AIza.... - The free tier for prototyping has rate limits and is suitable for early development.
- To handle production volume, you need to link the key to a Google Cloud billing account with billing enabled.
This is the right path if Gemini will remain the only model you call. But if you also use Claude or image/video models, you'll manage separate keys, SDKs, and bills for each provider.
Method 2 — Kunavo (recommended for production)
Kunavo puts Gemini behind an OpenAI-compatible endpoint. Use one sk-kn- key to call all models and pay from a single Stripe balance, so no Google Cloud project is needed. Gemini is around 70% cheaper than Google's list price; your balance never expires, and it's pay-as-you-go with a $10 minimum top-up.
- Sign up — create an account at kunavo.com.
- Add $10 — pay as you go, and your balance never expires.
- Create a key — create a key at
/app/keys. It starts withsk-kn-and is shown only once, so save it in an environment variable. - Make a call — set the OpenAI SDK's
base_urltohttps://api.kunavo.com/v1and call a Gemini slug.
Quick start
Use the official OpenAI SDK as is. Just change base_url and the model name — nothing else needs to change.
import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["KUNAVO_API_KEY"],
base_url="https://api.kunavo.com/v1", # 바뀌는 건 이 줄뿐입니다
)
# 모델 슬러그만 바꾸면 Claude, GPT 등 다른 모델도 같은 키로 호출됩니다
resp = client.chat.completions.create(
model="gemini-2-5-flash",
messages=[{"role": "user", "content": "두 문장으로 자기소개를 해줘."}],
)
print(resp.choices[0].message.content)Keep your key secure
- Use environment variables. Don't hard-code the key in your code; store it in an environment variable such as
KUNAVO_API_KEY. Browser and mobile bundles are public, so never expose the key on the client; always proxy through your own server. - Rotate it regularly. Kunavo allows multiple active keys, so you can rotate them with a clean overlap rather than a hard cutover. Quarterly rotation is recommended.
- Set spending limits per key. Set a spending limit for each key in the dashboard and check per-key usage at
/app/usage, so if a key is leaked, you can revoke it without affecting the others.
Frequently asked questions
Is the Gemini API free?
Google AI Studio issues a free-tier key with rate limits, which is sufficient for prototyping. Production traffic moves to paid billing. Kunavo is pay-as-you-go starting with a $10 minimum top-up, with no separate Google Cloud billing account required, and balances never expire.
Can I get a Gemini API key without a Google Cloud account?
Yes. With Kunavo, you can sign up and call Gemini using a single sk-kn- key, without a Google Cloud project or billing account. The key works with Gemini as well as Claude, GPT, image, and video models through an OpenAI-compatible endpoint.
How is a Gemini key different from a Kunavo key?
A Google key calls only Gemini and is billed through your Google Cloud account. A Kunavo key calls Gemini along with Claude, GPT, image, and video models through one OpenAI-compatible API, with a single payment via Stripe. See the Gemini API pricing guide for per-token rates and cost examples.
Which Gemini model should I start with?
Start with gemini-2-5-flash for everyday chat, extraction, and summarization. It's fast and very inexpensive. Switch to gemini-3-1-pro for more difficult reasoning, vision, and long-context analysis.