2026-07-08 百炼第三方模型快照下线:如何把 DeepSeek、GLM、MiniMax、Moonshot 切到 vendor-direct
阿里云百炼将在 2026-07-08 下线大量第三方模型快照——DeepSeek-V3/R1、MiniMax-M2.1、GLM-4.6/4.7、Moonshot Kimi-K2。本文给出完整替换矩阵、通过 TheRouter 路由到 vendor-direct API 的代码 diff、定价对照,以及 2026-07-08 前的回滚路径。
2026-07-08 百炼第三方模型快照下线:如何把 DeepSeek、GLM、MiniMax、Moonshot 切到 vendor-direct
2026 年 7 月 8 日,阿里云百炼(Model Studio)将下线一批第三方模型快照:DeepSeek-V3 全家族、DeepSeek-R1 全家族、MiniMax-M2.1、GLM-4.6/4.7、Moonshot Kimi-K2-Instruct、kimi-k2-thinking。如果你正在通过百炼的 OpenAI-compatible endpoint 调用这些模型,你还有 28 天时间完成迁移。百炼推荐的替代全部是 Qwen 模型(qwen3.7-max、qwen3.7-plus、qwen3.6-flash)。如果你愿意用 Qwen 替代,那自然是摩擦最小的方案——但如果你当初选择 DeepSeek、GLM、MiniMax、Moonshot 是因为它们各自的能力优势,更干净的答案是通过路由层直切到各模型的 vendor-direct API。本指南给出完整操作方法。
我们把 OpenAI-compatible 请求路由到已配置的供应商,并在已实现的产品路径中支持 provider/model routing 和 fallback。我们不承诺零停机、支持所有模型,或一定最便宜。本文每一条替换断言都在检索时对照了供应商自己的定价文档。
30 秒速答:下线了什么、什么时候下
- 下线时间: 2026-07-08 00:00:00 北京时间(来源:阿里云公告 118345,模型下线页面,检索于 2026-06-10)。
- 受影响范围: 百炼托管的第三方模型快照版本。各厂商直连 API(api.deepseek.com、open.bigmodel.cn、platform.kimi.com)不受影响。
- 百炼侧替代: Qwen3.7/3.6 系列——
qwen3.7-max、qwen3.7-plus、qwen3.6-flash。 - 如果你想保持同一模型家族: 走 vendor-direct,每个受影响厂商都暴露了自己的 OpenAI-compatible API。
受影响模型 ID 全表
来源:阿里云模型下线页面 2026-07-08 波次,第三方部分。检索于 2026-06-10。
| 类别 | 百炼上的旧 model ID | 阿里云推荐替代 |
|---|---|---|
| DeepSeek 蒸馏版 | deepseek-r1-distill-qwen-7b、deepseek-r1-distill-qwen-14b、deepseek-r1-distill-qwen-32b | qwen3.7-plus |
| DeepSeek V3 家族 | deepseek-v3、deepseek-v3.1、deepseek-v3.2、deepseek-v3.2-exp | qwen3.7-plus |
| DeepSeek R1 家族 | deepseek-r1、deepseek-r1-0528 | qwen3.7-plus |
| MiniMax | MiniMax-M2.1 | qwen3.7-plus |
| 智谱 GLM | glm-4.7、glm-4.6 | qwen3.7-plus |
| 月之暗面 Moonshot | Moonshot-Kimi-K2-Instruct、kimi-k2-thinking | qwen3.7-plus |
百炼同日还下线了大量 Qwen 开源模型快照(qwen3-8b/14b/30b/32b/235b、qwen3-vl-* 系列、qwen3-coder-* 系列),那些由 qwen3.7-plus / qwen3.6-flash 接替,留在 Qwen 体系内部,不在本指南范围内。
为什么"换 Qwen"有时是错误的答案
阿里云推荐表里,所有被下线的第三方模型都指向 Qwen。如果你原来的模型跑的是通用聊天,那切到 Qwen 确实是摩擦最小的路径。但在以下场景中这是错的:
- 你选 DeepSeek-V3.2-exp 是因为长上下文编码能力以及 cache-hit 定价;
- 你选 GLM-4.7 是因为中文 tool-calling 调优;
- 你选 Moonshot Kimi-K2-Instruct 是因为 256K context;
- 你选 MiniMax-M2.1 是因为它的 highspeed 通道。
在这些情况下,正确的路由方案是 vendor-direct,而不是 vendor-substitution。
替换矩阵:通过 TheRouter 路由到 vendor-direct
| 百炼托管(即将下线) | 通过 TheRouter 走 vendor-direct | 供应商页 |
|---|---|---|
deepseek-v3、deepseek-v3.1、deepseek-v3.2、deepseek-v3.2-exp | deepseek/deepseek-v3.2-exp(或更新版本 deepseek/deepseek-v4-flash、deepseek/deepseek-v4-pro) | /providers/deepseek/ |
deepseek-r1、deepseek-r1-0528 | deepseek/deepseek-r1(或 deepseek/deepseek-v4-flash 的 thinking mode) | /providers/deepseek/ |
glm-4.6、glm-4.7 | 智谱 GLM(base_url=https://open.bigmodel.cn/api/paas/v4) | 智谱直连(TheRouter 路由支持情况请在 /models/ 上核实) |
Moonshot-Kimi-K2-Instruct、kimi-k2-thinking | moonshot/kimi-k2.6(或更新的 kimi-k2.6) | 月之暗面直连(TheRouter 路由支持情况请在 /models/ 上核实) |
MiniMax-M2.1 | minimax/minimax-m2.1(或更新的 M2.5/M2.7) | MiniMax 直连 |
在生产环境依赖任何一行之前,请到 TheRouter 的 live /models/ 页面核实。 TheRouter 的模型可用性是动态变化的,我们会在不同时间点新增和轮换供应商集成。
代码 diff:百炼托管 → 通过 TheRouter 走 vendor-direct
diff 只有两行。改掉路由前缀,TheRouter 帮你选上游供应商。应用程序代码、prompt、消息格式完全不动。
Python — DeepSeek 示例
# Before:通过百炼 DashScope OpenAI-compatible base 调用 deepseek-v3
from openai import OpenAI
client = OpenAI(
base_url="https://dashscope.aliyuncs.com/compatible-mode/v1",
api_key="<DASHSCOPE_KEY>",
)
resp = client.chat.completions.create(
model="deepseek-v3",
messages=[{"role": "user", "content": "你好"}],
)
# After:通过 TheRouter 走 vendor-direct DeepSeek
from openai import OpenAI
client = OpenAI(
base_url="https://api.therouter.ai/v1",
api_key="<THEROUTER_API_KEY>",
)
resp = client.chat.completions.create(
model="deepseek/deepseek-v3.2-exp", # 或 deepseek/deepseek-v4-flash 用最新版
messages=[{"role": "user", "content": "你好"}],
)
Python — Moonshot Kimi 示例
# Before
client = OpenAI(
base_url="https://dashscope.aliyuncs.com/compatible-mode/v1",
api_key="<DASHSCOPE_KEY>",
)
resp = client.chat.completions.create(model="Moonshot-Kimi-K2-Instruct", messages=[...])
# After
client = OpenAI(
base_url="https://api.therouter.ai/v1",
api_key="<THEROUTER_API_KEY>",
)
resp = client.chat.completions.create(model="moonshot/kimi-k2.6", messages=[...])
TypeScript — GLM + fallback 链
import OpenAI from 'openai';
// 优先路由 GLM,不可用时 fallback 到 DeepSeek。
const client = new OpenAI({
baseURL: 'https://api.therouter.ai/v1',
apiKey: process.env.THEROUTER_API_KEY,
});
const completion = await client.chat.completions.create({
model: 'zhipu/glm-4.6',
// @ts-expect-error extra_body 是 OpenAI SDK 的直通参数
extra_body: {
models: ['zhipu/glm-4.6', 'deepseek/deepseek-v3.2-exp'],
},
messages: [{ role: 'user', content: '总结一下这份季度报告。' }],
});
models 数组是 TheRouter 的 fallback 提示,文档见 TheRouter Model Fallbacks,检索于 2026-06-10。Fallback 仅在主路由不可用时触发,不是并行调用机制;我们不承诺零停机。
定价快照:百炼 vs vendor-direct
所有价格为每百万 token,检索于 2026-06-10。定价会变化,财务决策前请重新核实。
| 模型 | 百炼(北京区域) | vendor-direct |
|---|---|---|
qwen3.7-plus(阿里云推荐替代) | ¥2 input / ¥8 output(0-256K context 区间) | 不适用(Qwen 是阿里云自己的模型) |
| DeepSeek-V4-Flash(vendor-direct,V3.2-exp 后续版本) | 不适用(V3 将全面下线) | $0.14 input(cache-miss)/ $0.0028(cache-hit)/ $0.28 output |
| DeepSeek-V4-Pro(vendor-direct) | 不适用 | $0.435 input(cache-miss)/ $0.003625(cache-hit)/ $0.87 output |
| Moonshot Kimi K2.6(vendor-direct 后续版本) | 不适用(Kimi-K2 将在百炼下线) | ¥6.50 input(cache-miss)/ ¥1.10(cache-hit)/ ¥27 output |
来源:阿里云模型定价、DeepSeek Pricing、Kimi K2.6 Pricing,均检索于 2026-06-10。
成本变化有三个组成要素:
- 模型版本升级。 百炼托管的 DeepSeek-V3 → vendor-direct DeepSeek-V4-Flash 是一次模型升级,不是等价替换。输出质量和成本都可能变化。
- 币种 / 区域。 百炼大陆版以人民币计费;vendor-direct DeepSeek 以美元计费。百炼新加坡区同样以人民币计费但执行国际定价(阿里云模型定价)。
- cache-hit 机制。 DeepSeek-V4 的 cache-hit 定价比 cache-miss 便宜约 50 倍。如果你的工作负载有 context 复用场景(RAG、multi-turn agents),这是真正的成本杠杆。
坑点:auth、model ID 映射、限流
- API key 不同。 DashScope / 百炼的 key 不能直接调 api.deepseek.com 或 platform.kimi.com 或 open.bigmodel.cn。通过 TheRouter 可以统一为一个 key;如果不用 TheRouter 直接走 vendor-direct,每个供应商各一个 key。
- model ID 要带前缀。 TheRouter 使用
provider/model-name格式。百炼上的deepseek-v3要改成deepseek/deepseek-v3.2-exp(或deepseek/deepseek-v4-flash)。漏掉前缀会返回 404。 - 限流逻辑不同。 百炼的限流按区域按模型,文档见限流表。DeepSeek 直连采用 concurrency limit(V4-Flash 2500、V4-Pro 500,见DeepSeek Pricing)。如果你的流量模式依赖特定 QPS 参数,两边都要先 profile。
- thinking mode 是单独的。 百炼上
deepseek-r1和deepseek-r1-0528是显式的推理模型。vendor-direct DeepSeek-V4 的 thinking 是deepseek-v4-flash/deepseek-v4-pro上的一种模式(见 Thinking Mode 文档,检索于 2026-06-10)。如果你的代码从独立字段解析推理内容,response shape 会变。 - 供应商特定 response 字段。 百炼托管模型走 DashScope 的 response shape;vendor-direct 走各供应商自己的 shape。我们仅在文档或代码中验证过的供应商特定字段才透传——不要依赖特定字段在所有供应商上都存在。
- 新加坡 / 法兰克福区域部署。 如果你当初调用百炼国际站是出于数据驻留合规要求,vendor-direct DeepSeek 和 Moonshot 部署在中国大陆——这是一个数据驻留变更。GLM(智谱)有国际部署,参见 open.bigmodel.cn 当前区域可用性。
回滚路径:2026-07-08 前
在 deadline 之前,你可以双跑两个路径,随时回滚。2026-07-08 之后,百炼托管快照停止返回结果——向该特定快照回滚已不可能。
2026-07-08 前回滚清单:
- 保留 DashScope API key 直到 2026-07-08。
- 让客户端从环境变量读取
base_url和api_key(OpenAI SDK 支持OPENAI_BASE_URL和OPENAI_API_KEY)。 - 按百分比分流 5-7 天。比较错误率、p95 延迟、输出质量(在 held-out eval set 上)。
- 如果任何指标不对:切回环境变量,重新部署,零代码改动。
- 建立信心后,在 2026-07-08 之前退役 DashScope 路径,避免 deadline 被迫强制切换。
FAQ
为什么阿里云要下线这些模型?它们在上游也在下线吗?
阿里云公告(118345,检索于 2026-06-10)下线的是托管在百炼上的历史快照,而不是上游模型。DeepSeek-V3、GLM-4.6、MiniMax-M2.1、Kimi-K2 在各供应商的 direct API 上继续存在。百炼是在收缩第三方模型目录,把 Qwen 作为默认线。
如果我只用百炼的 Qwen 第一方模型,也需要迁移吗?
不需要——但 2026-07-13 还有另一波下线,涉及 Qwen 传统商业层(qwen-turbo、qwen-vl-max、qwen-coder-plus、qwq-plus、qvq-max),那些模型都由 Qwen3.7/3.6 系列接替。参见阿里云模型下线页面上的"2026 年 7 月 13 日"条目。
2026-07-08 之后还能继续用百炼当路由层吗?
可以。百炼继续托管 Qwen3.7/3.6 系列作为 first-party 模型。TheRouter 的 aliyun-bailian provider 仍然路由到这些模型。消失的是百炼托管的第三方模型快照。
TheRouter 是否路由到替换矩阵里的所有模型?
不是。我们不承诺 universal model support。每一条替换是一个候选——请在 TheRouter 的 live /models/ 页面核实后再在生产环境依赖。
2026-09-08 那波下线呢?
那波涉及 qwen3.6-max-preview、qwen3-max-preview、qwen3-max、qwen3-vl-flash、qwen3-coder-plus,由 qwen3.7-max / qwen3.6-flash / qwen3.7-plus 接替,见阿里云公告 118344。不在本指南范围内。
想了解各供应商直连 API 更多信息?
- DeepSeek vendor-direct:参见 我们的 DeepSeek 指南 和 DeepSeek Pricing。
- 百炼背景:参见 我们的百炼指南 和 Aliyun Bailian Model Studio Compatibility page。
- 端到端路由模式:参见 我们的 LLM API Fallback Routing Guide 和 OpenAI-to-TheRouter migration guide。
- 交叉参考:本指南与 OpenAI-compatible APIs in China 和 OpenAI-compatible API providers 配合阅读。
来源
- 阿里云模型下线页面(检索于 2026-06-10)
- 阿里云公告 118345 — 2026-07-08 快照下线(检索于 2026-06-10)
- DeepSeek API — Pricing(检索于 2026-06-10)
- DeepSeek API — Thinking Mode(检索于 2026-06-10)
- Moonshot Kimi Platform — K2.6 Pricing(检索于 2026-06-10)
- 阿里云模型定价(检索于 2026-06-10)
- TheRouter Model Fallbacks 文档(检索于 2026-06-10)