Top AI Repos — open-source AI, indexed and scored
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
OpenAI to Google Gemini https://gemini-openai-proxy.deno.dev
| Date | Stars |
|---|---|
| 2026-07-24 | 439 |
| 2026-07-25 | 439 |
| 2026-07-28 | 439 |
| 2026-07-30 | 439 |
| 2026-08-06 | 439 |
Today
— stars today
This week
— stars this week
This month
— stars this month
Momentum
0.0
growth rate 0.00%/day
# Gemini-OpenAI-Proxy
Bring OpenAI style API with low cost.
- Use Gemini models to complete OpenAI API `chat` and `embedding` calls.
- Use [supertonic](https://huggingface.co/spaces/Supertone/supertonic) to implement `tts-1` model.
## Introduction
Gemini-OpenAI-Proxy is a proxy software. It is designed to convert OpenAI API
protocol calls into Google Gemini Pro protocol, so that software using OpenAI
protocol can use Gemini Pro model without perception.
If you're interested in using Google Gemini but don't want to modify your
software, Gemini-OpenAI-Proxy is a great option. It allows you to easily
integrate the powerful features of Google Gemini without having to do any
complex development work.
## Demo
> Get api key from <https://makersuite.google.com/app/apikey>
> Deploy supertonic on [huggingface](https://huggingface.co/spaces/nxdev-org/tts) or see [github](https://github.com/waxz/tts), set `TTS_ENDPOINT` in `.dev.vars`
<details open>
<summary>✅ Gemini Pro</summary>
### chat
```shell
curl -s http://localhost:8000/v1/chat/completions \
-H "Authorization: Bearer $YOUR_GEMINI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4",
"messages": [{"role": "user", "content": "Hello, Who are you?"}],
"temperature": 0.7
}'
```
### tts
```shell
curl http://localhost:8000/v1/audio/speech -X POST -H "Authorization: Bearer $YOUR_GEMINI_API_KEY" -H "Content-Type: application/json" -d '{ "input": "Hello secure world!!", "voice": "alloy" ,"model":"tts-1" }' --output test.wav
```

</details>
<details>
<summary>✅ Gemini Pro Vision</summary>
```shell
curl -s http://localhost:8000/v1/chat/completions \
-H "Authorization: Bearer $YOUR_GEMINI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4-vision-preview",
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "What do you see in this picture?"
},
{
"type": "image_url",
"image_url": {
"url": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAnAgMAAAA0vyM3AAAACVBMVEX/4WwCAgF3aTMcpbzGAAAAa0lEQVR4nGOgAWB1QOYEIHFEcXKmhCBxQqYgcSLEEGymAFEEhzFAFYmTwNoA53A6IDmB1YETidPAiLBVFGgEgrNqJYIzNTQU4Z5QZA6QNQ3hGpAZcNegceBOADFQOQlQDhfQyUwLkPxKVwAABbkRCcDA66QAAAAASUVORK5CYII="
}
}
]
}
],
"stream": false
}'
```

</details>
## Plan
- [x] `/v1/chat/completions`
- [x] stream
- [x] complete
## Model Mappings
| Request Model | Target Gemini Model |
| -------------------- | -------------------------- |
| gpt-3.5-turbo | gemini-1.5-flash-8b-latest |
| gpt-4 | gemini-1.5-pro-latest |
| gpt-4o | gemini-1.5-flash-latest |
| gpt-4o-mini | gemini-1.5-flash-8b-latest |
| gpt-4-vision-preview | gemini-1.5-flash-latest |
| gpt-4-turbo | gemini-1.5-pro-latest |
| gpt-4-turbo-preview | gemini-2.0-flash-exp |
| gemini* | gemini* |
| ...(others) | gemini-1.5-flash-latest |
## Run On Serverless
### [Cloudflare Workers](https://workers.cloudflare.com)
Copy [`main_cloudflare-workers.mjs`](./dist/main_cloudflare-workers.mjs) to
`cloudflare-workers`
### [Deno Deploy](https://deno.com/deploy)
Copy [`main_deno.mjs`](./dist/main_deno.mjs) to `deno deploy`
### [Vercel](https://vercel.com)
[](https://vercel.com/new/clone?repository-url=https://github.com/zuisong/gemini-openai-proxy&repository-name=gemini-openai-proxy)
- Alternatively can be deployed with [cli](https://vercel.com/docs/cli):
`vercel deploy`
- Serve locally: `vercel dev`
- Vercel _Functions_
[limitations](https://vercel.com/docs/functions/limitations) (with _Edge_
runtime)
## Run On Local
### deno
#### install deno
```shell
curl -fsSL https://deno.land/install.sh Excerpt of 5,371 characters
Read on GitHubWould you bet a product on this? Bounded 0–100 and slow moving.
matched fp:bfb0b368b838f503, topic:serverless