Google AI Studio API key setup
Google's free-tier LLM API at aistudio.google.com. ~500 requests/day on hosted open + proprietary models (rate caps vary per model; check the provider's docs for the exact cap on the model you plan to call), no card required. Separate from the paid Google AI Plus/Pro/Ultra consumer plans.
Get your key
- Open the Google AI Studio API keys page: aistudio.google.com/apikey
- Create an account and generate an API key.
- Paste it into the Dracon BYOK provider keys, stored encrypted (AES-256-GCM), used browser-direct, works in every Dracon tool.
Use your key in every tab
Two free extensions take the key you just set up. Both read the page you are on and use your own provider key: free, no account, nothing stored on a server we run.
AI Auto Form Filler
Complete a web form from a short description, using a model you bring yourself.
All extensions · last checked 2026-10-22.
Get the key and test it
- Open the Google AI Studio API keys page: aistudio.google.com/apikey Create a key and copy the secret straight away.
- Point your client at this provider's base URL:
https://generativelanguage.googleapis.com/v1beta/openaiIt speaks the OpenAI-compatible shape, so an OpenAI SDK client works against it with no adapter: only the base URL and the key change. - Prove the endpoint answers before you trust it. Send one call
with no
Authorizationheader: a live endpoint answers401 Unauthorized, because it is waiting for a bearer key. The wording of that error differs by provider (some sayinvalid_api_key, othersincorrect_api_keyorToken is invalid), so read the 401 as the signal, not the error text. - Paste the key into the Dracon BYOK provider keys ; stored encrypted, used browser-direct, no relay.
- Compare other provider plans when this subscription does not match your usage or budget.
Test the key
Both examples read the key from the GOOGLE_API_KEY environment
variable, so the key stays out of the command line.
export GOOGLE_API_KEY="<YOUR_API_KEY>"
curl https://generativelanguage.googleapis.com/v1beta/openai/chat/completions \
-H "Authorization: Bearer $GOOGLE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"gemini-3.5-flash-lite","messages":[{"role":"user","content":"hi"}]}' import os
from openai import OpenAI
# export GOOGLE_API_KEY="<YOUR_API_KEY>" first
client = OpenAI(
api_key=os.environ["GOOGLE_API_KEY"],
base_url="https://generativelanguage.googleapis.com/v1beta/openai",
)
resp = client.chat.completions.create(
model="gemini-3.5-flash-lite",
messages=[{"role": "user", "content": "hi"}],
)
print(resp.choices[0].message.content)Free tier
Yes. Hosted free tier on select Gemini models for developers and small projects. New accounts begin on the Free Tier with no billing account required; the model list rotates (pricing and billing docs, checked 2026-10-27). no credit card required
Rate limits: Free Tier for new accounts; Paid Tier per-1M-token rates after (see pricing).
Connection details
- Base URL
https://generativelanguage.googleapis.com/v1beta/openai- API shape
- OpenAI-compatible
- Env var
GOOGLE_API_KEY- Models
- gemini-3.5-flash-lite, gemini-3.5-flash, gemini-2.5-pro, gemini-2.5-flash-lite
- Model lineup
- Gemini (Pro), Gemini (Flash), Gemini (Deep Think), Hosted open models
Gotchas
Browser-direct via native Gemini listing (v1beta/models?key=). The OpenAI compat route 404s on /models but the native endpoint is live (wired 2026-08-26b). Chat still falls back to curated Gemini seeds when listing is not_testable.
Our verdicts on this kind of provider
Independent comparisons we keep current as pricing and free tiers shift. A guide is setup; a verdict is whether it's worth setting up.