Vercel AI Gateway 上线 Virtual Models:用 vmc/ 别名集中改模型与回退无需重部署
Vercel 于 10 月 28 日为 AI Gateway 推出 Virtual Models:应用以 vmc/slug 调用,模型、路由、回退与合规设置可在网关侧集中修改并在数分钟内对新请求生效,无需重部署。
Vercel 在 2026 年 10 月 28 日发布 AI Gateway Virtual Models。虚拟模型是一组保存好的网关配置,对外暴露自定义模型 ID(形如 vmc/coding-agent)。应用、聊天平台或 Claude Code、Codex 等编码智能体只需调用该 ID;平台侧可改底层模型、提供商顺序、回退、Zero Data Retention、用量标签等,官方称变更会在数分钟内作用于新请求,无需改代码或重新部署。
创建方式包括控制台 Virtual Models 页,或 CLI:vercel ai-gateway virtual-models create coding-agent --model ... --config '{...}'。对编码智能体,可先 vercel ai-gateway setup 再在挽具的模型选择器里挑虚拟模型。文档强调:虚拟模型上的设置优先于单次请求里的同名选项,便于平台/安全团队统一治理;提供商专属选项不会在换提供商后自动“翻译”,例如 Anthropic 相关选项在切到 OpenAI 后不再生效。
官方建议在切换生产流量前,另建候选 ID(如 vmc/coding-agent-candidate)跑评测,确认质量后再切。观察帖也提醒:稳定的模型 ID 并不等于稳定的行为契约,换提供商后要回归测试。对多代理、多应用共用同一推理入口的团队,Virtual Models 把“改模型”从发版流程里抽出来,变成网关配置变更。
Vercel Virtual Models on AI Gateway
Vercel launched Virtual Models in AI Gateway on Oct 28. Your app calls an ID like vmc/coding-agent; the model, routing and fallbacks live behind it. Changes reach new requests within a few minutes, without a redeploy.
The catch: changing providers doesn't translate provider-specific settings. An Anthropic option stops applying when you switch to OpenAI. A stable model ID isn't a stable behavior contract. Vercel recommends testing a separate candidate ID before switching production traffic. #buildinpublic