Open Beta · 即将开放 Open Beta · Coming Soon

国产大模型
统一 API 网关
Unified API Gateway
for Chinese LLMs

使用你自己的 API Key,统一接入 DeepSeek、Qwen、GLM。
OpenAI-compatible,支持 Router、Failover 与多模型切换。
Use your own API keys to access DeepSeek, Qwen, and GLM through a single OpenAI-compatible endpoint — with smart routing and automatic failover.

你的应用 Your App
Token2Max Router
├──
DeepSeek
├──
Qwen
└──
GLM / Moonshot
Unified API BYOK Failover OpenAI-compatible
核心价值 Core Value

为什么不是再写一层 SDK? Why not another SDK wrapper?

Token2Max 是基础设施层,不是应用层封装。在网关侧统一解决协议、路由与可观测性。 Token2Max operates at the infrastructure layer — solving unified protocol, routing, and observability at the gateway level, not the application layer.

多模型统一协议 Unified Protocol

兼容 OpenAI SDK。无需为不同模型维护不同调用逻辑,一个接口覆盖全部。 OpenAI SDK compatible. One interface for all providers — no per-model SDK juggling.

🔑

用户自带 Key (BYOK) Bring Your Own Key

你的 Key,你的数据。Token2Max 不转售 Token,不绑定供应商,不托管业务数据。 Your keys, your data. We never resell tokens, lock you in, or store your business data.

🔄

自动故障切换 Auto Failover

某个模型限流或失败时,自动切换备用模型,保障服务稳定性,无需手动干预。 When a model is rate-limited or fails, automatically switch to a backup. Zero manual intervention.

支持模型 Supported Models

支持主流国产模型 Leading Chinese LLMs

持续接入更多已备案国产模型,所有调用均通过官方 API 完成。 Continuously integrating more licensed Chinese models. All calls go directly through official provider APIs.

DeepSeek
Qwen
GLM
Moonshot
MiniMax 即将 Soon
Doubao 即将 Soon
OpenAI 兼容 OpenAI Compatible

无需修改现有 OpenAI SDK Zero SDK Changes Required

example.py
from openai import OpenAI

client = OpenAI(
    api_key="t2m-your-key",
    base_url="https://api.token2max.com/v1"
)

response = client.chat.completions.create(
    model="deepseek-chat",
    messages=[{
        "role": "user",
        "content": "Hello"
    }]
)
# Auto failover to Qwen if DeepSeek fails

最低迁移成本 Minimal Migration Cost

  • 支持 OpenAI Chat Completions API OpenAI Chat Completions API
  • 支持 Streaming (SSE) Streaming (SSE) supported
  • Tool Calling 即将支持 Tool Calling coming soon
  • 只需更换 base_url 和 api_key Just swap base_url and api_key
  • 兼容所有 OpenAI 生态工具链 Compatible with full OpenAI ecosystem tooling
Router

不只是代理,更是智能 Router Not just a proxy — an intelligent router

基于策略的动态路由,让你的 AI Infra 更具弹性与可观测性。 Policy-driven dynamic routing for more resilient and observable AI infrastructure.

FALLBACK

故障切换路由 Fallback Routing

主模型失败或限流时,自动无感切换到备用模型。 Automatically switch to a backup when the primary model fails or is rate-limited.

COST

成本路由 Cost Routing

按 Token 成本智能选择最经济的模型 Provider。 Intelligently select the most cost-efficient provider based on token pricing.

LATENCY

延迟路由 Latency Routing

实时探测各 Provider 响应速度,自动选择最快节点。 Probe provider response times in real-time and route to the fastest available node.

RULE

规则路由 Rule-based Routing

可配置的模型策略,按请求类型、标签或自定义规则分发。 Configurable policies — dispatch by request type, tags, or custom rules.

安全与透明 Security & Trust

你的 Key,始终属于你 Your Keys, Always Yours

Token2Max 仅作为 API Router 工作,不触碰你的业务数据,不参与模型训练。 Token2Max functions only as an API router — we never touch your business data or participate in model training.

Token2Max 不做 Token2Max does NOT

  • 训练或托管模型Train or host models
  • 转售 TokenResell tokens
  • 读取或存储业务内容Read or store business content
  • 绑定特定供应商Lock you into a single vendor

Token2Max 做 Token2Max DOES

  • 仅做请求转发(API Router)Request forwarding only (API Router)
  • Key 加密存储,仅用于转发Encrypted key storage, used only for forwarding
  • 调用直达官方 APIDirect calls to official provider APIs
  • 提供完整请求日志与可观测性Full request logs and observability
适用场景 Use Cases

为 AI Infra 场景设计 Built for AI Infrastructure

🚀

AI SaaS 产品 AI SaaS Products

统一多模型调用,降低供应商绑定风险,快速接入新模型。 Unified multi-model calls, reduced vendor lock-in, rapid new model onboarding.

🏢

企业 AI 平台 Enterprise AI Platforms

内部模型治理、统一权限管理与 API 可观测性。 Internal model governance, unified access control, and API observability.

🤖

Agent Framework

动态模型调度,Agent 根据任务类型自动选择最合适的模型。 Dynamic model dispatch — agents automatically select the optimal model per task type.

💻

AI Coding

IDE 插件或 Copilot 工具的多模型后端,自动 Failover 保障代码补全稳定性。 Multi-model backend for IDE plugins and Copilot tools with auto-failover for stable completions.

FAQ

常见问题 Frequently Asked Questions

Token2Max 是否提供模型? Does Token2Max provide its own models?
不提供。Token2Max 仅作为 API Router,所有模型调用均通过用户自己的 API Key 直达各官方 Provider。 No. Token2Max is purely an API router. All model calls go through your own API keys directly to each official provider.
是否会托管或转售我的 API Key? Will my API keys be stored or resold?
不会。你的 Key 经加密存储,仅用于请求转发。我们不参与 Token 结算,不转售你的配额。 No. Keys are encrypted at rest and used only for request forwarding. We do not participate in token billing or resell your quota.
支持 OpenAI SDK 吗? Is the OpenAI SDK supported?
支持。只需将 base_url 指向 Token2Max 端点,api_key 换成 Token2Max 颁发的 Key,无需修改其他代码。 Yes. Point base_url to the Token2Max endpoint and replace your api_key. No other code changes needed.
什么时候可以开始使用? When can I start using Token2Max?
目前处于早期内测阶段,如有合作意向,欢迎发邮件至 yuanzhullc@163.com 与我们联系。 We're currently in early access. Feel free to reach out at yuanzhullc@163.com for collaboration inquiries.