Sub2API Docs

统一 AI API 接入文档

Sub2API 提供统一的 AI API 网关,支持 OpenAI、Anthropic、Gemini、Codex、MiniMax、Xiaomi MiMo、GLM、Kimi 等不同模型和接口风格。你只需要配置统一的 Base URL 和 API Key,就可以在兼容客户端中调用对应分组支持的模型。

Core Info
Docs 页面
/sub2api-docs/
API Base URL
https://sub2api.eaislab.com
模型清单确认时间
2026-04-28

这是静态文档清单,不是实时状态页。如果后续后台模型或账号池调整,需要手动更新本页面。

Quick Start

快速接入

统一使用 https://sub2api.eaislab.com。如果客户端要求填写 OpenAI Base URL,通常填写 https://sub2api.eaislab.com/v1

Base URL

https://sub2api.eaislab.com
https://sub2api.eaislab.com/v1

认证方式

Authorization: Bearer sk-xxxx

常用接口

POST /v1/chat/completions
POST /responses
GET /v1/models

OpenAI 兼容示例

curl https://sub2api.eaislab.com/v1/chat/completions \
 -H "Authorization: Bearer $SUB2API_KEY" \
 -H "Content-Type: application/json" \
 -d '{
 "model": "gpt-5.5",
 "messages": [
   {"role": "user", "content": "hello"}
 ]
 }'

Anthropic 兼容示例

curl https://sub2api.eaislab.com/v1/messages \
 -H "Authorization: Bearer $SUB2API_KEY" \
 -H "Content-Type: application/json" \
 -d '{
 "model": "claude-opus-4-7",
 "max_tokens": 1024,
 "messages": [
   {"role": "user", "content": "hello"}
 ]
 }'

Gemini 兼容示例

curl https://sub2api.eaislab.com/v1beta/models/gemini-3.1-pro-preview:generateContent \
 -H "x-goog-api-key: $SUB2API_KEY" \
 -H "Content-Type: application/json" \
 -d '{
 "contents": [{
   "role": "user",
   "parts": [{"text": "hello"}]
 }]
 }'
Model Plaza

模型广场

每张卡片对应一个推荐展示给用户的分组。页面不展示账号池、额度、后台诊断或实时可用性。

OpenAI compatible

GPT 分组

41 models

OpenAI-compatible 客户端、Codex / OpenCode / Cursor / Continue、通用文本、代码生成与图片生成相关能力。

chatgpt-4o-latest
gpt-3.5-turbo
OpenAI: GPT-3.5 Turbo 16K context · text->text

GPT-3.5 Turbo is OpenAI's fastest model. It can understand and generate natural language or code, and is optimized for chat and traditional completion tasks. Training data up to…

gpt-3.5-turbo-0125gpt-3.5-turbo-1106
gpt-3.5-turbo-16k
OpenAI: GPT-3.5 Turbo 16k 16K context · text->text

This model offers four times the context length of gpt-3.5-turbo, allowing it to support approximately 20 pages of text in a single request at a higher cost. Training data: up...

gpt-4
OpenAI: GPT-4 8K context · text->text

OpenAI's flagship model, GPT-4 is a large-scale multimodal language model capable of solving difficult problems with greater accuracy than previous models due to its broader gen…

gpt-4-turbo
OpenAI: GPT-4 Turbo 128K context · text+image->text

The latest GPT-4 Turbo model with vision capabilities. Vision requests can now use JSON mode and function calling. Training data: up to December 2023.

gpt-4-turbo-preview
OpenAI: GPT-4 Turbo Preview 128K context · text->text

The preview GPT-4 model with improved instruction following, JSON mode, reproducible outputs, parallel function calling, and more. Training data: up to Dec 2023. **Note:** heavi…

gpt-4.1
OpenAI: GPT-4.1 1048K context · text+image+file->text

GPT-4.1 is a flagship large language model optimized for advanced instruction following, real-world software engineering, and long-context reasoning. It supports a 1 million tok…

gpt-4.1-mini
OpenAI: GPT-4.1 Mini 1048K context · text+image+file->text

GPT-4.1 Mini is a mid-sized model delivering performance competitive with GPT-4o at substantially lower latency and cost. It retains a 1 million token context window and scores …

gpt-4.1-nano
OpenAI: GPT-4.1 Nano 1048K context · text+image+file->text

For tasks that demand low latency, GPT‑4.1 nano is the fastest and cheapest model in the GPT-4.1 series. It delivers exceptional performance at a small size with its 1 million...

gpt-4.5-preview
gpt-4o
OpenAI: GPT-4o 128K context · text+image+file->text

GPT-4o ("o" for "omni") is OpenAI's latest AI model, supporting both text and image inputs with text outputs. It maintains the intelligence level of [GPT-4 Turbo](/models/openai…

gpt-4o-2024-08-06
OpenAI: GPT-4o (2024-08-06) 128K context · text+image+file->text

The 2024-08-06 version of GPT-4o offers improved performance in structured outputs, with the ability to supply a JSON schema in the respone_format. Read more [here](https://open…

gpt-4o-2024-11-20
OpenAI: GPT-4o (2024-11-20) 128K context · text+image+file->text

The 2024-11-20 version of GPT-4o offers a leveled-up creative writing ability with more natural, engaging, and tailored writing to improve relevance & readability. It’s also bet…

gpt-4o-audio-preview
gpt-4o-mini
OpenAI: GPT-4o-mini 128K context · text+image+file->text

GPT-4o mini is OpenAI's newest model after [GPT-4 Omni](/models/openai/gpt-4o), supporting both text and image inputs with text outputs. As their most advanced small model, it i…

gpt-4o-mini-2024-07-18
OpenAI: GPT-4o-mini (2024-07-18) 128K context · text+image+file->text

GPT-4o mini is OpenAI's newest model after [GPT-4 Omni](/models/openai/gpt-4o), supporting both text and image inputs with text outputs. As their most advanced small model, it i…

gpt-4o-realtime-preview
gpt-5.2
OpenAI: GPT-5.2 400K context · text+image+file->text

GPT-5.2 is the latest frontier-grade model in the GPT-5 series, offering stronger agentic and long context perfomance compared to GPT-5.1. It uses adaptive reasoning to allocate…

gpt-5.2-2025-12-11gpt-5.2-chat-latest
gpt-5.2-pro
OpenAI: GPT-5.2 Pro 400K context · text+image+file->text

GPT-5.2 Pro is OpenAI’s most advanced model, offering major improvements in agentic coding and long context performance over GPT-5 Pro. It is optimized for complex tasks that re…

gpt-5.2-pro-2025-12-11
gpt-5.3-codex
OpenAI: GPT-5.3-Codex 400K context · text+image+file->text

GPT-5.3-Codex is OpenAI’s most advanced agentic coding model, combining the frontier software engineering performance of GPT-5.2-Codex with the broader reasoning and professiona…

gpt-5.3-codex-spark
gpt-5.4
OpenAI: GPT-5.4 1050K context · text+image+file->text

GPT-5.4 is OpenAI’s latest frontier model, unifying the Codex and GPT lines into a single system. It features a 1M+ token context window (922K input, 128K output) with support f…

gpt-5.4-2026-03-05
gpt-5.4-mini
OpenAI: GPT-5.4 Mini 400K context · text+image+file->text

GPT-5.4 mini brings the core capabilities of GPT-5.4 to a faster, more efficient model optimized for high-throughput workloads. It supports text and image inputs with strong per…

gpt-5.5
OpenAI: GPT-5.5 1050K context · text+image+file->text

GPT-5.5 is OpenAI’s frontier model designed for complex professional workloads, building on GPT-5.4 with stronger reasoning, higher reliability, and improved token efficiency on…

gpt-image-1gpt-image-1.5gpt-image-2
o1
OpenAI: o1 200K context · text+image+file->text

The latest and strongest model family from OpenAI, o1 is designed to spend more time thinking before responding. The o1 model series is trained with large-scale reinforcement le…

o1-minio1-preview
o1-pro
OpenAI: o1-pro 200K context · text+image+file->text

The o1 series of models are trained with reinforcement learning to think before they answer and perform complex reasoning. The o1-pro model uses more compute to think harder and…

o3
OpenAI: o3 200K context · text+image+file->text

o3 is a well-rounded and powerful model across domains. It sets a new standard for math, science, coding, and visual reasoning tasks. It also excels at technical writing and ins…

o3-mini
OpenAI: o3 Mini 200K context · text+file->text

OpenAI o3-mini is a cost-efficient language model optimized for STEM reasoning tasks, particularly excelling in science, mathematics, and coding. This model supports the `reason…

o3-pro
OpenAI: o3 Pro 200K context · text+image+file->text

The o-series of models are trained with reinforcement learning to think before they answer and perform complex reasoning. The o3-pro model uses more compute to think harder and …

o4-mini
OpenAI: o4 Mini 200K context · text+image+file->text

OpenAI o4-mini is a compact reasoning model in the o-series, optimized for fast, cost-efficient performance while retaining strong multimodal and agentic capabilities. It suppor…

普通文本和代码任务优先使用 gpt-5.5、gpt-5.4、gpt-5.4-mini、gpt-5.3-codex。图片相关任务可以尝试 gpt-image-2。

Anthropic compatible

Claude / Anthropic 分组

6 models

Anthropic-compatible 客户端、Claude Code / Claude 风格调用、长文本与复杂推理。

claude-opus-4-5-20251101
Anthropic: Claude Opus 4.5 200K context · text+image+file->text

Claude Opus 4.5 is Anthropic’s frontier reasoning model optimized for complex software engineering, agentic workflows, and long-horizon computer use. It offers strong multimodal…

claude-opus-4-6
Anthropic: Claude Opus 4.6 1000K context · text+image+file->text

Opus 4.6 is Anthropic’s strongest model for coding and long-running professional tasks. It is built for agents that operate across entire workflows rather than single prompts, m…

claude-opus-4-7
Anthropic: Claude Opus 4.7 1000K context · text+image+file->text

Opus 4.7 is the next generation of Anthropic's Opus family, built for long-running, asynchronous agents. Building on the coding and agentic strengths of Opus 4.6, it delivers st…

claude-sonnet-4-6
Anthropic: Claude Sonnet 4.6 1000K context · text+image+file->text

Sonnet 4.6 is Anthropic's most capable Sonnet-class model yet, with frontier performance across coding, agents, and professional work. It excels at iterative development, comple…

claude-sonnet-4-5-20250929
Anthropic: Claude Sonnet 4.5 1000K context · text+image+file->text

Claude Sonnet 4.5 is Anthropic’s most advanced Sonnet model to date, optimized for real-world agents and coding workflows. It delivers state-of-the-art performance on coding ben…

claude-haiku-4-5-20251001
Anthropic: Claude Haiku 4.5 200K context · text+image+file->text

Claude Haiku 4.5 is Anthropic’s fastest and most efficient model, delivering near-frontier intelligence at a fraction of the cost and latency of larger Claude models. Matching C…

适用分组:anthropic、anthropic_max、eaislab_max。如果客户端使用 /v1/messages 或 Anthropic SDK,优先使用这一组模型。

Gemini v1beta compatible

Gemini 分组

9 models

Gemini-compatible 客户端、Google Gemini 风格调用、轻量文本生成、多模态与图片相关任务。

gemini-2.0-flash
gemini-2.5-flash
Google: Gemini 2.5 Flash 1049K context · text+image+file+audio+video->text

Gemini 2.5 Flash is Google's state-of-the-art workhorse model, specifically designed for advanced reasoning, coding, mathematics, and scientific tasks. It includes built-in "thi…

gemini-2.5-flash-image
Google: Nano Banana (Gemini 2.5 Flash Image) 33K context · text+image->text+image

Gemini 2.5 Flash Image, a.k.a. "Nano Banana," is now generally available. It is a state of the art image generation model with contextual understanding. It is capable of image g…

gemini-2.5-pro
Google: Gemini 2.5 Pro 1049K context · text+image+file+audio+video->text

Gemini 2.5 Pro is Google’s state-of-the-art AI model designed for advanced reasoning, coding, mathematics, and scientific tasks. It employs “thinking” capabilities, enabling it …

gemini-3-flash-preview
Google: Gemini 3 Flash Preview 1049K context · text+image+file+audio+video->text

Gemini 3 Flash Preview is a high speed, high value thinking model designed for agentic workflows, multi turn chat, and coding assistance. It delivers near Pro level reasoning an…

gemini-3-pro-preview
gemini-3.1-pro-preview
Google: Gemini 3.1 Pro Preview 1049K context · text+image+file+audio+video->text

Gemini 3.1 Pro Preview is Google’s frontier reasoning model, delivering enhanced software engineering performance, improved agentic reliability, and more efficient token usage a…

gemini-3.1-pro-preview-customtools
Google: Gemini 3.1 Pro Preview Custom Tools 1049K context · text+image+file+audio+video->text

Gemini 3.1 Pro Preview Custom Tools is a variant of Gemini 3.1 Pro that improves tool selection behavior by preventing overuse of a general bash tool when more efficient third-p…

gemini-3.1-flash-image

Gemini 客户端通常使用 /v1beta/models/{model}:generateContent 或 /v1beta/models/{model}:streamGenerateContent。

Anthropic compatible

MiniMax 分组

5 models

MiniMax 模型、Anthropic-compatible 调用方式、备用代码 / 文本模型。

MiniMax-M2
MiniMax: MiniMax M2 205K context · text->text

MiniMax-M2 is a compact, high-efficiency large language model optimized for end-to-end coding and agentic workflows. With 10 billion activated parameters (230 billion total), it…

MiniMax-M2.1
MiniMax: MiniMax M2.1 205K context · text->text

MiniMax-M2.1 is a lightweight, state-of-the-art large language model optimized for coding, agentic workflows, and modern application development. With only 10 billion activated …

MiniMax-M2.5
MiniMax: MiniMax M2.5 205K context · text->text

MiniMax-M2.5 is a SOTA large language model designed for real-world productivity. Trained in a diverse range of complex real-world digital working environments, M2.5 builds upon…

MiniMax-M2.5-highspeed
MiniMax-M2.7
MiniMax: MiniMax M2.7 205K context · text->text

MiniMax-M2.7 is a next-generation large language model designed for autonomous, real-world productivity and continuous improvement. Built to actively participate in its own evol…

适合在 Anthropic 调用链路中作为备用文本或代码模型。

Xiaomi MiMo compatible

Xiaomi / MiMo 分组

9 models

小米 MiMo 系列模型,适合通用文本、多模态、轻量快速响应与 TTS 语音相关任务。

mimo-v2.5-pro
Xiaomi: MiMo-V2.5-Pro 1049K context · text->text

MiMo-V2.5-Pro is Xiaomi’s flagship model, delivering strong performance in general agentic capabilities, complex software engineering, and long-horizon tasks, with top rankings …

mimo-v2-pro
mimo-v2.5
Xiaomi: MiMo-V2.5 1049K context · text+image+audio+video->text

MiMo-V2.5 is a native omnimodal model by Xiaomi. It delivers Pro-level agentic performance at roughly half the inference cost, while surpassing MiMo-V2-Omni in multimodal percep…

mimo-v2-omnimimo-v2.5-flashmimo-v2.5-ttsmimo-v2.5-tts-voiceclonemimo-v2.5-tts-voicedesignmimo-v2-tts

推荐优先使用 mimo-v2.5-pro;TTS 相关模型可用于语音合成、声音克隆和声音设计。

Antigravity / Claude / Gemini compatible

Antigravity 分组

28 models

Antigravity 客户端、Claude / Gemini 混合模型入口、Gemini text / image 相关能力。

claude-*claude-3-5-sonnet-20241022claude-haiku-*claude-opus-*
claude-opus-4-5-20251101
Anthropic: Claude Opus 4.5 200K context · text+image+file->text

Claude Opus 4.5 is Anthropic’s frontier reasoning model optimized for complex software engineering, agentic workflows, and long-horizon computer use. It offers strong multimodal…

claude-sonnet-*claude-sonnet-4-20250514
claude-sonnet-4-5-20250929
Anthropic: Claude Sonnet 4.5 1000K context · text+image+file->text

Claude Sonnet 4.5 is Anthropic’s most advanced Sonnet model to date, optimized for real-world agents and coding workflows. It delivers state-of-the-art performance on coding ben…

gemini-2.5-flashgemini-2.5-flash-imagegemini-2.5-flash-image-previewgemini-2.5-flash-litegemini-2.5-flash-thinkinggemini-2.5-progemini-3-flashgemini-3-flash-previewgemini-3-pro-highgemini-3-pro-imagegemini-3-pro-image-previewgemini-3-pro-lowgemini-3-pro-previewgemini-3.1-flash-imagegemini-3.1-flash-image-previewgemini-3.1-pro-highgemini-3.1-pro-lowgemini-3.1-pro-previewgpt-oss-120b-mediumtab_flash_lite_preview

带 * 的条目是通配模型名。普通用户如果不确定怎么填,优先使用明确模型名,例如 gemini-3.1-pro-preview。

Anthropic compatible

Coding Plan 分组

3 models

代码规划、多模型备用与编程任务。

glm-5.1
Z.ai: GLM 5.1 203K context · text->text

GLM-5.1 delivers a major leap in coding capability, with particularly significant gains in handling long-horizon tasks. Unlike previous models built around minute-level interact…

kimi-k2.6
MoonshotAI: Kimi K2.6 262K context · text+image->text

Kimi K2.6 is Moonshot AI's next-generation multimodal model, designed for long-horizon coding, coding-driven UI/UX generation, and multi-agent orchestration. It handles complex …

minimax-m2.7
MiniMax: MiniMax M2.7 205K context · text->text

MiniMax-M2.7 is a next-generation large language model designed for autonomous, real-world productivity and continuous improvement. Built to actively participate in its own evol…

适合在编程规划类任务中作为轻量备用模型组合。

FAQ

常见错误

no available accounts

当前模型暂时没有可用账号池。

  • 换同分组的其他模型。
  • 检查模型名是否写对。
  • 联系管理员确认 API Key 分组权限。
Unsupported parameter: background

请求里带了当前上游不支持的参数,例如 background。

  • 关闭客户端里的 background mode。
  • 或换一个支持该参数的客户端配置。
context canceled

请求中途被客户端取消,常见于网页关闭、流式请求中断或网络切换。

  • 通常不是服务端宕机;可以直接重试。
  • 如果反复出现,检查本地网络或客户端超时设置。
404 page not found

请求路径不存在。

  • OpenAI SDK 使用 /v1。
  • Anthropic-compatible 请求确认接口路径。
  • Gemini-compatible 请求使用 /v1beta。
Contact

联系 / 反馈

如果 API Key 权限、模型分组或接入方式有问题,请联系实验室平台负责人,或通过实验室统一邮箱反馈。