https://github.com/masterain98/gemini-wrapper
Wrap Google AI Studio Gemini API into OpenAI-compatible endpoints
https://github.com/masterain98/gemini-wrapper
fastapi gemini gemini-api openai-api
Last synced: about 2 months ago
JSON representation
Wrap Google AI Studio Gemini API into OpenAI-compatible endpoints
- Host: GitHub
- URL: https://github.com/masterain98/gemini-wrapper
- Owner: Masterain98
- Created: 2025-02-14T16:21:20.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-03T08:29:57.000Z (about 1 year ago)
- Last Synced: 2025-10-26T02:52:31.366Z (8 months ago)
- Topics: fastapi, gemini, gemini-api, openai-api
- Language: Python
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Gemini Wrapper
## Overview
Gemini Wrapper is a FastAPI-based wrapper that mimics OpenAI's API structure while integrating Google's Gemini AI models. This allows users to interact with Gemini models using OpenAI-compatible endpoints, making it easier to integrate into existing applications.
## Features
- Supports multiple Gemini models, including experimental ones.
- Provides an OpenAI-compatible `/v1/chat/completions` endpoint.
- Includes an OpenAI-like `/v1/models` endpoint listing available Gemini models.
- Supports both streaming and non-streaming responses.
- Utilizes Google Gemini API for content generation.
- Returns responses in OpenAI-compatible format.
## Installation
1. Fulfill the `.env` file with your Google AI Studio API key and Cloudflare Tunnel token.
2. With Docker enabled, run `docker compose up --build -d` to start the FastAPI server.