🚀 Gemini Proxy API

通过 Google One 订阅使用 Gemini Pro

📡 API 端点

POST /v1/chat/completions

兼容 OpenAI Chat Completions API 格式

🔑 认证方式

在请求头中添加 API Key:

Authorization: Bearer YOUR_API_KEY 或 X-API-Key: YOUR_API_KEY

📝 请求示例

curl -X POST http://localhost:3000/v1/chat/completions \ -H "Content-Type: application/json" \ -H "Authorization: Bearer YOUR_API_KEY" \ -d '{ "model": "gemini-pro", "messages": [ { "role": "user", "content": "你好,请介绍一下自己" } ] }'

📦 响应格式

{ "id": "chatcmpl-1234567890", "object": "chat.completion", "created": 1234567890, "model": "gemini-pro", "choices": [{ "index": 0, "message": { "role": "assistant", "content": "你好!我是 Gemini..." }, "finish_reason": "stop" }], "usage": { "prompt_tokens": 10, "completion_tokens": 50, "total_tokens": 60 } }

🔧 快速开始

进入管理后台 查看文档

💡 使用说明