Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/CattleZoe/Gemini-proxy
gemini-proxy-cloudflare
https://github.com/CattleZoe/Gemini-proxy
Last synced: 16 days ago
JSON representation
gemini-proxy-cloudflare
- Host: GitHub
- URL: https://github.com/CattleZoe/Gemini-proxy
- Owner: CattleZoe
- Created: 2023-12-24T03:22:09.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2023-12-19T06:04:47.000Z (11 months ago)
- Last Synced: 2024-08-01T08:15:54.071Z (3 months ago)
- Size: 1.95 KB
- Stars: 28
- Watchers: 0
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Gemini-proxy
- gemini-proxy-cloudflare
## 这是利用cloudflare的work.js反向代理google的gemini的API接口
- [参考官方Gemini文档](https://ai.google.dev/tutorials/rest_quickstart)
## 使用方式
- 部署**work.js**到cloudflare
- 配置work触发器,定义域名## 官方使用示例
```shell
curl https://generativelanguage.googleapis.com/v1beta/models/gemini-pro?key=$API_KEY
```## cloudflare反代后的使用示例
```shell
curl https://gemini.aivvm.com/v1beta/models/gemini-pro?key=$API_KEY
```