gemini-proxy  by tech-shrimp

Cloudflare Worker proxy for Gemini multimodal API

Created 10 months ago
250 stars

Top 100.0% on SourcePulse

GitHubView on GitHub
Project Summary

Gemini API 的 Cloudflare Worker 代理

This project offers a Cloudflare Worker script designed to proxy Google's Gemini 2.0 multimodal API. It specifically targets users in mainland China, aiming to provide access to the free, native multimodal capabilities of Gemini, which may face accessibility challenges in the region. The solution allows users to deploy a simple proxy to circumvent potential network restrictions.

How It Works

The core of the project is a worker.js script that runs on Cloudflare's edge network. By deploying this script as a Cloudflare Worker and associating it with a custom domain, users can route their Gemini API requests through Cloudflare. This approach leverages Cloudflare's infrastructure to act as an intermediary, potentially improving connection stability and accessibility for users in mainland China accessing Google's AI services.

Quick Start & Requirements

  1. Create a new Worker within your Cloudflare account.
  2. Copy the contents of the worker.js file into the Worker's code editor.
  3. Bind a custom domain to your newly created Worker.
  • Prerequisites: A Cloudflare account.

Highlighted Details

  • Proxies Gemini 2.0's free, native multimodal API.
  • Facilitates access from mainland China.

Maintenance & Community

The project is maintained by "技术爬爬虾" (Ji Shu Pa Pa Xia), described as a tech blogger focused on practical software DIY. No other community channels or contribution information are provided.

Licensing & Compatibility

The project's README does not specify a software license. Users should be aware of potential usage restrictions. Compatibility is dependent on the Cloudflare Workers environment and the Gemini API.

Limitations & Caveats

The effectiveness of this proxy relies heavily on the stability of both Cloudflare's network and Google's Gemini API. Access from mainland China may still be subject to intermittent network issues or government-level blocking. The absence of a defined license introduces ambiguity regarding commercial use or redistribution.

Health Check
Last Commit

10 months ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
0
Star History
2 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.