Sub2API is an AI API gateway platform for distributing and managing subscription quotas across multiple providers. It supports grouping, profit controls, and per-account quota handling, with ongoing releases noted in the latest changelog.
Collecting history — the radar snapshots this repo daily. The trend line appears after 3 days of data (1 so far).
What it is
Sub2API is described as an AI API Gateway Platform for Subscription Quota Distribution. It aims to distribute and manage AI subscription quotas across providers like Claude, OpenAI, Gemini, and Codex, enabling unified access and cost-sharing across accounts.
How it works
The project provides features to distribute quotas and manage access across multiple AI providers. Recent releases mention building blocks like grouping-level profit control, automatic revenue/discount propagation to upstream API keys, and rate-limiting panel APIs. It also includes user authentication and login flow enhancements (Passkey), and a Model Marketplace page. The changelog notes fixes around identity handling, request routing, and billing accuracy for streaming responses.
Getting started
The README highlights project requirements and tech stacks via badges: Go, Vue, PostgreSQL 15+, Redis 7+, Docker. It references multiple releases and a typical deployment pattern implied by the platform focus, but no explicit installation commands are included in the provided excerpt.
Recent releases
- v0.1.171 Sub2API 0.1.171 (2026-08-04): AI API Gateway Platform - 将 AI 订阅配额分发和管理
- New: 人机验证新增腾讯天御与阿里云验证码 2.0,后台合并为单张人机验证卡片按服务商单选
- Fix: Codex 请求相关故障判定与冷却表现
- v0.1.170 Sub2API 0.1.170 (2026-08-02): AI API Gateway Platform - 将 AI 订阅配额分发和管理
- New: 分组级利润控制(默认关闭)
- Extend: 上游计费倍率探测扩展到全部 API Key 平台账号并自动写回倍率
- Fix: Anthropic 流式响应中断时的计费问题
- v0.1.169 Sub2API 0.1.169 (2026-07-31): AI API Gateway Platform - 将 AI 订阅配额分发和管理
- 新增功能细节与修复
- v0.1.168 Sub2API 0.1.168 (2026-07-29): AI API Gateway Platform - 将 AI 订阅配额分发和管理
- 新增 Passkey 免密登录与模型广场页面
- 修复上游路径片段校验等安全问题
- v0.1.166 Sub2API 0.1.166 (2026-07-27): AI API Gateway Platform - 将 AI 订阅配额分发和管理
- 新增面板 API 限流保护
- 修复多项计费与统计准确性问题
Traction
- Stars: 35826
Behind the repo
- Language: Go
- License: LGPL-3.0
- Created: 2025-12-18
- Last push: 2026-08-04
- Repository topics include: 2api, antigravity2api, cc2api, claude, claude-code, codex, crs, crs2, gemini
Caveats
- License: LGPL-3.0
- Important notice in README about compliance with provider terms and potential usage risks






