CJackHwang/AIstudioProxyAPI
A FastAPI middleware proxy that transforms Google AI Studio web interface into an OpenAI-compatible API for accessing Gemini models.

This repository provides a reverse proxy server that uses Playwright and Camoufox browser automation to forward API requests to Google AI Studio, returning responses in the standard OpenAI format. It enables developers to access Gemini models through familiar OpenAI API endpoints like /v1/chat/completions. The project includes function calling support in auto, native, and emulated modes, authentication rotation with cookie refresh, and a built-in debug WebUI panel.
Frequently asked
- What is CJackHwang/AIstudioProxyAPI?
- A FastAPI middleware proxy that transforms Google AI Studio web interface into an OpenAI-compatible API for accessing Gemini models.
- Is AIstudioProxyAPI open source?
- Yes — CJackHwang/AIstudioProxyAPI is open source, released under the AGPL-3.0 license.
- What language is AIstudioProxyAPI written in?
- CJackHwang/AIstudioProxyAPI is primarily written in Python.
- How popular is AIstudioProxyAPI?
- CJackHwang/AIstudioProxyAPI has 2.5k stars on GitHub.
- Where can I find AIstudioProxyAPI?
- CJackHwang/AIstudioProxyAPI is on GitHub at https://github.com/CJackHwang/AIstudioProxyAPI.