github Wei-Shaw/sub2api v0.1.66
Sub2API 0.1.66

latest releases: v0.1.139, v0.1.138, v0.1.137...
4 months ago

AI API Gateway Platform - 将 AI 订阅配额分发和管理

  • 公告系统:管理员可创建公告,支持用户分组定向推送,Header 铃铛通知

  • /v1/usage 端点增强:返回完整用量统计(今日/累计请求数、token 用量、订阅/余额信息)

  • Redis TLS 支持:新增 REDIS_TLS 配置项,支持加密连接

  • Docker 一键部署:新增 docker-deploy.sh 脚本,自动生成安全密钥

  • 运维日志过滤:支持排除 USER_INACTIVE、INVALID_API_KEY 等业务类错误

  • Gemini API Key 账户跳过模型映射检查,直接透传

  • 用户搜索支持备注字段模糊查询

  • 管理员调整余额时的备注对用户可见

  • 修复 OAuth token 刷新后调度器缓存不一致问题

  • 修复 Gemini 接口缓存 token 统计不准确问题

  • 修复 OpsAdvancedSettings 类型定义缺失字段


📥 Installation

Docker:

# Docker Hub
docker pull weishaw/sub2api:0.1.66

# GitHub Container Registry
docker pull ghcr.io/wei-shaw/sub2api:0.1.66

One-line install (Linux):

curl -sSL https://raw.githubusercontent.com/Wei-Shaw/sub2api/main/deploy/install.sh | sudo bash

Manual download:
Download the appropriate archive for your platform from the assets below.

📚 Documentation

Don't miss a new sub2api release

NewReleases is sending notifications on new releases.