ntthanh2603/gemini-web-to-api
✨Reverse-engineered API for Gemini web app. It can be used as a genuine API key from OpenAI, Gemini, and Claude.
What it solves
이 프로젝트는 공식 API 키 없이도 표준화된 REST API를 통해 Google Gemini 최신 모델에 접근할 수 있게 해줍니다. 브라우저 쿠키를 이용해 Gemini 웹 인터페이스에서 요청을 인증함으로써 키가 필요하지 않게 합니다.
How it works
Go와 Fiber로 구축된 로컬 API 서버를 생성합니다. 서버는 브리지 역할을 하여 사용자의 요청을 Gemini 웹 인터페이스로 전달하고, 제공된 브라우저 쿠키(__Secure-1PSID 및 __Secure-1PSIDTS)를 사용합니다. 다중 API 프로토콜을 지원하여 OpenAI, Claude, Gemini 네이티브 SDK를 대체해 바로 사용할 수 있습니다.
Who it’s for
Gemini 기능을 자체 애플리케이션에 통합하고 싶거나, 공식 API 키나 키 할당량 관리에 의존하지 않고 로컬에서 Gemini를 테스트하고자 하는 개발자를 위한 프로젝트입니다.
Highlights
- Multi-protocol support: Compatible with OpenAI, Claude, and Gemini API formats.
- Session management: Automatically rotates cookies to maintain active sessions.
- Easy deployment: Available as a Docker image for quick setup.
- Interactive documentation: Includes a Scalar UI for testing and documenting the API endpoints.