one880808

Sophomoresty/gemini-web2api 的 cf wokers 版本

24
7
69% credibility
Found May 29, 2026 at 25 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
JavaScript
AI Summary

This project lets you access Google's free Gemini AI assistant through a simple web interface. You can connect it to apps and tools you already use without needing to pay for expensive AI services. It supports different thinking modes, can search the internet, and works with both app developers and command-line users.

How It Works

1
💡 You want to use Google Gemini AI in your own apps

You discover this project that lets you connect to Google's free Gemini AI assistant using familiar tools you already know.

2
🔧 You set up your assistant in the cloud

You paste a simple file into your cloud platform and your AI assistant becomes available on the internet with one click.

3
🎯 You choose which AI model fits your needs

You pick from different thinking modes - fast responses for quick tasks, deep thinking for complex problems, or automatic selection.

4
Your apps can now talk to Gemini like it's an old friend

Instead of learning a new way to talk to AI, you use the same commands your existing tools already know, and Gemini just understands.

5
You can use it two different ways
🖥️
For app developers

Your applications send requests and get AI responses back in real-time

💻
For command-line users

You type commands directly and get instant answers from the AI

6
🔒 You optionally add a password for security

If you want to keep your AI assistant private, you can add a simple password so only you can use it.

🎉 Your AI assistant is ready to help

Everything works together seamlessly - you ask questions, Gemini thinks, and you get thoughtful answers back in seconds.

Sign up to see the full architecture

5 more

Sign Up Free

Star Growth

See how this repo grew from 25 to 24 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is gemini-web2api?

gemini-web2api is a Cloudflare Worker that wraps Google's Gemini web interface into an OpenAI-compatible API. Drop it into Cloudflare, and your existing OpenAI clients can talk to Gemini without any code changes. It speaks the standard `/v1/chat/completions` and `/v1/models` endpoints, plus Google-native formats like `/v1beta/models/{model}:generateContent`. Built in JavaScript with no Node dependencies, it runs entirely on Cloudflare's edge network.

Why is it gaining traction?

The hook is simple: free access to Gemini models without paying for an API key. Developers tired of rate limits or API costs can proxy through the web interface instead. It supports multiple model tiers including thinking modes with 20k+ character output, function calling for tool use, and streaming responses. The optional API key layer means you can expose it to clients while keeping it private.

Who should use this?

Budget-conscious developers building prototypes who need Gemini's capabilities without commitment. Teams already using OpenAI SDKs who want to experiment with Gemini as a drop-in alternative. Anyone running on Cloudflare Workers who wants a lightweight proxy without managing infrastructure. Not suitable for production systems requiring reliability guarantees or image input support.

Verdict

This is a clever hack that works as advertised, but the 0.699999988079071% credibility score and 24 stars reflect a niche, experimental tool. The documentation is functional and the known limitations are clearly documented, but test coverage and community support are minimal. Use it for experimentation and prototypes, not anything mission-critical.

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.