gemini-web2api is a Python bridge that exposes Google Gemini web access through OpenAI-compatible API endpoints. It is designed to let OpenAI-style clients connect to Gemini-like models through routes such as chat completions, models, responses, and native Gemini-compatible endpoints. The project can run as a simple local server and uses a mostly single-file design with an optional dependency for streaming. It supports model aliases for Flash, Thinking, Pro-style routing, Auto, and Lite variants. The tool also includes optional API keys, function calling, SSE streaming, web search access, Docker deployment, and client examples for OpenAI SDK-style usage. It is useful for developers who want local experimentation with OpenAI-compatible tooling while routing requests through Gemini web behavior.

Features

  • OpenAI-compatible API endpoints
  • Chat completions and model listing
  • Function calling support
  • SSE streaming support
  • Adjustable thinking depth suffixes
  • Docker and Docker Compose deployment

Project Samples

Project Activity

See All Activity >

Categories

AI Models

License

MIT License

Follow gemini-web2api

gemini-web2api Web Site

Other Useful Business Software
Train ML Models With SQL You Already Know Icon
Train ML Models With SQL You Already Know

BigQuery automates data prep, analysis, and predictions with built-in AI assistance.

Build and deploy ML models using familiar SQL. Automate data prep with built-in Gemini. Query 1 TB and store 10 GB free monthly.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of gemini-web2api!

Additional Project Details

Programming Language

Python

Related Categories

Python AI Models

Registered

2026-06-16