AI API Gateway Platform - 将 AI 订阅配额分发和管理
Sub2API v2.25.6 修正免费 Fast 和免费 UltraFast 的成本统计,并修复简易模式下 API Key 的主分组约束。
- 免费加速成本。请求实际享受免费 Fast 或免费 UltraFast 时,后端读取请求时保存的 Standard 报价。账号统计按账号计费规则核算,利润运维按对应的采购倍率估算成本。例如普通价为 10、UltraFast 档位价为 60、采购倍率为 0.25 时,按普通价估算的采购成本为 2.50。已有供应商逐笔结算金额优先。PR #1087
- 历史统计。升级时,数据库迁移 402 更新统计视图,并将既有五分钟汇总加入后台重算队列。有有效普通价快照的历史请求可据此核算,缺少快照的请求沿用原有统计基数。客户历史扣款保留原值。
- 简易模式主分组。关闭站点的 API Key 多分组功能后,曾绑定多个分组的 Key 只能使用主分组账号。该限制覆盖模型可用性判断、候选选择、会话续接和最终转发,避免简易模式从平台账号池选到其他分组。PR #1086
📥 Installation
Docker:
# GitHub Container Registry
docker pull ghcr.io/ranxi2001/sub2api:2.25.6One-line install (Linux):
curl -fsSL https://raw.githubusercontent.com/ranxi2001/sub2api/v2.25.6/deploy/install.sh | sudo bash -s -- install -v v2.25.6Manual download:
Download the appropriate archive for your platform from the assets below.
K3s gateway upgrade (on each existing single-node host):
curl -fsSL https://raw.githubusercontent.com/ranxi2001/sub2api/v2.25.6/deploy/upgrade-k3s.sh | sudo bash -s -- --version v2.25.6Defaults: namespace tosky-canary, Deployment tosky-nerd; override with --namespace NAME --deployment NAME.
Upgrade every instance sharing Redis to this release.