今天,我们推出新一代 Auto Router。基于过去三年运行 Auto Router 所积累的经验,我们从零开始重建了该系统,采用了全新的技术基础。根据基准测试的不同,其性能比旧版路由器最高提升 4 倍,而在我们的实时测试中,路由步骤的 p90 延迟提升了 3 倍(从 1.96 秒缩短至 0.65 秒)。
路由器在基准测试中取得高分比在实际场景中表现良好要容易得多。Auto Router 每月处理来自超过 10 万用户的超过 2.5 万亿个 token,因此它必须在现实世界中经受住考验。
此次发布包括一款专为编码工作设计的全新路由器 Auto Code(openrouter/auto-code),以及我们旗舰级的通用 Auto Router(openrouter/auto)。
您可以通过在任何请求中将模型设置为 openrouter/auto 或 openrouter/auto-code,或在聊天室中打开 Auto Router 来立即试用。有关所有详细信息,请参阅 Auto Router 文档。
这一代的新特性
上一代 Auto Router 依赖几个不精确的信号(如任务类型)来驱动模型选择,这是为了保持低延迟和判断一致性所必需的限制。新一代的 Auto Router 和 Auto Code 通过权衡关于每个请求的十一个因素,并结合实时定价、提供商健康状况和缓存状态来选择模型。
这一新流程使 Auto Router 能够与任何一组模型配合使用。您可以应用任何治理策略,包括护栏(guardrails)、零数据保留要求、提供商限制、允许使用的模型列表以及 BYOK(自带密钥)密钥。Auto Router 会从您可用的模型中做出高效的选择。
我们根据在编码环境中使用通用路由器的反馈,引入了新的 Auto Code 路由器。该路由器从底层针对编码性能进行了调整,通过包含更高级别的编码模型并优化延迟来实现。在上述五个基准测试中,Auto Code 的表现与 Claude Opus 5.5 相当,但每项任务的成本降低了 74%。
在上一代产品中,我们还观察到,最低成本模型的卓越效率导致 Auto Router 在任务成本方面不断走低,从而排除了一些表现卓越的模型。我们决定在本发布中回归到几个月前 Auto 所处的定价水平,以引入更多样化的模型。如果您更喜欢之前的行为,可以将 cost_tier 设置为 low 以获得类似的成本性能。
在聊天室中查看路由决策背后的原因
了解这些新路由器工作原理的最简单方法是在聊天室中选择 Auto Router 或 Auto Code。每个回复旁边会出现一个路由洞察面板,显示路由器选择该模型的原因。当您启用 router metadata 时,也可以通过 API 获得相同的分析。
在每个模型页面上观看实时路由分布
Auto Router 和 Auto Code 的模型页面现在会显示每个路由器最常选择的模型,按会话类型分类,并展示随着难度增加,分布如何变化。
与其他路由器和单一模型的性能进行比较
Auto Router 和 Auto Code 的基准测试结果已发布在模型路由基准页面上,与 OpenRouter 上的其他路由器及单一模型基线并列。我们会定期重新运行这些测试,以便您跟踪在新模型发布后各路由器的表现是否跟上节奏。
基于运行 Auto Router 多年的经验构建
Auto Router 即将迎来三周岁生日。如果您几年前在代理中设置了 openrouter/auto,至今您仍在使用最新的成本最优选择。我们在自动模型选择出错的地方学到了很多,并构建了新一代系统以避免这些问题。以下是一些例子:
我们将 Auto Code 单独分离出来,以针对代码执行环境进行优化。关于之前版本的 Auto Router,最常见的抱怨是它在代码执行环境中的表现。Auto Code 倾向于选择略贵一档的模型,其优势与编码工作相匹配。它更看重速度,因为在构建过程中响应能力至关重要。它还更严厉地惩罚失败,因此在成功与失败界限分明的工作中能更快地进行纠正。
它在切换时保持克制,以保护缓存带来的好处。切换模型会产生额外成本,因为新模型需要重建输入令牌缓存。当推理努力的改变足以带来提升时,Auto Router 会倾向于这种改变,并且仅当收益值得牺牲现有缓存时才会进行切换。在我们的测试期间,它几乎在每十个智能体回合中的九个回合都保持使用同一个模型。
它能适应失败情况。当会话出现指向模型问题的错误方式时,例如返回相同的错误或编辑后测试失败,这些信号会增加切换的概率。这使得会话不太可能一直卡在早期选错的模型上。
它的调优基于真实使用情况以及基准测试结果。Auto Router 在每次运行基准测试和每次观察到的实际路由决策中都会变得更好。通过 typesafe/jev-router 和 openrouter/auto-beta,我们已经在生产负载中验证了它,同时严格遵守零数据保留原则。在我们的测试期间,与之前的路由器相比,无效的工具调用降低了四倍,智能体响应被截断的频率减半。
模型路由建立在领先的提供商路由基础之上
像 Auto Router 和 Auto Code 这样的模型路由器负责选择处理请求的模型。提供商路由则负责决定由谁提供该模型。自始至终,OpenRouter 对每个请求都执行此操作:一旦选定模型,提供商路由器会根据您的提供商偏好、实时正常运行时间和延迟、价格以及提供商是否已持有您的提示缓存,从托管该模型的提供商中进行选择。
模型路由器的表现只能与其底层的提供商路由器一样好。我们构建 Auto Router 使其了解我们的整个目录,因此它能适应治理限制、基准测试结果以及新模型发布带来的市场信号变化。OpenRouter 上的 600 多个模型中的每一个都在其添加当天进入考虑范围,而基准测试和人气信号则决定其是否能在成本最优集合中获得一席之地。
请求如何通过 Auto Router
Auto Router 缩小了模型池的范围。护栏、零数据保留、模型能力、提供商限制、BYOK(自带密钥)以及任何允许或排除的模型列表决定了哪些模型会被考虑。
一个快速决策模型处理该请求。在一次调用中,它会评估十一个因素,例如这是什么类型的任务、任务是否刚刚改变、难度如何、速度是否重要、是否需要视觉或对代码库的了解,以及更大的模型、更多的思考或更便宜的模型哪个更适合它。
路由策略选择模型。它权衡实时价格、缓存状态和基准测试结果,以选择模型和推理努力程度。
请求通过提供商路由,与直接请求该模型的路由相同,因此它会落在最适合该模型的提供商上。
每个回合的结果会告知下一个回合的模型选择。路由器会将信号(如模型是否遇到困难以及已缓存的内容)带入下一次决策中。
路由器与单一模型
基准测试一致表明,市场上没有任何路由器在成本和质量曲线的每一个点上都能击败表现最好的前沿模型。新的 Auto Router 也不例外,我们公布其基准测试结果以清晰地展示其优势和劣势。
当工作场景多样、组织需要维持成本稳定,且用户没有时间和精力去跟进不断发布的新模型时,路由器(Router)便彰显了其价值。选择 Auto Router 或 Auto Code 而非单一模型,是以牺牲少许峰值性能为代价,换取随时间推移更稳定、更具成本效益的性能表现。
如果你清楚哪个模型最适合你的特定工作,请继续使用它。如果你更愿意一次性做出选择,从而专注于工作本身,那么路由器就是实现这一目标的最佳方式。
开始使用
Auto Router 和 Auto Code 可以在你放置模型字符串的任何地方运行:
curl https://openrouter.ai/api/v1/chat/completions \
-H "Authorization: Bearer $OPENROUTER_API_KEY " \
-H "Content-Type: application/json" \
-d '{
"model": "openrouter/auto-code",
"messages": [{"role": "user", "content": "Add a retry with backoff to fetchUser in api/users.ts"}]
}'
阅读 Auto Router 文档以获取完整设置,或在聊天室中打开 Auto Router 并发送你通常会手动挑选模型时所使用的提示词。请在 Discord 的 #feedback 频道告诉我们它做对了什么以及做错了什么。
常见问题
从旧版 Auto Router 切换需要更改什么?
完全不需要更改。slug 仍然是 openrouter/auto,且 auto-router 插件设置中的 cost_tier、allowed_models 和 excluded_models 仍然有效。
Auto Router 和 Auto Code 有什么区别?
两者均运行在相同的路由引擎上。Auto Router 是用于混合流量和通用代理的通用路由器,倾向于选择成本效益较高的模型层级。Auto Code 则专为编码代理和框架设计,起始于更高的成本层级,并根据各模型及推理努力在解决任务方面的通过率、速度和成本进行加权评估。
模型路由与提供商路由是否相同?
不。模型路由决定由哪个模型处理请求;提供商路由决定由哪个提供商提供该模型。Auto Router 和 Auto Code 执行前者,随后 OpenRouter 的提供商路由根据你的提供商偏好、正常运行时间数据和提示词缓存状态执行后者。
路由器是否尊重我的护栏(guardrails)和数据政策?
是的。护栏策略、零数据保留要求、提供商限制、允许和排除的模型列表以及 BYOK(自带密钥)定义了模型池,路由器从中选择成本最优的模型。
不。你需支付处理请求的那个模型的标准价格,响应中的 model 字段会告知你具体是哪个模型。
openrouter/auto-beta 是什么?
Auto Router Beta 是 Auto Router 下一个版本的发布渠道。新的路由更改首先推送到 openrouter/auto-beta,并在验证有效后升级至 openrouter/auto,因此你可以使用它提前预览即将推出的功能。如果你尝试使用它,请在 Discord 的 #feedback 频道告诉我们它做对了什么以及做错了什么。
Today we’re launching the next generation of Auto Router. Taking all we’ve learned from running Auto Router for the past 3 years, we rebuilt it from the ground up on an entirely new technical foundation that outperforms the old router by up to 4× depending on the benchmark, with a routing step that is 3× faster at the p90 in our live test (0.65s against 1.96s).
It’s easier for a router to score well on benchmarks than to perform well in practice. Auto Router sees over 2.5T tokens from over 100k people every month, so it has to hold up in the real world.
This launch includes a brand new router specialized for coding work, Auto Code ( openrouter/auto-code ), alongside our flagship general purpose Auto Router ( openrouter/auto ).
Try it now by setting model to openrouter/auto or openrouter/auto-code in any request, or open Auto Router in the chatroom . Check out the Auto Router docs for all the details.
What’s new in this generation
The previous Auto Router relied on a couple of imprecise signals, such as task type, to drive model selection, a limit required to keep latency low and judgments consistent. The new Auto Router and Auto Code choose models by weighing eleven factors about each request and combining them with live pricing, provider health, and cache status.
This new process lets Auto Router work with any set of models. You can apply any governance policies, including guardrails, zero data retention requirements, provider restrictions, allowed model lists, and BYOK keys. Auto Router makes efficient choices from the models available to you.
We introduced the new Auto Code router based on feedback about what it was like to use a general purpose router in a coding harness. This router is tuned from the ground up for coding performance by including a higher tier of coding models and optimizing for latency. Across the five benchmarks below, Auto Code scores in line with Claude Opus 5.5 while costing 74% less per task.
In the previous generation, we also observed that the remarkable efficiency of the lowest cost models had caused Auto router to drift lower on cost per task, leaving out many exceptional models. We made a decision with this release to return to pricing closer to where Auto was a few months ago in order to introduce a greater variety of models. If you preferred the previous behavior, you can set the cost_tier to low to get similar cost performance.
See the reasoning behind routing decisions in the chatroom
The easiest way to start learning how these new routers work is to pick Auto Router or Auto Code in the chatroom . A routing insights panel appears beside each reply showing why the router picked that model. The same analysis is available via the API when you enable router metadata .
Watch the live routing mix on each model page
The Auto Router and Auto Code model pages now show which models each router picks most often, split by session type, and how the mix shifts as difficulty rises.
Compare performance against other routers and single models
Auto Router and Auto Code benchmark results are published on the model routing benchmarks page alongside the other routers on OpenRouter and single-model baselines. We rerun them periodically, so you can track how each router keeps up as new models are released.
Built upon years of lessons from running Auto Router
Auto Router is coming up on its third birthday. If you set openrouter/auto in an agent years ago, you’re still getting the latest cost-optimal choice today. We’ve learned a lot about where automatic model selection goes wrong, and built the new generation to avoid those problems. Some examples:
We separated out Auto Code to optimize for harnesses. The most common complaint about previous versions of Auto Router was how it performed in coding harnesses. Auto Code favors a slightly more expensive tier of models whose strengths match coding work. It weighs speed more heavily because responsiveness matters while you build. It also penalizes failures more harshly, so it course corrects faster on work where success and failure are clear cut.
It’s restrained about switching to protect caching benefits. Switching models costs extra while the new model rebuilds the input token cache. Auto Router favors a change in reasoning effort when that’s enough, and switches only when the gain is worth the cache it gives up. In our beta period it stayed on the same model for nearly nine of every ten agent turns.
It adapts to failures. When a session is going wrong in ways that point at the model, such as the same error coming back or tests failing after an edit, those signals raise the odds of a switch. That makes it much less likely a session stays stuck with a model that was the wrong pick early on.
It’s tuned based on both real usage as well as benchmarks. Auto Router gets better with every benchmark run and every real routing decision it sees. Through typesafe/jev-router and openrouter/auto-beta we have already verified it on production workloads, while respecting zero data retention throughout. In our beta, against the previous router, invalid tool calls were 4× lower and agentic responses were cut off half as often.
Model Routing built upon the leading Provider Routing foundation
Model routers like Auto Router and Auto Code pick which model will process the request. Provider routing picks who will serve that model. OpenRouter has done this for every request since the beginning: once the model is picked, the provider router chooses among the providers hosting it using your provider preferences, live uptime and latency, price, and whether a provider already holds your prompt cache.
A model router can only be as good as the underlying provider router. We built Auto Router to be aware of our entire catalog, so it adapts to governance restrictions, benchmark results, and market signal from new model releases as they happen. Every one of the 600+ models on OpenRouter enters the consideration set the day it’s added, and benchmarks and popularity signals decide whether it earns a place in the cost-optimal set.
How a request moves through Auto Router
Auto Router narrows the model pool. Guardrails, zero data retention, model capabilities, provider restrictions, BYOK keys, and any allowed or excluded model lists decide which models are considered.
A fast decision model processes the request. In one call it rates eleven things, such as what kind of task this is, whether the task just changed, how hard it is, whether speed matters, whether it needs vision or knowledge of a codebase, and whether a bigger model, more thinking, or a cheaper model would serve it better.
The routing policy chooses the model. It weighs live prices, cache status, and benchmark performance to pick both the model and the reasoning effort.
The request goes through the same provider routing a direct request to that model would, so it lands on the best provider for that model.
The results of each turn inform the next turn’s model selection. The router carries signals like whether the model is struggling and what’s already cached into the next decision.
Routers versus single models
Benchmarks consistently show that no router on the market beats the single best frontier model at every point on the cost and quality curve. The new Auto Router is no exception, and we publish its benchmarks to show its strengths and weaknesses plainly.
Routers earn their place when the work is varied, when an organization needs to hold costs steady, and for people who don’t have the time or interest to keep up with the constant stream of model releases. Choosing Auto Router or Auto Code over a single model trades a little peak performance for consistent, cost efficient performance over time.
If you know the model that works best for your specific work, keep using it. If you’d rather choose once and stay focused on the work itself, a router is the way to do that.
Get started
Auto Router and Auto Code work wherever you’d put a model string:
curl https://openrouter.ai/api/v1/chat/completions \
-H "Authorization: Bearer $OPENROUTER_API_KEY " \
-H "Content-Type: application/json" \
-d '{
"model": "openrouter/auto-code",
"messages": [{"role": "user", "content": "Add a retry with backoff to fetchUser in api/users.ts"}]
}'
Read the Auto Router docs for the full settings, or open Auto Router in the chatroom and send it the prompt you’d normally hand-pick a model for. Tell us what it gets right and wrong in #feedback on Discord.
Frequently asked questions
What do I need to change to switch from the old Auto Router?
Nothing at all. The slug is still openrouter/auto and the auto-router plugin settings cost_tier , allowed_models , and excluded_models still work.
What is the difference between Auto Router and Auto Code?
Both run on the same routing engine. Auto Router is the general purpose router for mixed traffic and general agents, and favors a cost-efficient tier of models. Auto Code is specialized for coding agents and harnesses, starts in a higher cost tier, and weighs measured pass rate, speed, and cost per solved task across models and reasoning efforts.
Is model routing the same as provider routing?
No. Model routing picks which model handles a request; provider routing picks which provider serves that model. Auto Router and Auto Code do the first, then OpenRouter’s provider routing does the second with your provider preferences, uptime data, and prompt cache state.
Do the routers respect my guardrails and data policies?
Yes. Guardrail policies, zero data retention requirements, provider restrictions, allowed and excluded model lists, and BYOK keys define the model pool, and the router picks the cost optimal model inside it.
No. You pay the standard price of whichever model serves the request, and the response’s model field tells you which one it was.
What is openrouter/auto-beta?
Auto Router Beta is the release channel for the next version of Auto Router. New routing changes ship to openrouter/auto-beta first and graduate to openrouter/auto once they prove out, so use it to see what is coming in advance. If you try it, tell us what it gets right and wrong in #feedback on Discord.
| 刊期 | 得分 | 排名 | 结果 |
|---|---|---|---|
| 2026-11-08 | 9.22 | 22 | 入选 |
| 2026-11-07 | 9.95 | 30 | 未入选 |