{"id":17454081,"url":"https://github.com/voapi/voapi","last_synced_at":"2026-01-20T03:04:25.194Z","repository":{"id":258072982,"uuid":"862891665","full_name":"VoAPI/VoAPI","owner":"VoAPI","description":"全新的高颜值/高性能的AI模型接口管理与分发系统，仅供个人学习使用，请勿用于任何商业用途，本项目基于NewAPI开发。A brand new high aesthetic/high-performance AI model interface management and distribution system is only for personal or internal management and distribution channels of enterprises. Please do not use it for commercial purposes. ","archived":false,"fork":false,"pushed_at":"2025-05-08T09:56:22.000Z","size":6667,"stargazers_count":663,"open_issues_count":20,"forks_count":60,"subscribers_count":12,"default_branch":"main","last_synced_at":"2025-05-08T10:46:50.061Z","etag":null,"topics":["chatgpt","new-api","one-api","openai","voapi"],"latest_commit_sha":null,"homepage":"https://demo.voapi.top","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/VoAPI.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-25T11:12:57.000Z","updated_at":"2025-05-08T09:56:09.000Z","dependencies_parsed_at":"2024-11-11T13:23:34.996Z","dependency_job_id":"1fb58a80-f325-474d-bb15-9c1783f2ba74","html_url":"https://github.com/VoAPI/VoAPI","commit_stats":{"total_commits":15,"total_committers":1,"mean_commits":15.0,"dds":0.0,"last_synced_commit":"ee4cad56571040609d41ea06db2547983e10478d"},"previous_names":["voapi/voapi","licoy/voapi"],"tags_count":86,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VoAPI%2FVoAPI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VoAPI%2FVoAPI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VoAPI%2FVoAPI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/VoAPI%2FVoAPI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/VoAPI","download_url":"https://codeload.github.com/VoAPI/VoAPI/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254394724,"owners_count":22063984,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chatgpt","new-api","one-api","openai","voapi"],"created_at":"2024-10-18T01:04:10.489Z","updated_at":"2026-01-20T03:04:25.184Z","avatar_url":"https://github.com/VoAPI.png","language":"Go","funding_links":[],"categories":["Openai"],"sub_categories":[],"readme":"简体中文 | [English](./README_EN.md)\n\n\u003cdiv align=\"center\"\u003e\n\u003cimg alt=\"logo\" height=\"120\" src=\"./images/logo.png\" width=\"120\"/\u003e\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n\u003ch1\u003eVoAPI\u003c/h1\u003e\n\u003cp\u003e🎉 全新下一代高颜值、高性能、高扩展的智能AI大模型API聚合分发系统\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"https://www.producthunt.com/products/voapi-next-generation-ai-gateway?embed=true\u0026utm_source=badge-featured\u0026utm_medium=badge\u0026utm_source=badge-voapi\" target=\"_blank\"\u003e\u003cimg src=\"https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=1023360\u0026theme=light\u0026t=1759824265149\" alt=\"VoAPI - Next\u0026#0045;generation\u0026#0032;AI\u0026#0032;model\u0026#0032;intelligent\u0026#0032;gateway | Product Hunt\" style=\"width: 250px; height: 54px;\" width=\"250\" height=\"54\" /\u003e\u003c/a\u003e\u003c/p\u003e\n\u003c/div\u003e\n\n\n## 介绍\n|功能|社区版|Pro版|\n|-|-|-|\n|基础功能|✅|✅|\n|用户名、邮箱注册/登录|✅|✅|\n|多用户管理|✅|✅|\n|规则引擎支持（ES5/ES6规范的JS语法引擎自定义规则）|✅|✅|\n|API数据转发核心模块|✅|✅|\n|API令牌|✅|✅|\n|多余额机制|✅|✅|\n|多货币机制（内置两种，Pro支持自定义）|✅|✅|\n|每日签到|✅|✅|\n|多用户等级（内置5层等级）|✅|✅|\n|用户实时RPM、TPM支持|✅|✅|\n|渠道实时RPM、TPM支持|✅|✅|\n|渠道单密钥实时RPM、TPM支持|✅|✅|\n|训练场自定义多外部页面嵌入|✅|✅|\n|远程模型、厂商数据同步|✅|✅|\n|渠道分组支持|✅|✅|\n|渠道分组固定倍率、定时倍率支持|✅|✅|\n|渠道重试|✅|✅|\n|渠道密钥错误禁用（可禁用单密钥、或密钥中本次请求的模型）|✅|✅|\n|渠道密钥错误禁用自动恢复机制|✅|✅|\n|渠道请求熔断超时机制|✅|✅|\n|渠道IP、UA规则限制|✅|✅|\n|渠道全局/独立代理配置，支持HTTP[S]、Socket5协议|✅|✅|\n|兑换码系统|✅|✅|\n|自定义菜单|✅|✅|\n|第三方登录（Github、Gitee、LiunxDO）|✅|✅|\n|安全过滤|✅|✅|\n|API线路展示与测速|✅|✅|\n|API节点状态监控展示|✅|✅|\n|自定义SEO、主题色调与全局样式、脚本等|✅|✅|\n|一键第三方系统数据迁移导入|✅|✅|\n|多优先级计费方式|✅|✅|\n|日志分表（可按照天/周/月/年四个维度进行自动分表）|✅|✅|\n|i18n国际化（已内置中文、英文）|✅|✅|\n|模型多条件计费（阶梯计费）支持，且可按照固定价格和基础倍率两种模式计费|✅|✅|\n|Pro专属功能，暂不公布|❌|✅|\n|实际功能不止上述描述，快去体验体验吧～|✅|✅|\n\n## 部署\n### 架构镜像\n- Linux amd64: `voapi/voapi`\n- Linux arm64: `voapi/voapi-linux-arm64`\n\n### Docker Compose部署\n\u003e linux-arm64用户请将docker-compose.yml中的镜像替换为`voapi/voapi-linux-arm64`\n```sh \ngit clone https://github.com/VoAPI/VoAPI.git\ncd VoAPI\ndocker-compose up -d\n```\n部署完成后，访问 http://localhost:6800 （请根据实际情况修改域名和端口号）即可进入系统，注册第一个用户即为管理员账号\n\n### Docker 单容器部署\n\u003e 请确保您已经准备好了MySQL和Redis数据库，并且正确配置了config.yml文件\n\n\u003e linux-arm64用户请将镜像替换为`voapi/voapi-linux-arm64`\n```sh\ndocker run -d --name voapi --restart always -p 6800:6800 -e TZ=Asia/Shanghai -v ./config.yml:/config.yml -v ./file:/file -v ./public:/public voapi/voapi:latest\n```\n\n## 配置文件\n- config.yml\n```yaml\napp:\n  port: 6800 # 应用监听端口\ndb:\n  dirver: mysql #为空则默认使用mysql，可选mysql,pg\n  log-dirver: mysql #为空则默认使用mysql，可选mysql,pg,clickhouse\nmysql: #当db.dirver/db.log-dirver为空或mysql时生效\n  dsn: root:@tcp(db-voapi:3306)/voapi # 主数据据库\n  log-dsn: root:@tcp(db-voapi:3306)/voapi-log # 日志分离数据库\n  log-body-dsn: root:@tcp(db-voapi:3306)/voapi-body-log # 请求体日志分离数据库\n  log-sharding: # 日志分表方式，支持 day/week/month/year 四种方式\n    enable: false\n    mode: y # d = day, w = week, m = month, y = year\npg: #当db.dirver/db.log-dirver为pg时生效\n  dsn: host=127.0.0.1 port=5432 user=default dbname=voapi # 主数据据库\n  log-dsn: host=127.0.0.1 port=5432 user=default dbname=voapi # 日志分离数据库\n  log-body-dsn: host=127.0.0.1 port=5432 user=default dbname=voapi # 请求体日志分离数据库\n  log-sharding: # 日志分表方式，支持 day/week/month/year 四种方式\n    enable: false\n    mode: y # d = day, w = week, m = month, y = year\nclickhouse: #当db.dirver/db.log-dirver为clickhouse时生效\n  log-dsn: clickhouse://default:password@127.0.0.1:9000/voapi?dial_timeout=10s\u0026read_timeout=20s # 日志分离数据库\n  log-body-dsn: clickhouse://default:password@127.0.0.1:9000/voapi?dial_timeout=10s\u0026read_timeout=20s # 请求体日志分离数据库\nredis:\n  dsn: redis://redis-voapi:6379/0\n  pool-size: 0 #redis连接池大小，等于0时使用默认值，默认值为CPU数量*100\n```\n\n## 后台快速配置第一个渠道\n- 注册的第一个用户即为管理员账号，登录后点击右上角紫色的齿轮图标进入后台管理界面\n- 先到「模型供应商」模块下的「模型列表」、「供应商列表」中点击远程同步，同步官方预置的模型和供应商\n- 然后到「模型供应商」模块下的「规则引擎」新建一个空白规则引擎，名称随意，非必填内容无需填写，则为完全透传\n- 然后就可以去「渠道管理」-「渠道分组」中新建一个渠道分组\n- 最后就可以在「渠道管理」-「渠道列表」中新建一个渠道了，选择刚才新建的规则引擎和渠道分组即可\n\n## AI客户端推荐\n\u003e [!NOTE]\n\u003e 🌻 GoAmzAI支持众多强大的功能：\n\u003e - 最低1C1G的服务器就能流畅运行\n\u003e - 宝塔极速可视化部署、配置简单易懂\n\u003e - 站点完全自适应支持PC、平板、手机\n\u003e - 低内存占用，Golang开发原生高并发支持\n\u003e - 包含AI对话、AI绘画、AI音乐、AI视频、AI生成PPT、PDF解析对话、AI应用支持等众多AI模块\n\u003e - 具有非常完善的运营机制，包括但不限于套餐系统、兑换码系统、邀请奖励、签到福利、推广返利等等\n\u003e - [🫱 点我立即了解及体验](https://d.goamzai.com)\n\n## 加群交流\n\u003e 您也可以扫描下方二维码加入QQ交流群以获取最新的开发动态和相关事件\n\u003e \n\u003e 点击链接加入群聊：https://qm.qq.com/q/QFibUxMPEQ\n\n\u003cimg width=\"235\" alt=\"image\" src=\"https://github.com/user-attachments/assets/d4798bae-03e5-4fce-aa03-e6dadd9ac748\"\u003e\n\n## 界面截图\n### PC端\n![](./images/dash.png)\n![](./images/1.png)\n![](./images/2.png)\n![](./images/3.png)\n![](./images/4.png)\n![](./images/5.png)\n![](./images/6.png)\n![](./images/7.png)\n![](./images/8.png)\n![](./images/9.png)\n![](./images/10.png)\n![](./images/11.png)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoapi%2Fvoapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvoapi%2Fvoapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvoapi%2Fvoapi/lists"}