中文 | English

# One API _本项目是基于[one-api](https://github.com/songquanpeng/one-api)二次开发而来的,主要将原项目中的模块代码分离,模块化,并修改了前端界面。本项目同样遵循 MIT 协议。_

license release docker docker GoReportCard

**请不要和原版混用,因为新增功能,数据库与原版不兼容** **为了更加简洁,本项目之后,除了新增供应商时会更新程序自带的模型列表,平常不再更新程序自带的模型列表。** **如果发现缺少新模型,请在`后台-模型价格-更新价格`中更新新增的模型** [演示网站](https://one-api-martialbe.vercel.app/)
## 功能变化 - 全新的 UI 界面 - 新增用户仪表盘 - 新增管理员分析数据统计界面 - 重构了中转`供应商`模块 - 支持使用`Azure Speech`模拟`TTS`功能 - 渠道可配置单独的 http/socks5 代理 - 支持动态返回用户模型列表 - 支持自定义测速模型 - 日志增加请求耗时 - 支持和优化非 OpenAI 模型的函数调用(支持的模型可以在 lobe-chat 直接使用) - 支持完成倍率自定义 - 支持完整的分页和排序 - 支持`Telegram bot` - 支持模型按次收费 - 支持模型通配符 - 支持使用配置文件启动程序 ## 文档 请查看[文档](https://github.com/MartialBE/one-api/wiki) ## 当前支持的供应商 | 供应商 | Chat | Embeddings | Audio | Images | 其他 | | --------------------------------------------------------------------- | ------------------------ | ---------- | ------ | ----------- | ---------------------------------------------------------------- | | [OpenAI](https://platform.openai.com/docs/api-reference/introduction) | ✅ | ✅ | ✅ | ✅ | - | | [Azure OpenAI](https://oai.azure.com/) | ✅ | ✅ | ✅ | ✅ | - | | [Azure Speech](https://portal.azure.com/) | - | - | ⚠️ tts | - | - | | [Anthropic](https://www.anthropic.com/) | ✅ | - | - | - | - | | [Gemini](https://aistudio.google.com/) | ✅ | - | - | - | - | | [百度文心](https://console.bce.baidu.com/qianfan/overview) | ✅ | ✅ | - | - | - | | [通义千问](https://dashscope.console.aliyun.com/overview) | ✅ | ✅ | - | - | - | | [讯飞星火](https://console.xfyun.cn/) | ✅ | - | - | - | - | | [智谱](https://open.bigmodel.cn/overview) | ✅ | ✅ | - | ⚠️ 图片生成 | - | | [腾讯混元](https://cloud.tencent.com/product/hunyuan) | ✅ | - | - | - | - | | [百川](https://platform.baichuan-ai.com/console/apikey) | ✅ | ✅ | - | - | - | | [MiniMax](https://www.minimaxi.com/user-center/basic-information) | ✅ | ✅ | - | - | - | | [Deepseek](https://platform.deepseek.com/usage) | ✅ | - | - | - | - | | [Moonshot](https://moonshot.ai/) | ✅ | - | - | - | - | | [Mistral](https://mistral.ai/) | ✅ | ✅ | - | - | - | | [Groq](https://console.groq.com/keys) | ✅ | - | - | - | - | | [Amazon Bedrock](https://console.aws.amazon.com/bedrock/home) | ⚠️ 仅支持 Anthropic 模型 | - | - | - | - | | [零一万物](https://platform.lingyiwanwu.com/details) | ✅ | - | - | - | - | | [Cloudflare AI](https://ai.cloudflare.com/) | ✅ | - | ⚠️ stt | ⚠️ 图片生成 | - | | [Midjourney](https://www.midjourney.com/) | - | - | - | - | [midjourney-proxy](https://github.com/novicezk/midjourney-proxy) | | [Cohere](https://cohere.com/) | ✅ | - | - | - | - | | [Stability AI](https://platform.stability.ai/account/credits) | - | - | - | ⚠️ 图片生成 | - | | [Coze](https://www.coze.com/open/docs/chat?_lang=zh) | ✅ | - | - | - | - | | [Ollama](https://github.com/ollama/ollama) | ✅ | ✅ | - | - | - | ## 感谢 - 本程序使用了以下开源项目 - [one-api](https://github.com/songquanpeng/one-api)为本项目的基础 - [Berry Free React Admin Template](https://github.com/codedthemes/berry-free-react-admin-template)为本项目的前端界面 - [minimal-ui-kit](https://github.com/minimal-ui-kit/material-kit-react),使用了其中的部分样式 - [new api](https://github.com/Calcium-Ion/new-api),Midjourney 模块的代码来源于此 感谢以上项目的作者和贡献者 ## 交流群 ## 其他 Star History of MartialBE/one-api