OctSum
00:00 / 32:12

LangChain · 32:12

Speaker 0

Really excited for this next fireside chat. I'm going to be chatting with Alex Atallah, the CEO and co-founder of OpenRouter. So gateways and routers are top of mind for a lot of folks, so I'm sure this will be really fun. So let's give him a warm round of applause.

非常期待接下来的这场炉边对话。 我将与 OpenRouter 的首席执行官兼联合创始人 Alex Atallah 进行对谈。 很多人现在都非常关注网关和路由器,所以我相信这场对话一定会很有趣。 让我们用热烈的掌声欢迎他。

Speaker 1

Thanks for having me.

谢谢邀请。

Speaker 0

thanks for being here. excited to have you here. i'm sure most people know of open router, but maybe could you give a brief description of what you do, but maybe more interestingly, how did you get the idea to start open router?

谢谢你来到这里。 很高兴你能来。 我相信大多数人都听说过 OpenRouter,但你能否简要介绍一下你们是做什么的?或许更有意思的是,你当初是怎么想到创办 OpenRouter 的?

Speaker 1

yeah, open router, for those of you who don't know, is the first and largest language model marketplace and has, for the last couple of years, grown. into a gateway and router for helping people manage their costs, route to the best models, and discover new models and providers that emerge across the ai ecosystem. we started beginning of 2023 in the spring, and at the time, OpenAI was really the only game in town, but there were these early signs of a diversified ecosystem beginning. alpaca was the first open weights model that i used on my computer where i was like, wow, this thing is actually usable and it only cost $600 to make. there might be a lot of these, like many, many, many, many more. and they all kind of have this interesting ability to leverage unique data and sell it as something more than just. a big, like many rows in a spreadsheet. and of course, like, ai models are much more than that, and there's way more than just language models out there. and open router has since added video models and text-to-speech and speech-to-text and image output. enterprises have, like, realized that, wow, spending just blows up, and we need a really good solution to kind of help people manage costs. and observe them and monitor them. and then we've done like very tight integrations with the rest of the ecosystem so that if you're using something like langsmith or you want really good agent observability, open router just works well with it. and we built lots of like integrations with our partners like langchain. and then we've done, we have like a lot of relationships with model labs and providers. and the way we see the market is that it's a big closed black box. all of these models are black boxes. you just can't enumerate all the features of a language model on a web page. it's impossible. you have to know how it's being used to understand why you should use it. and so we do all of that analysis, and we let the community kind of create insights based on our data, and then we make those available publicly and also available via api and for agents.

好的,不知道 OpenRouter 的朋友可以了解一下,它是首个也是最大的语言模型市场,在过去几年里不断发展, 成为了一个网关和路由器,帮助人们管理成本、将请求路由到最佳模型,并发现 AI 生态系统中涌现的新模型和提供商。 我们是 2023 年春天创办的。当时 OpenAI 基本上是唯一的选择,但已经开始出现多元化生态系统的早期迹象。 Alpaca 是我在电脑上使用的第一个开放权重模型。当时我觉得,哇,这东西真的能用,而且开发它只花了 600 美元。 未来可能会出现很多这样的模型,多很多很多很多。 它们都有一种有趣的能力,可以利用独特的数据,并将其作为比单纯 一大堆电子表格行更有价值的东西出售。 当然,AI 模型远不止于此,而且除了语言模型,还有很多其他模型。 此后,OpenRouter 又增加了视频模型、文本转语音、语音转文本和图像输出功能。 企业已经意识到,哇,支出会急剧膨胀,我们需要一个非常好的解决方案来帮助人们管理成本, 并对其进行观察和监控。 此外,我们与生态系统中的其他工具进行了非常紧密的集成,所以如果你使用 LangSmith 之类的工具,或者想要出色的智能体可观测性,OpenRouter 都能很好地与之配合。 我们还与 LangChain 等合作伙伴构建了许多集成。 此外,我们与许多模型实验室和供应商建立了合作关系。 我们认为这个市场就像一个巨大的封闭黑箱。 所有这些模型都是黑箱。 你根本无法在一个网页上列举出语言模型的所有功能。 这是不可能的。 你必须了解它是如何被使用的,才能明白为什么应该使用它。 所以我们会做所有这些分析,也让社区基于我们的数据得出见解,然后我们将这些见解公开,同时通过 API 提供给用户和智能体。

Speaker 0

a ton of stuff i want to dive into, but maybe starting with, i think, what i think of most when i think of OpenRouter, which is just the sheer volume and number of models that you have there and all the model optionality that you provide. what are you seeing in terms of how that diversity of models has grown over the years? where does it stand right now? it would be curious for you to walk through kind of just the landscape of how you see all the model choices out there.

我有很多想深入探讨的内容,但或许可以从我想到 OpenRouter 时最先想到的事情说起:你们平台上模型的数量之多,以及你们提供的丰富模型选择。 这些年来,你们观察到模型的多样性是如何增长的? 现在的情况如何? 我很好奇,你能否介绍一下你所看到的现有模型选择的整体格局?

Speaker 1

Yeah, we typically see companies start with one or two or three model families and then grow over time in terms of the number of model uh families they use on a regular basis. Um, and that's partly because uh it's for like three reasons. One is they've they've found a way of composing outputs from multiple models together into something better than the results of any one single model. And that's just leveraging. neurodiversity in the form of ai. and our mission is to maximize neurodiversity in the ai ecosystem. the second thing we observe is that there's a lot of leverage in not having vendor lock-in and being able to kind of like use providers that are making interesting innovations across the ecosystem. and there's a lot of providers and neo-labs that are innovating. and they just don't know how to tell people about it. and when they do tell people about it, it's like kind of hard to migrate your workloads over to them. so we just make those switching costs really low so that your whole team can safely and easily access them. and then the third thing we observe is cost management, which is like, okay, we have this workload. we can get the same results, sometimes better, by decomposing our agents. into many different smaller agents powered by usually open weight models. and we've seen costs drop by like 95, 98%. we've seen f1 scores improve from people like migrating to multiple smaller, like more deterministic agents. and then we help our customers do that.

是的,我们通常看到企业一开始使用一两个或三种模型系列,然后随着时间推移,经常使用的模型系列数量会不断增加。 嗯,部分原因是,呃,主要有三个。 第一,他们找到了一种方法,将多个模型的输出组合起来,得到比任何单一模型的结果都更好的成果。 而这其实就是在利用 以 AI 形式呈现的神经多样性。 我们的使命是最大限度地提高 AI 生态系统中的神经多样性。 我们观察到的第二点是,避免被供应商锁定,并能够使用生态系统中开展有趣创新的供应商所提供的服务,能带来很大优势。 而且有很多供应商和新兴实验室正在进行创新。 而他们就是不知道该怎么向别人介绍这件事。 即使他们告诉了别人,要把工作负载迁移过去也有点困难。 所以我们把这些切换成本降得很低,让你的整个团队都能安全、轻松地使用它们。 然后我们观察到的第三件事是成本管理。比如说,我们有一个工作负载。 通过拆分我们的智能体,我们可以获得相同的结果,有时甚至更好。 拆分成许多不同的小型智能体,通常由开放权重模型驱动。 我们看到成本降低了大约95%到98%。 我们看到一些人迁移到多个更小、确定性更高的智能体后,F1分数有所提高。 然后我们帮助客户做到这一点。

Speaker 0

you mentioned kind of like minimizing switching costs between models. i think probably the first way you did this was have kind of like an OpenAI compatible endpoint. and so people could just, because that was like the standard for how, and this is actually an assumption. i'd be curious if i'm wrong. but a follow-up for this would be like, how many different types of endpoints do you support today? do you also support like anthropic style endpoints? and OpenAI has chat and response format. so how do you keep on top of all of those? and which ones do you prioritize to really standardize on?

你提到了尽量降低模型之间的切换成本。 我想,你们最初实现这一点的方式,可能是提供一个兼容OpenAI的端点。 这样人们就可以直接使用,因为那在当时相当于一种标准。不过这其实只是我的一个假设。 我很好奇这个假设是否有误。 接着想问的是,你们现在支持多少种不同类型的端点? 你们也支持Anthropic风格的端点吗? OpenAI也有Chat和Responses格式。 那么你们是如何跟上所有这些变化的? 又优先选择哪些格式作为真正的标准?

Speaker 1

Yeah, we try to go where developers are at a high level. And so we support responses API, the chat completions API, the Anthropic messages API. We also support a bunch of other APIs for multimodal models, like images and audio and real-time audio and video. You know, in general, like we build skins so that when a really good API shape emerges in the ecosystem, you can just use it with open router and use it for any model. so whatever your preferred api shape is, if it is a good api, we'll build a skin for it and make all models work with it.

是的,从总体上说,我们尽量适应开发者的使用习惯。 因此我们支持Responses API、Chat Completions API和Anthropic Messages API。 我们还支持许多其他用于多模态模型的 API,比如图像、音频以及实时音视频 API。 一般来说,我们会开发适配层,这样当生态中出现一种真正优秀的 API 形式时,你就可以通过 OpenRouter 用它来调用任何模型。 所以无论你偏好哪种 API 形式,只要它足够好,我们就会为它开发适配层,让所有模型都能通过它调用。

Speaker 0

do you know what the most popular skin is right now? is it still chat completions?

你知道目前最受欢迎的适配层是哪一个吗? 还是 Chat Completions 吗?

Speaker 1

it's still chat completions. when people don't have strong preferences, we guide them to the open responses. Standard which we worked on with that ai about that a little bit. It is based on OpenAI's responses api format and it's effectively the same thing except with company or model lab prefixes. in a few places for things like server tool names. and it's a bit more extensible, and it works for models that have multimodal outputs. so they might be like thinking, then they might output something, they might have a preamble, they might have an image, and then comes a video, and then comes some more text. and you want like an api that supports a really rich response like that, which the chat completions api does not.

还是 Chat Completions。 当用户没有特别强烈的偏好时,我们会引导他们使用 Open Responses 标准,我们和 AI 方面就此做过一些合作。 它基于 OpenAI 的 Responses API 格式,基本上是一样的,只是在一些地方加上了公司或模型实验室的前缀, 比如服务器端工具名称。 它的可扩展性也更好,而且适用于具有多模态输出的模型。 所以模型可能先进行思考,然后输出一些内容,可能有一段前言,可能有一张图片,接着是一段视频,然后又有一些文本。 你需要一个能支持这种非常丰富的响应的 API,而 Chat Completions API 做不到这一点。

Speaker 0

and were you guys part, did you help come up with open responses or is that something you adopted from the community?

那你们参与其中了吗?你们有帮助设计 Open Responses,还是从社区采用的?

Speaker 1

we worked with, basically OpenAI came up with the structure and we provided a bunch of feedback and then we helped like co-launch it.

我们参与了合作。基本上是 OpenAI 提出了这个结构,我们提供了很多反馈,然后帮助共同发布了它。

Speaker 0

you mentioned open models before. how much of the traffic that you guys see is open versus kind of like closed or proprietary models? and how have you seen that change over the past three years?

你之前提到了开放模型。 你们看到的流量中,开放模型和封闭或专有模型各占多少? 过去三年里,这个情况发生了怎样的变化?

Speaker 1

we've generally seen more of our volume on closed weight models, but way more of our tokens on open weight models. and the trend over time has been the frontier models will innovate and come up with some new way of using intelligence or breakthrough in the kinds of intelligence people like. So examples are like sonnet 3.5 OpenAI 01 song at 4 or a Claude Opus 4.5 and each one of these breakthroughs we see like a huge surge in dollar volume and then people, you know, a month or two later, look at their invoices and they're like, whoa, what's going on here? And at the same time, other model labs are like. we can do this too. and they build open weight models that we also show in the marketplace. american companies like fireworks, base10, and many others serve them also on the marketplace. and then we see costs come down for those similar workloads, but tokens generally continue to grow.

总体而言,我们的调用量更多来自封闭权重模型,但 token 用量则多得多地来自开放权重模型。 随着时间推移,趋势是前沿模型会不断创新,提出新的智能运用方式,或在人们喜欢的智能类型上取得突破。 比如 Sonnet 3.5、OpenAI O1、Sonnet 4 或 Claude Opus 4.5。每出现一次这样的突破,我们都会看到交易金额大幅激增。然后一两个月后,人们看到账单,就会说:“哇,这是怎么回事?” 与此同时,其他模型实验室也会说: “我们也能做到。” 然后他们会开发开放权重模型,我们也会在平台上展示这些模型。 Fireworks、Base10 等许多美国公司也在平台上提供这些模型的服务。 接着,我们看到类似工作负载的成本下降,但 token 用量总体上仍在持续增长。

Speaker 0

how does the marketplace work? so if there's an open weight model like kimmy k3, i'm sure you have a bunch of different providers that are serving that. When I, a user, go into OpenRouter, do I just say like I want Kimi K3 and you choose which of the providers to route to? Can I specify like, hey, I want Fireworks or I want Modal or something like that?

这个平台是怎么运作的? 比如说,有一个像 Kimi K3 这样的开放权重模型,我猜你们有很多不同的供应商在提供它。 作为用户,我进入 OpenRouter 时,是不是只要说我想用 Kimi K3,然后你们就会选择将请求路由到哪家供应商? 我能不能指定说:“我想用 Fireworks 或 Modal”,之类的?

Speaker 1

Yes, both are possible. Um, most users just let us pick providers for them. And in general, we like prioritize providers that are high quality and that match your, your, your high-level preferences. So if it's, if you're looking for like low price providers, you can specify that and we'll give you the lowest prices in the market. If you're looking for the fastest possible inference, you specify that, we give you the fastest inference, whatever it actually is. in your region of the world. And then we do continuous benchmarking of all the providers, like every five, 10 minutes. We run benchmarks to look for tool call quality changes. And we see massive differences happen over the course of a week, but like for all providers. And then we give these providers real-time feedback about how they're doing and how high quality their inferences for different types of workloads. Sometimes it's only for long context. inputs. sometimes it's only for batch inputs. and then they work on those and fix them. they can monitor the results on open router themselves. and then if you want to specify specific providers, you can do that really easily at no cost. i think we're the only gateway like that. and then if you have specific preferences on the data policies that you care about, like if you want zero data retention or if you want. Um, you know, providers in a certain region. If you want eu routing, eu, geo fence routing or us geo fence routing. So only providers and inference that all happens within us borders. You just set that via api or in your in your settings and it and it just works.

可以,两种方式都行。 嗯,大多数用户都让我们替他们选择供应商。 总体来说,我们会优先选择质量高、符合你总体偏好的供应商。 所以,如果你想找价格低的供应商,可以指定这一点,我们会给你提供市场上的最低价格。 如果你想要尽可能快的推理速度,也可以指定这一点,我们会给你提供实际可用的最快推理服务, 也就是你所在地区能用到的最快服务。 然后我们会持续对所有供应商进行基准测试,大约每五到十分钟一次。 我们会运行基准测试,观察工具调用质量的变化。 我们发现所有供应商在一周内都可能出现巨大的变化。 然后,我们会实时向这些供应商反馈他们的表现,以及他们对不同类型工作负载的推理质量。 有时只是针对长上下文 输入。 有时只是针对批量输入。 然后他们会着手处理并修复这些问题。 他们可以自己在 OpenRouter 上监控结果。 如果你想指定特定的提供商,也可以非常轻松地做到,而且无需额外付费。 我认为我们是唯一这样的网关。 如果你对数据政策有特定要求,比如希望数据零留存,或者希望…… 嗯,你知道,比如选择某个地区的提供商。 如果你想要欧盟路由、欧盟地理围栏路由,或者美国地理围栏路由。 也就是说,只使用在美国境内的提供商,所有推理也都在美国境内进行。 你只需通过 API 或在设置里进行配置,就能直接使用。

Speaker 0

you mentioned people choosing or optimizing for kind of like cost, latency. so we run a developer survey every year, and one of the questions we've asked for the past two years is basically what is top of mind for folks. and the number one answer ends up being usually like accuracy and just like performance. and then the second and third, roughly around even, are kind of like latency and cost. i'm curious how you've seen your users kind of like prioritize those three dimensions, like accuracy, latency, cost. you mentioned a little bit how this changes around like... big new frontier model releases, but curious for kind of like any insights you have there around their prioritization.

你提到人们会针对成本、延迟之类的因素进行选择或优化。 我们每年都会做一次开发者调查,过去两年我们问的一个问题基本上就是大家最关注什么。 排在第一位的答案通常是准确性和性能。 然后第二和第三位大致不相上下,分别是延迟和成本。 我很好奇,在准确性、延迟和成本这三个维度上,你观察到用户是如何排序的。 你稍微提到过,在重大新前沿模型发布时,情况会如何变化;但我还是很好奇,你对他们的优先级排序还有哪些见解。

Speaker 1

it totally depends on the use case. like, let's look at a really specific example. let's say you're making an assistant like instinct or poke or muse. you know, if a user is just saying something like, you know, like what is two plus two, you don't need any tools. it's a fairly defined query that all the models are going to know and have memorized. and so it doesn't make sense to kind of like go look for like. like a reasoning model or like a model that you know is going to take a long time or to like run it in the background, you just answer it right away. if it's something more elaborate like check my email, then there's all kinds of preferences you have to pull into context. there's like real tool usage that's going to happen. like the quality of the output you know is going to matter and be really high entropy. it makes sense to use a more powerful model, and you don't care as much about latency. the developer of the app is going to have preferences about what to do. the framework i usually provide here is that you can kind of group all tasks into three buckets, low, medium, and high entropy. low entropy is like it's a very defined thing. we've done it a million bazillion times. You don't need a frontier model for it and the result is extremely verifiable. An example would be who should review this PR? The medium entropy task would be like, it's going to be pretty different. It's going to be hard to verify it. But we know the rough shape. We have structure that we're going to be looking for every time. We're going to want reviewing a PR. We're going to want some checks that always have to happen and some things that always get done. And it's going to be done also on a pretty repetitive basis. so that would be medium entropy. and you do want like a good model for that, but you probably, you might not need a frontier model. you could probably use open weight models for most review, like pr review tasks, but you should probably check them with a frontier model every once in a while to figure out how to continuously make them better. and then the last category is high entropy. we have no idea what the output is going to look like. and that, an example of that task would be writing code, building a whole new feature. like, it's going to be totally different every time. like, we don't know exactly the shape of the deliverable. maybe we know some things at the beginning and end that need to happen. and so it makes a lot of sense to use a frontier model there. and there's probably one more category that's coming in the future, which will be research. more companies doing research on their domain. and we'll probably see frontier models move even further up the chain into that research bucket. and more like neo labs and open weight models.

这完全取决于具体的使用场景。 比如,我们来看一个非常具体的例子。 假设你正在开发一个像 Instinct、Poke 或 Muse 这样的助手。 如果用户只是问,比如二加二等于几,你不需要使用任何工具。 这是一个相当明确的问题,所有模型都会知道并记住答案。 所以,去找那种…… 推理模型,或者你知道会花很长时间的模型,或者在后台运行它,都没有意义;直接回答就好了。 如果是更复杂的事情,比如查看我的邮件,那你就需要把各种偏好纳入上下文。 而且确实需要使用工具。 输出的质量会很重要,而且结果会有很高的不确定性。 这时使用更强大的模型就很合理,而且你也不会那么在意延迟。 应用开发者会对该怎么做有自己的偏好。 我通常会用这样一个框架:你可以把所有任务分为三类——低熵、中熵和高熵。 低熵任务就是那种定义非常明确的事情。 我们已经做过无数次了。 它不需要前沿模型,而且结果非常容易验证。 比如:谁应该审查这个 PR? 中熵任务则会有很大的变化。 它会很难验证。 但我们知道大致的形式。 每次都有我们要寻找的结构。 比如我们想要审查一个 PR。 我们需要一些必须始终执行的检查,以及一些必须始终完成的事情。 而且这些工作也会相当频繁地重复进行。 所以这属于中等熵。 你确实需要一个不错的模型来做这件事,但可能不需要前沿模型。 对于大多数审查任务,比如 PR 审查,你很可能可以使用开放权重模型,但也应该时不时用前沿模型检查一下,看看如何持续改进。 最后一类是高熵。 我们完全不知道输出会是什么样子。 这类任务的例子包括写代码、构建一个全新的功能。 每次都会完全不一样。 我们并不确切知道交付成果会是什么形式。 也许我们知道开头和结尾需要完成哪些事情。 所以在这种情况下使用前沿模型很合理。 未来可能还会出现另一类,就是研究。 更多公司会在自己的领域开展研究。 我们可能会看到前沿模型进一步向上发展,进入研究这一类别。 而像 Neo Labs 和开放权重模型这样的模型

Speaker 0

taking the other buckets. interesting.

则会承担其他类别的任务。 有意思。

speaking of other types of models, one of the ones that came out over the last week is jev, a new type of decision model. i saw that you guys already support it. what are your thoughts on jev?

说到其他类型的模型,上周发布的模型中有一个叫 Jev,是一种新型决策模型。 我看到你们已经支持它了。 你怎么看 Jev?

Speaker 1

yeah, Jev, i think is fantastic. it's a, it's, you might look at it and think, oh, this is just a classifier, which is like a type of model that takes a big input and, you know, figures out some enum, some like a list of possible values that are, that one of which might be correct or it could be multiple choice and then gives you those. Jev is in between that kind of model and a structured output small LLM in terms of the developer experience and how developers think about it. You kind of specify a clear type of output that you're looking for, which could be like classifying something. And Jev just kind of figures out which of those things is most likely and what the likelihood of each value is. it's also a good model. like, we just haven't had, like, frontier-ish, zero-shot classifiers in the market. we haven't had brands really compete on that front. and so typesafe is the first one to do that. and to, like, build a brand around it. and it is a worthwhile brand. a worthwhile, i think, niche in ai, because a lot of developers do have very discrete, low entropy workflows, and they want to do a million of them. they want to do them millions and millions of times per day per user. so you can actually kind of compose intelligence by scaling it up in a way that was not possible before because it was too slow and too expensive. so we're seeing like lots of kind of cool use cases of Jev, like imagine your cursor like moving across the screen and as your cursor moves, Jev can like figure out like are you getting like closer or further away from something? or imagine like searching as you type. it's like a whole new way of searching documents without having to index them or generating uis or building games. like you can kind of. Jev could be like that kind of model, which people are calling decision models or system one models, could be the way the next like consumer ai app emerges because you can do very discrete things, but in a really intelligent way. and we haven't had many consumer ai app innovations since character ai on ChatGPT, obviously, before that. so like i'm very, very excited about it.

嗯,我觉得 Jev 非常棒。 你可能会看着它觉得,哦,这只是个分类器,也就是一种接收大量输入,然后找出某个枚举值的模型:它有一组可能的值,其中一个可能是正确答案,也可能有多个正确答案,然后它会把结果给你。 从开发者体验以及开发者看待它的方式来说,Jev 介于这类模型和能输出结构化结果的小型大语言模型之间。 你需要明确指定想要的输出类型,比如对某个东西进行分类。 然后 Jev 会判断其中哪一个结果最有可能,以及每个值的概率是多少。 它本身也是个好模型。 市场上一直没有接近前沿水平的零样本分类器。 也没有什么品牌真正围绕这方面展开竞争。 所以 Typesafe 是第一个这么做的。 也是第一个围绕它打造品牌的。 而且这是个值得打造的品牌。 我认为这也是 AI 领域一个值得投入的细分市场,因为很多开发者确实有非常离散、低熵的工作流程,而且他们想运行一百万次。 他们希望为每个用户每天运行数百万次。 所以,你实际上可以通过扩大规模来组合出智能,而这在以前是不可能的,因为速度太慢、成本太高。 所以我们看到了 Jev 的很多很酷的用例。比如,想象一下你的光标在屏幕上移动,Jev 可以在光标移动时判断,你是在靠近还是远离某个东西? 或者想象一下,边输入边搜索。 这就像是一种全新的文档搜索方式,不需要给文档建立索引,也可以用来生成用户界面或开发游戏。 你可以说是…… Jev 这类模型,人们称之为决策模型或系统一模型,可能会成为下一个消费级 AI 应用出现的途径,因为你可以用非常智能的方式完成高度离散的任务。 而且自从 Character AI 以来,我们还没有看到多少面向消费者的 AI 应用创新,当然在那之前有 ChatGPT。 所以我对此非常、非常兴奋。

Speaker 0

do you think there'll be more competition in this space? do you think the labs will do something like this? or do you mostly see them doing like the research, the higher order stuff?

你认为这个领域会出现更多竞争吗? 你认为那些实验室会做类似的东西吗? 还是你觉得它们主要会做研究和更高层次的事情?

Speaker 1

yeah, the economics are kind of different. so i think it's an open question about whether the labs will put their best people on it. there's a good chance that they don't, because it is like kind of competing on the like low end of the market for like overall inference volume. i do think we'll see like neolabs compete and open weight versions emerge. i also think that. the data is, it may be very different. there's a lot of like edge to type safe that just involves their, like how they formatted their data and how like, it may be like quite distinct from the way llms are trained. and the use cases are quite different. so i'm optimistic. i think it could easily be a new category where the model labs probably do have some kind of offering. but even if, let's say, the model lab, your preferred model lab, comes up with a decision model, and you use it to check the output to make sure it did what the user asked or it, like, you know, accomplished something on the side, and you just want that decision really quickly. it's really good to have a different model family do that. you don't, like, neurodiversity is a feature of your product. you want to have multiple models checking each other because you want the intelligence of different companies to be composed together for you. it's just going to be better for your app.

是的,这里面的经济模式有些不同。 所以我认为,实验室是否会把最优秀的人才投入其中,还是个未知数。 很可能它们不会这么做,因为从整体推理量来看,这有点像是在争夺市场的低端部分。 不过我确实认为,我们会看到 Neolabs 参与竞争,也会出现开放权重的版本。 我也认为, 数据可能会非常不同。 Type Safe 的很多优势都与他们如何组织数据有关,而这可能与大语言模型的训练方式截然不同。 而且使用场景也很不一样。 所以我持乐观态度。 我认为这很容易成为一个新类别,而模型实验室可能也会推出某种产品。 但即便你偏爱的模型实验室推出了一个决策模型,你用它来检查输出,确保它完成了用户的要求,或者完成了其他任务,而你只想尽快得到这个判断。 让另一个模型系列来做这件事会非常好。 你不需要——神经多样性是你产品的一个优势。 你会希望有多个模型相互检查,因为你希望将不同公司的智能组合起来为你所用。 这对你的应用只会更好。

Speaker 0

better for your agent. can you speak a little bit more about that? how have you seen people bring that neurodiversity in practice to some apps that they're building?

对你的智能体更好。 你能再多谈一点这个吗? 你见过人们如何在他们开发的应用中实践这种神经多样性?

Speaker 1

we've seen, well, i think the most common use case was, it really didn't get very popular until like february of this year, which is writing code with opus and checking it with gpt-5. and like a lot of people did that. it was a super smart thing to do. like, in fact, it became pretty clear to people that like, oh, like actually, you know, doing both of these models like improves my output or improves the quality of my code significantly, but having only opus check its work was much, much worse. and it also makes sense intuitively to people that they should be, you know, not having, just like you wouldn't have one person write and review their own code. it's just a lot better if you have two really smart people write and review each other's code. this kind of like intuitive translation into ai made sense. and so we've seen people kind of like take that concept and apply it to other parts of their app as well, where maybe like. they'll have one model run a initial pass to kind of put together its assumption of what to do. another model check that outline to see, like, hey, did we go broad enough? did we brainstorm enough? did we actually use all the tools? and then a final model to kind of compose the results together and give the user like the best of both or more worlds.

我们看到,嗯,我认为最常见的用例是,用 Opus 写代码,再用 GPT-5 检查。这个做法直到今年二月左右才真正流行起来。 很多人都这么做。 这是一种非常聪明的做法。 事实上,人们逐渐意识到,同时使用这两个模型能显著改善产出或代码质量,而只让 Opus 检查自己的工作,效果就差得多。 这从直觉上也说得通:就像你不会让同一个人自己写代码又自己审查一样。 让两个非常聪明的人编写代码并互相审查,效果要好得多。 把这种直觉应用到 AI 上也很合理。 所以我们看到人们也把这个理念应用到自己应用的其他部分,比如说, 他们会让一个模型先做初步处理,整理出它认为应该怎么做。 再让另一个模型检查这个大纲,看看思路是否足够开阔。 头脑风暴是否充分? 是否真的用到了所有工具? 最后再让一个模型把结果整合起来,取各家之长,给用户最好的结果。

Speaker 0

when you're switching between these different models, do you also have to switch harnesses? like how much does the model harness fit matter? can you take claude code and swap out anthropic models for Kimi K3 and still get reasonable performance?

在这些不同模型之间切换时,你还需要切换配套框架吗? 模型和配套框架的匹配程度有多重要? 你能否在 Claude Code 中把 Anthropic 的模型换成 Kimi K3,同时仍然获得不错的表现?

Speaker 1

the model harness we've found mostly matters on price. so the quality of the outputs, you squint at it, and they're kind of the same if you're holding the model constant. but the price of the output might be a lot different. so on our rankings page, we show the top harnesses. and the average cost per session for different models, so that you can see for each harness which models are cheapest for like equivalent types of tasks. and we have like more data coming soon that will make this really easy to explore. in general, like, when composing outputs together, we have something called fusion that, like, composes the results of multiple models and outputs a kind of a composite result. we find that, like, it gets, like, frontier quality, and a lot of other companies have found this too, frontier quality, but at much lower cost. so even in a harness agnostic sense, this is a good way of doing cost management. like our results for like the deep research task set, for example, showed like about half, like users could pay half the price of what they would have gotten with fable directly just by like composing open weight models together.

我们发现,模型配套框架主要影响的是价格。 所以,如果模型保持不变,仔细看看这些输出的质量,其实都差不多。 但输出的价格可能相差很大。 所以在我们的排行榜页面上,我们展示了排名靠前的工具框架。 还有不同模型每次会话的平均成本,这样你就能看到,对于每个框架,哪些模型在完成类似任务时最便宜。 我们很快还会提供更多数据,让这些信息更容易探索。 一般来说,在组合输出时,我们有个叫 Fusion 的功能,它会把多个模型的结果组合起来,输出一个综合结果。 我们发现,它能达到前沿水平的质量,但成本低得多;很多其他公司也有同样的发现。 所以即使不考虑具体使用哪种框架,这也是一种很好的成本管理方式。 比如,我们在深度研究任务集上的结果显示,仅仅通过组合开放权重模型,用户就能以直接使用 Fable 大约一半的价格获得结果。

Speaker 0

and this is with fusion. yes. and so how does fusion work for something like deep research? because that's got like. a hundred different LLM calls going on even if it's just one model running in a harness. And so when you run something like deep research, do you run it like end-to-end with different models and then aggregate the results or is it like each call going to four different models and and you're aggregating there or am I misunderstanding completely how it works?

而这用的就是 Fusion。 是的。 那么,对于深度研究这样的任务,Fusion 是怎么工作的? 因为那里面会有…… 即使只有一个模型在框架里运行,也会发生上百次大语言模型调用。 所以,当你运行深度研究这样的任务时,你是用不同的模型分别端到端地运行,然后汇总结果,还是说每次调用都会发给四个不同的模型,再在那里汇总?还是我完全误解了它的工作方式?

Speaker 1

Yeah, yeah, the um the way we built our fusion um endpoint in in June was as a server tool. So you'd have one model that's in charge of asking for help, like, oh, this is a hard task, this involves a lot of planning, this involves some kind of adversarial um like I want I want to like. i want to stress test my thinking. and then the model decides to call fusion. and fusion involves running a pipeline of models that like double check each other, like look at the strengths and weaknesses of each other's arguments, like go really, really wide on the search set of ideas. it's just, it's been the case. Like that companies train on different data. Like LLMs are not all training on the same data. Um, like the model labs have different data sources and it's useful to be able to tap into all of them. So that's what the like point of fusion of like fusion approaches usually is.

对,对。我们在六月份把 Fusion 端点构建成了一个服务器工具。 所以会有一个模型负责请求帮助,比如说:“哦,这是个困难的任务,需要大量规划,还涉及某种对抗性的……我想,我想……” “我想对自己的思路做压力测试。” 然后这个模型就决定调用 Fusion。 而 Fusion 会运行一个由多个模型组成的流程,让它们互相核查,审视彼此论点的优缺点,并非常广泛地搜索各种思路。 就是,情况一直是这样的。 比如,各家公司使用不同的数据进行训练。 大语言模型并不是都用相同的数据进行训练。 嗯,模型实验室有不同的数据来源,能够利用所有这些数据源是很有用的。 所以这通常就是融合方法的目的。

Speaker 0

Another one of these like smart features that you guys have, I think is like routing capabilities. How do you see people doing routing is in practice? Is it is it semantic routing? Is it based on what does routing look like?

我觉得你们还有另一个智能功能,就是路由能力。 你认为人们在实践中是怎么做路由的? 是语义路由吗? 它是基于什么的?路由具体是怎样的?

Speaker 1

So we have. three different kinds of routing on open router. one is a really simple thing, which is just a model slug that you use instead of opus or gpt-6 that picks the right model for the job based on our data and the type of task that you're running. so we kind of classify the task. see that like, oh, this is a, um, you know, this is a tool, like you're, you're like searching for, or you're, you're doing SQL generation, you're generating SQL code. What is the most popular model by dollar volume, um, for generating SQL code? And, you know, do we have any benchmarks that like support that popularity? And then we'll give you that model and, uh, and also incorporate all of your company settings, like what sort of models you have access to, what providers you have access to, to like give you that result.

我们有。 OpenRouter 上有三种不同的路由。 第一种非常简单,就是使用一个模型标识符来代替 Opus 或 GPT-6,它会根据我们的数据和你正在执行的任务类型,为这项任务选择合适的模型。 所以我们会对任务进行分类。 判断出,比如说,哦,这是一个,嗯,你知道,这是一个工具,比如你在搜索,或者你在生成 SQL,生成 SQL 代码。 嗯,按消费金额计算,用于生成 SQL 代码的最受欢迎的模型是什么? 然后,你知道,我们有没有什么基准测试能支持它的受欢迎程度? 然后我们会给你推荐那个模型,同时也会考虑你公司的所有设置,比如你能使用哪些模型、哪些提供商,从而给出结果。

Speaker 0

And that's like a text classifier that runs over the input and...

这相当于一个对输入进行分析的文本分类器,然后……

Speaker 1

Right. Right. the second thing that we do is we give access to all routers in the ecosystem that work with us. so like sakana, fugu, unbiased, which we launched as a stealth model last week. they all have kind of like interesting approaches to routing that are all, that are very different. and so we let open router users just use those routers right on the marketplace in the same first party, in the same experience as our first party router. like our goal is really to just give users the best routing experiences regardless of whether they came from our team. and then the third approach is building your own router, which is what like most scaling companies. i see doing. they maybe use routers to kind of explore things and get to product market fit, and then past product market fit, you build your own, becomes important ip for your company, like just like your prompts are important ip for your company, how you're composing different models together and why. and to help those companies, we provide all kinds of apis, we provide an mcp, we provide an eval tool that helps you like continuously check to see that you're using the best models for each part. of your code base, but you can just run in an auto research loop and it works really well. so that's kind of the build your own router approach.

对。 对。 我们做的第二件事,是提供对生态系统中所有与我们合作的路由器的访问。 比如 Sakana、Fugu,还有我们上周以隐身模型形式推出的 Unbiased。 它们采用的路由方法都很有意思,而且彼此非常不同。 所以我们让 OpenRouter 用户可以直接在市场上使用这些路由器,享受与使用我们自家路由器时同样的原生体验。 我们的目标其实就是给用户提供最好的路由体验,不管它们是不是出自我们的团队。 第三种方法是构建自己的路由器,而这也是大多数正在规模化发展的公司 我看到正在做的事情。 他们可能会先用路由器来探索,找到产品与市场的契合点,之后再构建自己的路由器,这会成为公司重要的知识产权。就像提示词是公司的重要知识产权一样,你如何将不同模型组合起来,以及为什么这样组合,也是如此。 为了帮助这些公司,我们提供各种 API、一个 MCP,以及一个评估工具,帮助你持续检查是否在每个部分都使用了最好的模型。 也就是代码库的每个部分。你只要让它在自动研究循环中运行,效果就很好。 这就是构建自己的路由器这种方法。

Speaker 0

one of the topics that i think we've seen around routing is whether it belongs kind of like at the gateway layer or in the harness. i'm curious if you have kind of like a take or opinion on this.

我觉得我们看到的一个关于路由的话题是,路由究竟应该放在网关层,还是放在 harness 里。 我很好奇你对此有没有什么看法或观点。

Speaker 1

Yeah, I think the there are a lot of advantages to doing it in the harness. Um, the which is why I think the third approach, build your own router, is really good. I think most companies will build their own harnesses. Not all harnesses will be public. Most harnesses will be private to like with a company and maybe available behind an API. But I do think like most software service companies or companies with some kind of proprietary data that they're interested in making available via API will end up building their own harness anyway. And so I think that approach is probably like best for enterprise. In the gateway though, like just as a model slug, like the results are good. Like the benchmark results are pretty interesting. It does work across multiple harnesses. And so I found it to be like a good way of experimenting with new products. Maybe you have internal tools where you really want to get the cost down. Like this is an internal tool here. Um, just use a router. And like, don't, you know, you don't need, it's not the main part of your business. So like, what, like, don't overthink this problem. Just get the cost down. Like, it, it just is fine to use in the gateway.

是的,我觉得在 harness 里做路由有很多好处。 嗯,这也是为什么我觉得第三种方法,也就是构建自己的路由器,非常好。 我认为大多数公司都会构建自己的 harness。 并不是所有 harness 都会公开。 大多数 harness 都会由公司私有,可能会通过 API 提供访问。 但我确实认为,大多数软件服务公司,或者拥有某种希望通过 API 提供访问的专有数据的公司,最终还是会构建自己的 harness。 所以我认为这种方法可能最适合企业。 不过在网关里,只要把它作为模型标识来用,效果就不错。 基准测试的结果也很有意思。 它确实能在多个测试框架中运行。 所以我发现这是一个试验新产品的好方法。 也许你有一些内部工具,特别想降低成本。 比如,这里就是一个内部工具。 嗯,直接用路由器就行。 你知道,这又不是你业务的核心部分,没必要…… 所以,别把这个问题想得太复杂。 把成本降下来就好。 在网关里用它完全没问题。

Speaker 0

How do you think about like prompt caching with, with routing? Like, do you, do you do things like if, if a second request comes in on the thread and it routes to a different model that breaks the prompt cache, like do you take that into account when doing some of the routing? Is that possible?

你们是怎么看待路由中的提示词缓存的? 比如,如果同一会话的第二个请求被路由到了另一个模型,导致提示词缓存失效,你们在路由时会考虑到这一点吗? 这能做到吗?

Speaker 1

Yeah. Yeah. So we, we detect when there's a, a cache hit and we pin you to that model and provider with our auto router until that cache hit expires. i think this can get a lot smarter. and we will be announcing something really soon that is a lot smarter. i think we also provide this information via api. so if you're building your own router, you can see very clearly if you have a cache hit going on, and you can just act on that fact. you know, keep people pinned to that model instead of pushing people to switch.

对。 对。 我们会检测缓存命中,然后通过自动路由器将你固定到那个模型和提供商,直到该缓存命中失效。 我觉得这还可以做得智能得多。 我们很快就会公布一个智能得多的方案。 我想我们也通过 API 提供这些信息。 所以,如果你在构建自己的路由器,就能很清楚地看到是否发生了缓存命中,然后根据这个情况采取行动。 比如让用户继续使用那个模型,而不是促使他们切换。

Speaker 0

awesome. maybe last question to round it up. what is one thing that you're most excited about that's on the horizon that you see coming or think will come and, yeah, just can't wait for it to get here?

太棒了。 最后问一个问题,做个收尾。 展望未来,有什么事情是你看到即将发生或者认为会发生,让你最兴奋、迫不及待想看到它到来的?

Speaker 1

Well. i think there's like better ways of pricing models. and i think there's like a couple cool experiments that we're going to work on.

嗯。 我认为模型定价有更好的方式。 而且我想我们会尝试几个很酷的实验。

Speaker 0

are you allowed to talk about any of them? or are those top secret?

你能透露其中任何一个吗? 还是说那些都是绝密?

Speaker 1

i can't, i won't here. but like we're a marketplace. and a lot of what we do is figuring out how to make intelligence more liquid. and get rid of inefficiencies we see in the market. and we see so many inefficiencies. it's still an early market. it's moving way faster than most markets before. but there's all kinds of weirdness because we live in a balkanized world. territory where people have these gpus and they're kind of like imagine countries that have like cordoned off their gpus and just some gpus are just totally idle for like the whole weekend and then during the week they're like they're back on. people's weekend weekday usage of ai is so different and there's all kinds of inefficiencies that happen there for example. there's, you know, inefficiencies between models. and because we have, like, really deep relationships with providers, there's a lot of cool things we can do to help. we have, like, discounting for a discounting api, for example. so, like, over one weekend, providers were, like, automatically discounting glm 5.2 on open router. and it saved, like, a few users $100,000 in just like one weekend. so we have more things like that coming that i'm pretty excited about.

我不能,我不会在这里说。 不过,我们是一个市场平台。 我们做的很多事情,都是在探索如何让智能的流通更加顺畅, 以及消除我们在市场中看到的低效现象。 我们看到了太多低效之处。 这还是一个处于早期阶段的市场。 它的发展速度远远超过以往的大多数市场。 但这里存在各种奇怪的现象,因为我们生活在一个分割的世界里。 人们在各自的地盘上拥有这些GPU,你可以想象成各个国家把自己的GPU圈了起来。有些GPU整个周末都完全闲置,到了工作日又重新运转起来。 人们在周末和平日使用AI的情况截然不同,比如这里面就会出现各种各样的低效现象。 你知道,不同模型之间存在效率差异。 而且因为我们和供应商有非常深厚的合作关系,所以我们可以做很多很酷的事情来提供帮助。 比如,我们有折扣功能,还有一个折扣 API。 有一个周末,供应商就在 OpenRouter 上自动给 GLM 5.2 打折。 仅仅一个周末,这就帮几位用户节省了 10 万美元。 我们还会推出更多类似的功能,我对此非常期待。

Speaker 0

awesome. i didn't think we'd touch on the balkanized war analogy there, but i think it was a really fun conversation. so thank you for joining me, alex, and let's give him a big round of applause.

太棒了。 我没想到我们会谈到巴尔干化战争的类比,不过我觉得这次对话非常有趣。 感谢你来和我对谈,Alex,让我们用热烈的掌声感谢他。

Overview

OpenRouter 联合创始人 Alex Atallah 围绕企业如何使用多模型展开讨论:模型生态持续分化,组合不同模型、降低供应商锁定和控制成本,促使企业逐渐增加模型家族。他提出按任务熵选择模型,并建议用不同模型家族交叉检查智能体输出。访谈还涉及 API 格式、供应商持续评测、决策模型 Jev、Fusion 多模型组合,以及网关路由与自建路由的取舍。最后,他讨论提示缓存和利用闲置算力改善模型定价的可能性,为构建兼顾质量与成本的 AI 应用提供参考。

Chapters

00:05 OpenRouter 的起源与多模型市场

OpenRouter 于 2023 年春季创立,最初看到了开放权重模型和多元模型生态的早期迹象,后来发展为帮助用户发现模型、路由请求和管理成本的市场及网关。平台已支持图像、音频和视频等能力,并与 LangSmith、LangChain 集成;其模型使用数据和分析也通过公开渠道及 API 提供。

OpenRouter 的定位

03:43 企业增加模型家族与统一 API

Atallah 观察到,企业通常从一至三个模型家族起步,随后为组合不同模型的优势、避免供应商锁定和降低成本而增加选择。他称部分客户把智能体拆成多个较小、较确定的智能体后,成本下降约 95% 至 98%,F1 分数也有所改善。OpenRouter 支持 Responses、Chat Completions 和 Anthropic Messages 等接口;Chat Completions 仍最常用,但对没有偏好的开发者,平台推荐更适合丰富多模态输出的 Open Responses。

支持的主要 API 接口

07:55 开放模型流量与供应商选择

OpenRouter 的付费量更多来自闭源权重模型,Token 用量则更多来自开放权重模型。Atallah 观察到前沿模型突破常带来支出激增,随后类似能力的开放模型出现,使相似工作负载的成本下降。用户既可指定供应商,也可让平台按价格、速度、地区或数据保留政策选择;平台称每隔五至十分钟持续评测供应商,包括工具调用质量,并向供应商反馈结果。

闭源模型与开放权重模型的流量和 token 占比

11:21 按任务熵选择模型

模型选择取决于任务:简单且容易验证的低熵任务,如决定谁来审核 PR,通常不需要前沿模型;具有固定检查结构但较难验证的中熵任务,如 PR 审查,可考虑开放权重模型并定期用前沿模型检查;输出形式难以预知的高熵任务,如开发全新功能,更适合前沿模型。Atallah 预计未来领域研究可能成为更高一层的任务类别。

按任务熵划分三类任务

14:57 决策模型 Jev 与交叉检查

Atallah 将 Jev 描述为介于分类器和结构化输出小语言模型之间的决策模型:开发者指定输出类型后,它判断可能的结果及其概率。他认为这类模型适合大量、离散的低熵任务,可能支持搜索即输入等应用,但大型模型实验室是否会重点投入仍是开放问题。对于智能体检查,他建议使用不同模型家族;例如用 Opus 写代码、GPT-5 审查,而非让同一模型独自检查自己的工作。

Jev 的模型定位

21:28 Harness 成本差异与 Fusion

Atallah 认为,在模型相同的情况下,不同 harness 的输出质量大致相近,但每次任务的成本可能差异很大。Fusion 作为服务器工具,由主模型在需要规划或检验思路时主动调用,再通过多个模型相互检查和综合结果。他称在深度研究任务集上,组合开放权重模型的成本约为直接使用 Fable 的一半;这一数字属于其所述测试结果,并非所有任务的保证。

不同模型在各 harness 下的平均会话成本对比
深度研究任务中组合开放权重模型的成本结果

24:35 三种模型路由方式

OpenRouter 提供三种路由路径:使用平台路由器按任务类型、模型使用数据、基准测试和企业设置选择模型;通过市场使用其他团队的路由器;或由企业自行构建路由器。Atallah 认为,扩张中的公司常先借助现成路由器探索,找到产品市场契合后再自建,将模型组合方式发展为自身的重要知识产权。

OpenRouter 的三种路由方式

27:22 网关与 Harness 路由及提示缓存

Atallah 认为企业通常适合在自有 harness 中构建路由,因为它能贴合专有数据和应用需求;网关路由则适合跨 harness 实验、内部工具和快速控制成本。为避免切换模型破坏提示缓存,OpenRouter 的自动路由在检测到缓存命中后,会将请求固定到相同模型和供应商,直到缓存命中失效;相关信息也可通过 API 供自建路由器使用。

缓存命中时固定模型和提供商

29:50 闲置算力与模型定价

Atallah 认为模型市场仍有定价和算力利用效率问题,例如工作日与周末需求不同,部分 GPU 在周末闲置。他没有披露未来定价实验的具体内容,但举例称供应商曾通过折扣 API 在一个周末自动降低 GLM 5.2 的价格,为少数用户合计节省约 10 万美元。

周末闲置 GPU 的市场低效问题

Conclusions

03:43 企业增加模型家族的主要动因是组合能力、减少供应商锁定和控制成本。

13:09 模型应按任务的可预测性和可验证性选择,而不是所有任务都使用前沿模型。

19:19 让不同模型家族相互检查,可以利用不同模型的优势改善智能体输出。

10:06 供应商选择不仅涉及价格和速度,还需要持续评测推理质量并考虑数据政策。

28:16 企业核心工作流可考虑自建路由,而网关路由适合快速实验和非核心工具。

29:06 模型路由需要考虑提示缓存,避免切换模型或供应商造成缓存收益损失。