OpenAI 接口管理 & 分发系统,支持 Azure、Anthropic Claude、Google PaLM 2 & Gemini、智谱 ChatGLM、百度文心一言、讯飞星火认知、阿里通义千问、360 智脑以及腾讯混元,可用于二次分发管理 key,仅单可执行文件,已打包好 Docker 镜像,一键部署,开箱即用. OpenAI key management & redistribution system, using a single API for all LLMs, and features an English UI.
Go to file
ZeroDeng 40a6a5d8d8
feat: add Alipay payment (#251)
增加支付宝当面付(扫码支付)和网页跳转支付功能
2024-06-06 01:11:06 +08:00
.github 📝 doc: update readme 2024-05-26 16:17:00 +08:00
bin chore: add model parameter to the time_test script (#245) 2023-07-04 18:13:59 +08:00
cli 🐛 fix: config file reading logic error 2024-05-29 14:55:53 +08:00
common feat: add payment (#132) (#250) 2024-06-05 13:30:12 +08:00
controller feat: add payment (#132) (#250) 2024-06-05 13:30:12 +08:00
cron 🔖 chore: Remove invalid code 2024-05-29 04:38:56 +08:00
i18n 🔖 chore: Update model test tips 2024-05-21 18:54:26 +08:00
middleware 🔖 chore: migration constants 2024-05-29 01:56:14 +08:00
model feat: add payment (#132) (#250) 2024-06-05 13:30:12 +08:00
payment feat: add Alipay payment (#251) 2024-06-06 01:11:06 +08:00
providers 🐛 fix: Tokens may not be counted in the stream below 2024-05-31 14:03:06 +08:00
relay 🔖 chore: Modify PreConsumedQuota Formula (#241) 2024-05-29 20:49:18 +08:00
router feat: add payment (#132) (#250) 2024-06-05 13:30:12 +08:00
types 🐛 fix: Tokens may not be counted in the stream below 2024-05-31 14:03:06 +08:00
web feat: add Alipay payment (#251) 2024-06-06 01:11:06 +08:00
.air.toml 更换web界面 2023-12-20 19:27:27 +08:00
.gitignore 🐛 fix: Outlook email authentication error (#212) 2024-05-24 20:02:45 +08:00
config.example.yaml feat: add imgur image upload (#247) 2024-06-01 12:11:31 +08:00
docker-compose.yml 🐛 fix: fix docker image error (#131) 2024-03-29 13:12:58 +08:00
Dockerfile ci: add stage caching to Dockerfile (#408) 2023-08-13 22:55:43 +08:00
Dockerfile-action 💚 ci: add arm64 image 2024-03-15 13:48:52 +08:00
go.mod feat: add Alipay payment (#251) 2024-06-06 01:11:06 +08:00
go.sum feat: add Alipay payment (#251) 2024-06-06 01:11:06 +08:00
LICENSE 📝 doc: update license and readme 2024-06-05 22:08:30 +08:00
main.go 🔖 chore: migration constants 2024-05-29 01:56:14 +08:00
makefile 💚 ci: Add .lock file 2024-04-02 14:16:08 +08:00
one-api.service chore: update one-api.service 2023-06-22 11:37:44 +08:00
pull_request_template.md 📝 doc: modify information (#57) 2024-01-26 18:41:11 +08:00
README.en.md 📝 doc: update license and readme 2024-06-05 22:08:30 +08:00
README.md 📝 doc: update license and readme 2024-06-05 22:08:30 +08:00
VERSION fix: add a blank VERSION file (#135) 2023-06-02 14:20:40 +08:00

English | 中文

One API

This project is based on one-api and has been developed for the second time.

license release docker docker GoReportCard

Please do not mix with the original version, because the new functions, the database is not compatible with the original version

For the sake of simplicity, after this project, except for updating the model list built into the program when adding a new supplier, the model list built into the program will not be updated under normal circumstances.

If you find that a new model is missing, please update the newly added model in Backend-Model Price-Update Price

Demo Site

Functional Changes

  • Brand new UI interface
  • Added user dashboard
  • Added administrator data analysis and statistics interface
  • Refactored the intermediary supplier module
  • Support for using Azure Speech to simulate TTS function
  • Channels can be configured with separate http/socks5 proxies
  • Support for dynamically returning user model lists
  • Support for custom speed testing models
  • Logs now include request duration
  • Support and optimize function calls for non-OpenAI models (supported models can be used directly in Lobe-Chat)
  • Support for custom completion rates
  • Support for full pagination and sorting
  • Support for Telegram bot
  • Support for models charged per use
  • Support for model wildcards
  • Support for starting the program using a configuration file
  • Support model price update
  • Support automatic acquisition of supplier models
  • Support chat only. If there is an incoming function call parameter after opening, the channel will be skipped.
  • Support payment

Documentation

Please refer to the documentation.

Current Supported Providers

Provider Chat Embeddings Audio Images Other
OpenAI -
Azure OpenAI -
Azure Speech - - ⚠️ tts - -
Anthropic - - - -
Gemini - - - -
百度文心 - - -
通义千问 - - -
讯飞星火 - - - -
智谱 - ⚠️ image -
腾讯混元 - - - -
百川 - - -
MiniMax - - -
Deepseek - - - -
Moonshot - - - -
Mistral - - -
Groq - - - -
Amazon Bedrock ⚠️ Only support Anthropic models - - - -
零一万物 - - - -
Cloudflare AI - ⚠️ stt ⚠️ image -
Midjourney - - - - midjourney-proxy
Cohere - - - -
Stability AI - - - ⚠️ image -
Coze - - - -
Ollama - - -

Acknowledgements

  • This program utilizes the following open-source projects:

Special thanks to the authors and contributors of the above projects.

Others

Star History of MartialBE/one-api