FastAPI proxy for Google's Gemini API, designed for easy/secure access
Top 30.9% on sourcepulse
This project provides a FastAPI-based proxy for Google's Gemini API, designed for easy deployment and integration with tools expecting OpenAI API formats. It targets developers and users needing a flexible, secure, and configurable gateway to Gemini, offering features like API key management, rate limiting, and compatibility with various deployment environments.
How It Works
The proxy acts as an intermediary, translating requests formatted for OpenAI's API into the native format required by Google's Gemini. It supports text, file, and image inputs, and offers both streaming and non-streaming responses. Key features include automatic API key rotation, optional password protection for the web UI, and configurable rate limiting to prevent abuse. It also includes novel features like "fake streaming" to maintain connections and "concurrent requests" with caching for improved response generation and resilience.
Quick Start & Requirements
Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
The project is licensed under CC BY-NC 4.0, strictly prohibiting commercial use. The Hugging Face Spaces deployment is not recommended due to server issues. The persistent storage feature is in beta. The "disguise" feature may cause issues with clients other than SillyTavern.
4 days ago
Inactive