Wei-Shaw / sub2api
Wei-Shaw / sub2api
Sub2API AI API Gateway Platform for Subscription Quota Distribution
Sub2API AI API 网关平台:订阅额度分发解决方案
⚠️ Important Notice Please read the following carefully before using this project: ⚠️ 重要提示 在使用本项目前,请仔细阅读以下内容:
🚨 Terms of Service Risk: Using this project may violate the terms of service of Anthropic and other upstream providers. Please review the relevant providers’ user agreements before use; all risks arising from such use are borne solely by the user. 🚨 服务条款风险: 使用本项目可能违反 Anthropic 及其他上游提供商的服务条款。请在使用前查阅相关提供商的用户协议;因使用本项目而产生的一切风险由用户自行承担。
⚖️ Compliant Use: Use this project only in compliance with the laws and regulations of your country or region. Any unlawful use is strictly prohibited. ⚖️ 合规使用: 请仅在遵守您所在国家或地区法律法规的前提下使用本项目。严禁任何非法用途。
📖 Disclaimer: This project is provided for technical learning and research purposes only. The authors assume no liability for account bans, service interruptions, data loss, or any other direct or indirect damages resulting from the use of this project. 📖 免责声明: 本项目仅供技术学习与研究使用。作者不对因使用本项目而导致的账号封禁、服务中断、数据丢失或任何其他直接或间接损失承担任何责任。
🚫 No Commercial Authorization: The developers of this project have never authorized any individual or organization to conduct any form of commercial operation based on this project. Any commercial activity conducted in the name of or based on this project is unrelated to this project and its developers, and all resulting disputes, losses, and legal liabilities shall be borne solely by the party conducting such activity. 🚫 无商业授权: 本项目开发者从未授权任何个人或组织基于本项目进行任何形式的商业运营。任何以本项目名义或基于本项目进行的商业活动均与本项目及其开发者无关,由此产生的一切纠纷、损失及法律责任由开展该活动的当事人自行承担。
❤️ Sponsors
❤️ 赞助商
Thanks to CCTK.AI for sponsoring this project! CCTK.AI is an AI API gateway focused on stability and cost-effectiveness, offering fast relay services for Claude, OpenAI, Gemini, and other popular models. It works seamlessly with Claude Code, Codex, and other mainstream coding tools, delivering the same model capabilities at a fraction of the official cost. Register via this link for faster, more stable, and more affordable AI API access. One API, every top model! 感谢 CCTK.AI 对本项目的赞助! CCTK.AI 是一家专注于稳定性和性价比的 AI API 网关,为 Claude、OpenAI、Gemini 等主流模型提供高速中转服务。它与 Claude Code、Codex 及其他主流编程工具无缝兼容,以官方价格的一小部分提供相同的模型能力。通过此链接注册,获取更快、更稳、更实惠的 AI API 访问体验。一个 API,连接所有顶级模型!
OpenModel is a production-grade, high-availability AI API gateway that makes your applications truly fast and stable: automatic failover, smart routing to the best-performing channel, and a production-grade SLA. An SLA that far surpasses any single provider — making stability your core competitive advantage. Works directly with Claude Code, Codex, and Gemini CLI. Register via this link to get started. OpenModel 是一款生产级、高可用的 AI API 网关,让您的应用真正实现高速与稳定:支持自动故障转移、智能路由至最优通道,并提供生产级 SLA。其 SLA 远超任何单一提供商,让稳定性成为您的核心竞争优势。可直接配合 Claude Code、Codex 和 Gemini CLI 使用。通过此链接注册即可开始使用。
Thanks to ETok.ai for sponsoring this project! ETok.ai is dedicated to building a one-stop AI programming tool service platform. We offer professional Claude Code packages and technical community services, with support for Google Gemini and OpenAI Codex. Through carefully designed plans and a professional tech community, we provide developers with reliable service guarantees and continuous technical support, making AI-assisted programming a true productivity tool. Click here to register! 感谢 ETok.ai 对本项目的赞助! ETok.ai 致力于打造一站式 AI 编程工具服务平台。我们提供专业的 Claude Code 套餐及技术社区服务,支持 Google Gemini 和 OpenAI Codex。通过精心设计的方案和专业的技术社区,我们为开发者提供可靠的服务保障和持续的技术支持,让 AI 辅助编程成为真正的生产力工具。点击此处注册!
Thanks to APIKEY.FUN for sponsoring this project! APIKEY.FUN is one of the core contributors to the sub2api open-source project, dedicated to providing open, stable, and cost-effective AI API access. The platform supports API relay services for Claude, OpenAI, Gemini, and other popular models, with pricing starting from as low as 7% of the original rate. Register via the exclusive link: APIKEY to enjoy up to 5% off on all recharges. 感谢 APIKEY.FUN 对本项目的赞助! APIKEY.FUN 是 sub2api 开源项目的核心贡献者之一,致力于提供开放、稳定且高性价比的 AI API 访问服务。平台支持 Claude、OpenAI、Gemini 等主流模型的中转服务,价格低至官方费率的 7%。通过专属链接 APIKEY 注册,所有充值均可享受最高 5% 的折扣。
Thanks to AIGoCode for sponsoring this project! AIGoCode is an all-in-one platform that integrates Claude Code, Codex, and the latest Gemini models, providing you with stable, efficient, and highly cost-effective AI coding services. The platform offers flexible subscription plans, zero risk of account suspension, direct access with no VPN required, and lightning-fast responses. AIGoCode has prepared a special benefit for sub2api users: if you register via this link, you’ll receive an extra 10% bonus credit on your first top-up! 感谢 AIGoCode 对本项目的赞助! AIGoCode 是一个集成了 Claude Code、Codex 和最新 Gemini 模型的全能平台,为您提供稳定、高效且极具性价比的 AI 编程服务。平台提供灵活的订阅方案,无账号封禁风险,无需 VPN 即可直接访问,响应速度极快。AIGoCode 为 sub2api 用户准备了特别福利:通过此链接注册,首次充值即可额外获得 10% 的赠金!
Huge thanks to BmoPlus for sponsoring this project! BmoPlus is a highly reliable AI account provider built strictly for heavy AI users and developers. They offer rock-solid, ready-to-use accounts and official top-up services for ChatGPT Plus / ChatGPT Pro (Full Warranty) / Claude Pro / Super Grok / Gemini Pro. By registering and ordering through BmoPlus - Premium AI Accounts & Top-ups, users can unlock the mind-blowing rate of 10% of the official GPT subscription price (90% OFF). 衷心感谢 BmoPlus 对本项目的赞助! BmoPlus 是一家为重度 AI 用户和开发者打造的高可靠 AI 账号提供商。他们提供稳定、即开即用的账号及官方充值服务,涵盖 ChatGPT Plus / ChatGPT Pro(全保)/ Claude Pro / Super Grok / Gemini Pro。通过 BmoPlus - Premium AI Accounts & Top-ups 注册并下单,用户可以解锁仅为官方 GPT 订阅价格 10%(即 1 折)的惊人优惠。
Thanks to Bestproxy for sponsoring this project! Bestproxy provides high-purity residential IPs with dedicated one-IP-per-account support. By combining real home networks with fingerprint isolation, it enables link environment isolation and reduces the probability of association-based risk control. 感谢 Bestproxy 对本项目的赞助! Bestproxy 提供高纯度住宅 IP,并支持“一账号一 IP”的专属配置。通过结合真实家庭网络与指纹隔离技术,实现链路环境隔离,降低关联风控的概率。
Thanks to PatewayAI for sponsoring this project! PatewayAI is a premium API relay built for heavy AI developers, offering the full Claude and Codex series sourced 100% from official providers, with transparent token-level billing. Enterprise plans include high concurrency, dedicated management, contracts, and invoicing. Register now to get $3 in trial credits, top-ups from 60% off, and referral bonuses up to $150. 感谢 PatewayAI 对本项目的赞助! PatewayAI 是专为重度 AI 开发者打造的高级 API 中转平台,提供 100% 源自官方的完整 Claude 和 Codex 系列模型,并支持透明的 Token 级计费。企业版方案包含高并发支持、专属管理、合同及发票服务。立即注册即可获得 3 美元试用额度,充值低至 4 折,推荐奖励最高可达 150 美元。
Thanks to PPToken.cc for sponsoring this project! PPToken.cc specializes in GPT model API relay services, supporting Codex, Claude Code, OpenAI-compatible clients, and Gemini CLI integration. Top-ups are 1:1 (¥1 = $1 credit); GPT models start at 0.16x rate multiplier, with overall cost at roughly 2.2% of official pricing and first-token latency around 1 second — ideal for developers seeking low-cost, high-speed access to GPT model capabilities. Technical support: 24/7 real human responses (no bots), @tech in the group chat and get a reply within 10 minutes. Sponsor benefit: the first 200 users who register via the exclusive registration link and enter promo code SUB2API can claim free Codex / Claude Code trial credits — no minimum spend, no card required.
感谢 PPToken.cc 对本项目的赞助! PPToken.cc 专注于 GPT 模型 API 中转服务,支持 Codex、Claude Code、OpenAI 兼容客户端及 Gemini CLI 集成。充值比例为 1:1(1 元人民币 = 1 美元额度);GPT 模型费率低至 0.16 倍,综合成本约为官方价格的 2.2%,首字延迟约 1 秒——非常适合追求低成本、高速度访问 GPT 模型能力的开发者。技术支持:7x24 小时真人响应(无机器人),在群聊中 @tech 即可在 10 分钟内获得回复。赞助福利:前 200 名通过专属链接注册并输入优惠码 SUB2API 的用户,可领取免费的 Codex / Claude Code 试用额度——无最低消费要求,无需绑定信用卡。
Thanks to Veilx for sponsoring this project! Veilx CDN is purpose-built for large-scale AI API traffic, deeply optimized for relay services and call chains across OpenAI, Claude, Gemini, and scenarios like chat, image generation, embeddings, and streaming — delivering lower latency and higher stability under heavy concurrency. It also offers China three-network optimized return lines, making it ideal for… 感谢 Veilx 对本项目的赞助! Veilx CDN 专为大规模 AI API 流量设计,针对 OpenAI、Claude、Gemini 的中转服务及调用链进行了深度优化,覆盖聊天、图像生成、Embedding 及流式传输等场景,在高并发下提供更低的延迟和更高的稳定性。此外,它还提供中国三网优化回程线路,非常适合……