v0.2.17

Wei-Shaw/sub2apiv0.2.17Oct 16, 2026by github-actions[bot]

Upgrading?

AI Summary

This release introduces support for Gemini 4 Argon with billing and directory synchronization, enhances Gemini compatibility with reasoning effort and streaming, and addresses critical financial and payment issues. It also removes GPT-5.5 support for ChatGPT accounts.

Key Highlights

  • Supports Gemini 4 Argon (low/medium/high) with billing and model directory synchronization.
  • Enhances Gemini compatibility with reasoning effort configuration and streaming response summaries.
  • Fixes critical financial chain issues including payment refunds, 易支付 (ZPay) order queries, and Alipay refunds.
  • Removes GPT-5.5 support from ChatGPT OAuth and SetupToken accounts.

Breaking Changes

  • ChatGPT OAuth and SetupToken accounts no longer schedule or display gpt-5.5 models; requests return model_not_found if no alternative accounts are available.

New Features

  • Added support for gemini-4-argon model variants (low, medium, high) with pricing.
  • Implemented Antigravity model directory sync to capture context windows, image inputs, and reasoning capabilities.
  • Enabled reasoning_effort/thinking configuration in Gemini-compatible chat/messages endpoints.
  • Added configurable minimum output tokens (gateway.min_output_tokens).
  • Added web search simulation support for OpenAI API Key accounts.

Full Release Notes

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

Antigravity / Gemini 支持 Gemini 4 Argon(含计费与上游模型目录同步),Gemini 兼容入口支持思考档位与流式思考摘要;同时集中修复支付退款、易支付查单等多处资金链路问题。

## 新增功能

- Gemini 4 Argon:Antigravity、Gemini API、Gemini CLI 支持 gemini-4-argon(low/medium/high),并补齐计费价格
- Antigravity 模型目录:同步上游模型目录时按账号实际端点拉取,并保存上下文窗口、图像输入、思考等能力信息
- Gemini 兼容入口思考档位:chat/messages 兼容入口转发 reasoning_effort / thinking 为 Gemini 思考配置,流式返回思考摘要
- 最小输出 token 可配置:新增 gateway.min_output_tokens(默认 128,最低 16),作用于各协议转换路径
- OpenAI API Key 账号支持 Web Search 模拟:Claude Code 走 OpenAI 分组的 /v1/messages 也可启用 web_search 模拟

## 优化改进

- Vertex 共享容量不足的 429 不再冷却账号,改为同号退避重试,避免绑定显式缓存的请求直接 503
- Vertex 服务账号已被删除时将账号置为 error 并换号,不再持续调度返回 502
- 账号管理页恢复筛选项直接平铺展示,并优化窄屏布局

## Bug 修复

- 修复易支付(彩虹易支付 / ZPay)查单参数无法被识别、数字字符串解析失败的问题,回调确认后再入账
- 修复退款处理中余额/订阅扣减时机问题:退款待定期间保留扣减,网关确认失败后原子回退
- 修复支付宝退款无法查询状态的问题,查询异常保持待定、未找到记录延迟判定失败
- 修复不支持的订单类型导致支付回调无法确认的问题,下单时校验订单类型
- 修复 Stripe 支付页 client_secret 经 URL 传递的问题,改为从本地订单快照读取
- 修复 GPT-5.5 退役后仍向 ChatGPT 订阅账号调度和展示该模型的问题(API Key 账号不受影响)
- 修复 Responses 对象缺少 created_at 导致 grok-build 等客户端反序列化失败的问题
- 修复 composite 分组模型归属歧义时 OpenAI OAuth 凭据可能误入 Anthropic 管线的问题
- 修复自适应账号在原生 Anthropic 网关和 count_tokens 路径忽略 Anthropic 协议 base URL 的问题
- 修复同一用户多个 Codex 工作区导入时互相覆盖的问题
- 修复 Antigravity 丢失 tool_result 内图片、原生 Gemini functionCall/thoughtSignature,以及 composite 分组 /v1beta 路由被拒的问题
- 修复 Antigravity Claude 5.5 档位模型按子串匹配被超额计费的问题,并保留旧版默认模型透传
- 修复 Gemini 首次 401 在同一请求内被重复判定导致账号直接停用的问题
- 修复智谱 GLM Coding Plan 5 小时/每周用量窗口标反的问题

## 破坏性变更

- GPT-5.5 订阅退役:ChatGPT OAuth / SetupToken 账号不再调度 gpt-5.5,模型列表中也不再展示;若无可用账号,请求返回 model_not_found。API Key 账号不受影响

## 升级指南

- 使用 ChatGPT 订阅账号承接 gpt-5.5 的站点,请检查账号模型映射与默认模型,将 gpt-5.5 显式映射到可用的替代模型,或改由 API Key 账号承接



---

## 📥 Installation

**Docker:**
```bash
# Docker Hub
docker pull weishaw/sub2api:0.2.17

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

**One-line install (Linux):**
```bash
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

- [GitHub Repository](https://github.com/Wei-Shaw/sub2api)
- [Installation Guide](https://github.com/Wei-Shaw/sub2api/blob/main/deploy/README.md)

Related Repositories