zexadev/gemini-web2api-go
Gemini web → OpenAI-compatible + native Gemini API, self-hosted, no API key. Reverse-proxies gemini.google.com into /v1/chat/completions + /v1beta generateContent: single Go binary, Chrome TLS fingerprint, cookie pool, auto-renewal, proxy pool, admin dashboard, SQLite/MySQL/PG, image & video generation · 把 Gemini 网页反代成 OpenAI 兼容 / Gemini 原生 API
What it solves
This project acts as a bridge that converts the free web interface of Google Gemini into an OpenAI-compatible API. It allows users to integrate Gemini into tools that expect the standard OpenAI API (like Cursor, Dify, or Cherry Studio) without needing a paid Google API key or consuming official Google Cloud quota.
How it works
It functions as a reverse proxy that mimics a real Chrome browser session. It uses TLS fingerprinting to appear as a legitimate browser to Google's servers, bypassing common bot detection. It manages a pool of cookies and proxies to ensure stability and load balancing. When you send a request, the service translates it into the web-based protocol used by gemini.google.com, processes the response, and streams it back to your client in the standard OpenAI format.
Who it’s for
This is for developers and power users who want to use Gemini's models (including Pro and thinking models) in their own applications or local AI tools without paying for the official Google Generative AI API. It is particularly useful for those who want to self-host a reliable, multi-account proxy for their AI workflows.
Highlights
- OpenAI Compatibility: Exposes standard
/v1/chat/completionsendpoints for seamless integration with existing AI clients. - No API Key Required: Operates by reverse-engineering the web interface, meaning no official Google API key or paid quota is needed.
- Advanced Features: Supports Gemini's "thinking" models, image/video generation, and web search capabilities via an integrated MCP server.
- Robust Infrastructure: Features a built-in admin dashboard, SQLite/MySQL/PostgreSQL support, automatic cookie renewal, and proxy pool management to prevent IP bans.
Related
- Project
- Project
- Project
- Project
- Project