How-to

Baseten:按任务成功率和总成本路由编码智能体,便宜 token 不等于省钱

Why we picked it

Baseten 的 philipkiely 讲了个很多人算错的账:便宜模型跑智能体,token 翻十倍价格降十倍,其实没省钱。他教你按“任务成功一次的总成本”来选模型路由,做编程助手的团队都该算算这笔账。

Baseten 的 philipkiely 在 Full Code Summit 的演讲中提出,编码智能体的模型选择不能只看单价,要按任务成功率和总成本来路由。核心论点是:如果一个任务消耗 10 倍 token 但单价只有十分之一,总成本并没有省下来,反而可能因为任务失败而重跑,成本更高。

Body

演讲给出的方法是把路由决策建立在两个指标上:任务是否一次成功、以及完成任务的总花费。同样一个编码任务,用便宜模型可能要反复多轮、消耗大量 token;用更贵的模型可能一轮就通过测试。演讲完整视频已在 YouTube 发布(youtu.be/u-Gy1PQ4dYw)。

这个思路对大量接入了 Claude、GPT、开源模型做编程助手的团队有直接参考价值:采购决策应该从“每百万 token 多少钱”转向“每个成功任务多少钱”,尤其是智能体任务 token 消耗量远高于单轮对话的场景。

Original · AI Engineer

Cheap tokens can still buy you an expensive task. @philipkiely of @baseten on routing coding agents by task success and total cost. Ten times the tokens at a tenth of the price saves you nothing. Full Code Summit talk: youtu.be/u-Gy1PQ4dYw📊 2 ⚡

Industry Coordinates & Source Verification

This report is categorized under AITOP's "How-to" desk, focusing on US frontier AI labs and Silicon Valley technology leaders. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows and US-China foundation model benchmarks and commercialization comparison. Key entities and technical topics under continuous tracking include Baseten, coding assistants, prompt engineering, cost optimization.

Source attribution: curated from AI Engineer (@aiDotEngineer).

Spotted an error in the summary or translation? Tell us

Get in touch

Questions, corrections or partnership ideas — we read every message.