Google AI Studio (Gemini)
ALIVEGoogle's powerful Gemini models
Free tier via an AI Studio API key. On the free tier, prompts may be used to improve Google products.
- Free tier via AI Studio
- Generous rate limits
- OpenAI compatible
- OpenAI-compatible API
- Auth: Bearer (OpenAI)
gemini-2.5-flashdefaultgemini-2.5-progemini-2.0-flashgemini-2.5-flash-litehttps://generativelanguage.googleapis.com/v1beta/openai/chat/completionshttps://generativelanguage.googleapis.com/v1beta/openai/completionshttps://generativelanguage.googleapis.com/v1beta/openai/models# settings.json "env" block, or your shell:
ANTHROPIC_BASE_URL=https://generativelanguage.googleapis.com/v1beta/openai/
ANTHROPIC_AUTH_TOKEN=<YOUR_API_KEY>
ANTHROPIC_MODEL=gemini-2.5-flash
# Claude Code speaks the Anthropic Messages API. Use an Anthropic-compatible
# endpoint, or an OpenAI→Anthropic proxy in front of Google AI Studio (Gemini).You are being set up to use a free LLM API as your model backend.
Provider: Google AI Studio (Gemini)
Base URL: https://generativelanguage.googleapis.com/v1beta/openai/
Model: gemini-2.5-flash
Auth: Bearer token (OpenAI-compatible)
Key env var: GEMINI_API_KEY
Task:
1. Configure Claude Code to call the endpoint above using the OpenAI Chat Completions format.
2. Read the API key from the GEMINI_API_KEY environment variable. Do NOT
ask me to paste the key in plain text in this chat — I will set it in my env.
3. If a setting requires a base URL, use exactly: https://generativelanguage.googleapis.com/v1beta/openai/
4. Send one short test message ("ping") and report back whether the call
succeeded, including the model name and latency.
If anything is missing (e.g. an account ID for the base URL), ask me for just
that value and nothing else.↳ You supply the key in your own env. apifreely never sees it.
curl https://generativelanguage.googleapis.com/v1beta/openai/chat/completions \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"model": "gemini-2.5-flash",
"messages": [{ "role": "user", "content": "Hello!" }]
}'{
"id": "chatcmpl-...",
"object": "chat.completion",
"model": "gemini-2.5-flash",
"choices": [
{
"index": 0,
"message": { "role": "assistant", "content": "Hello! How can I help?" },
"finish_reason": "stop"
}
],
"usage": { "prompt_tokens": 9, "completion_tokens": 12, "total_tokens": 21 }
}Is it really free?
Yes — this entry lists a free tier or promo. Some are rate-limited or time-limited, so check the rate limit and any expiry before relying on it in production.
Where is my API key stored?
Nowhere. apifreely never receives your key. You paste it into your own agent or environment — every generator here runs in your browser.
How do I connect it to my agent?
Open the Setup tab for a copy-paste config per tool, or use the Prompt Generator to get a prompt your agent can run to configure itself.
What if the endpoint needs an account ID?
Some providers (e.g. Cloudflare) include a placeholder like {ACCOUNT_ID} in the base URL — replace it with your own from the dashboard.
1 · Base URL
https://generativelanguage.googleapis.com/v1beta/openai/2 · API key
GEMINI_API_KEY=••••••••••••••••••env onlyVaries per model, e.g. Flash ~15 req/min, ~1,500 req/day
60 REQ/MIN