English
Gemini Free API — Guest Mode Bridge
Gemini Free API is the boldest bridge of the family: it talks to the Gemini web app in guest mode — no account, no login, no key — and exposes it behind OpenAI- and Anthropic-compatible endpoints. You run one Go binary and any LLM client works against Gemini for free.
Design
- Guest mode — session bootstrapping without credentials, tokens rotated automatically.
- Dual protocol — OpenAI
/v1/chat/completionsand Anthropic/v1/messages, so Claude Code and agent frameworks plug in unchanged. - Streaming + tools — SSE passthrough and GhostBrain-style function-calling emulation where the upstream allows it.
- Single Go binary — same rule as always: the bridge must never be the thing that is down.
bash
./gemini-free-api --port 8006
curl localhost:8006/v1/chat/completions \
-d '{"model":"gemini-pro","messages":[{"role":"user","content":"hello"}],"stream":true}'Bridges like this one, DeepSeek Free API and Qwen Free API share one codebase philosophy: reverse-engineer the web session once, then keep the operational layer boring — retries, rotation, honest errors. MIT licensed.