AI API Gateway Platform - 将 AI 订阅配额分发和管理
-
Codex CLI instructions fallback:当 GitHub 不可用时自动使用本地嵌入的 instructions,支持离线工作
-
退款余额"全部"按钮:一键填入完整余额,移除最小金额限制
-
增强 OpenCode 兼容性:模型规范化扩展到所有账号类型,支持 gpt-5-nano → gpt-5.1 转换
-
reasoning.effort 参数规范化:自动将 minimal 转换为 none
-
Session/Conversation ID fallback:支持从多个字段提取会话 ID,确保会话保持
-
Tool Call ID fallback:当 call_id 为空时使用 id 字段,确保 tool call 输出正确匹配
-
工具续链校验:完善 function_call_output 续链校验与引用匹配
-
速率限制优化:支持返回修复状态
-
修复退款金额精度问题:显示完整余额精度,避免四舍五入导致退款失败
-
修复 OAuth 请求 store 参数问题:强制 store=false,避免上游报错
-
补齐 Codex 指令回退与输入过滤
📥 Installation
Docker:
# Docker Hub
docker pull weishaw/sub2api:0.1.55
# GitHub Container Registry
docker pull ghcr.io/wei-shaw/sub2api:0.1.55One-line install (Linux):
curl -sSL https://raw.githubusercontent.com/Wei-Shaw/sub2api/main/deploy/install.sh | sudo bashManual download:
Download the appropriate archive for your platform from the assets below.