iBUHub/AIStudioToAPI
A wrapper that exposes Google AI Studio Build as OpenAI, Gemini, and Anthropic compatible APIs.(一个将 Google AI Studio Build 封装为兼容 OpenAI / Gemini / Anthropic 风格 API 的工具)
What it solves
This project provides a way to access Google AI Studio's "Build App" web interface as if it were a standard API. It solves the problem of wanting to use Gemini models (including image generation and TTS) via programmatic interfaces while leveraging the web-based AI Studio environment, effectively turning a browser-based tool into a compatible API backend.
How it works
The tool acts as a proxy server that uses browser automation (via the Camoufox browser) to interact with the AI Studio web interface. It translates incoming API requests into browser actions and then translates the web responses back into API formats. It supports multiple Google accounts and can automatically switch between them to manage limits or failures.
Who it’s for
Developers who want to integrate Gemini models into their own applications or existing AI clients (like AMC WebUI) but prefer or need to use the AI Studio web interface instead of a direct API key, or those who need to manage multiple accounts for higher throughput.
Highlights
- Multi-API Compatibility: Supports OpenAI, Gemini, and Anthropic API formats.
- Tool Use Support: Enables Function Calling across all supported API interfaces.
- Account Management: Supports multiple Google accounts with automatic switching and a VNC-based login system for Docker deployments.
- Flexible Model Control: Allows forcing thinking mode, web search, and code execution via model name suffixes.
- Proxy Support: Includes account-specific proxy mapping to handle network restrictions.
Related
- Project
- Project
- Project
- Project
- Project