Glean 拾遗
日刊 /2026-11-11 / Claude 模型怎么选:先调 effort,再换档位

Claude 模型怎么选:先调 effort,再换档位

原文 claude.dev 收录 2026-11-11 06:00 阅读 20 min
AI 解读

Anthropic 官方的模型选择指南:多数编码与知识工作从 Opus 5.5 的 medium effort 起步,范围明确的任务降到 Sonnet 5.5,分类、路由、抽取交给 Haiku 5.5,重大重构与前沿研究才上 Fable 5.2。核心主张是先调 effort 再换模型——同一模型升档未必比换小模型便宜,升到 xhigh 后单价可能已追平更大的模型。文中给出具体数字:Terminal-Bench 3.0 上 Opus 5.5 high 用一半 token 拿到 58.9%;FrontierCode 2.0 上 Fable 5.2 high 与 Opus 5.5 max 基本打平(45.3% vs 45.5%)而每题成本约为一半;SWE-bench Pro 上全部用 low 跑、只把失败项重跑 high,$0.17/题 拿到约 97% 通过率,对比全量 high 的 $0.29/题、95.3%。另附迁移兼容清单(thinking 不可关闭、tool_choice 会返回 400、Haiku 4.5 的 budget_tokens 需换成 effort)和 subagent 定义样例。适合在 Claude 平台上搭 agent 或估算 token 成本的一线工程师。

原文 20 分钟
原文 claude.dev ↗
§ 1

The current Claude lineup has four generally available models: Claude Haiku 5.5, Claude Sonnet 5.5, Claude Opus 5.5 and Claude Fable 5.2. Claude Mythos 5.2 is our most capable model for cybersecurity and life sciences research, available through our verification programs.

If you build on the Claude Platform or work in Claude Code, you may be wondering which model to use for your common tasks. This article will help answer that question and how to think about the trade-offs.

FIG A: One photo of an alley, rendered in code by Claude Haiku 5.5, Sonnet 5.5, Opus 5.5 and Fable 5.2. Each image is a Python program the model wrote, calling a drawing engine it also wrote, shown from first layer to finished. Demo by Lance Martin.

当前 Claude 产品线有四款正式可用的模型:Claude Haiku 5.5、Claude Sonnet 5.5、Claude Opus 5.5 和 Claude Fable 5.2。Claude Mythos 5.2 是我们面向网络安全与生命科学研究的最强模型,需通过我们的验证计划使用。

如果你在 Claude Platform 上开发,或使用 Claude Code,可能会想知道日常任务该选哪个模型。本文回答这个问题,并说明如何权衡取舍。

图 A:同一张巷子照片,分别由 Claude Haiku 5.5、Sonnet 5.5、Opus 5.5 和 Fable 5.2 用代码渲染。每张图都是模型写出的 Python 程序,调用它自己写的绘图引擎,从第一层画到完成。演示:Lance Martin。

§ 2

The quick answer is that you should start most work on Opus 5.5 at its default effort level, medium.

There's a reason it's the default model in Claude Code. It costs half as much per input and output token as Fable 5.2, and it's the model we recommend starting with for most coding and knowledge work.

快速答案是:大多数工作都从 Opus 5.5 的默认 effort 档位 medium 起步。

它成为 Claude Code 默认模型是有原因的。它的输入和输出 token 单价只有 Fable 5.2 的一半,也是我们建议大多数编码和知识工作优先尝试的模型。

§ 3

From there:

Move down to Sonnet 5.5 for well-scoped everyday work, like a bug fix or a feature built against a spec. Just because you have a clear spec doesn't mean you should use Sonnet, though. A migration or a performance optimization can have clear specs and still be difficult enough to warrant Opus 5.5, or Fable 5.2 for a major one.

Move further down to Haiku 5.5 for the simplest high-volume work, such as classification, routing, and extraction. Haiku 5.5 is also good to use with subagents that work on a larger model's side tasks.

Move up to Claude Fable 5.2 for the hardest technical projects in coding, finance and the sciences. Also move up when Opus 5.5 at high still falls short, or for long unattended runs.

接下来:

范围明确的日常工作,比如修 bug 或按规格实现功能,可以降到 Sonnet 5.5。不过,规格清楚不代表就该用 Sonnet。迁移或性能优化也可能有清楚规格,但难度仍然值得上 Opus 5.5;大型任务则用 Fable 5.2。

再往下降,最简单的高吞吐工作,如分类、路由和抽取,用 Haiku 5.5。Haiku 5.5 也适合作为子代理,替更大的模型处理边角任务。

最难的技术项目,无论编码、金融还是科学,往上升级到 Claude Fable 5.2。Opus 5.5 开到 high 仍不够时,或者要跑长时间无人值守任务,也升到 Fable 5.2。

§ 4

Before you move models, try adjusting your effort level. It's a finer dial for both cost and capability. Past high, one more effort level can cost as much as a bigger model, so compare both on your own work. If you're past high, test the next model up at a lower effort instead. Conversely, one level down can get you the result you need at a lower rate.

Higher effort helps when the model needs to think longer, call more tools, or check its own work more. Just keep in mind that it also adds latency. Additionally, moving to a higher effort level won't give a model knowledge or skill it doesn't have. For that, you still need to move up a model.

换模型之前,先调 effort 档位。它是调节成本和能力更精细的旋钮。超过 high 之后,再升一档的成本可能已经追上一款更大的模型,所以要在自己的任务上把两者比一比。如果你已经超过 high,不妨改测上一级模型配合更低的 effort。反过来,降一档也可能以更低价格拿到你需要的结果。

需要模型想得更久、调用更多工具、做更多自检时,提高 effort 有帮助。但也要记住,它会增加延迟。另外,提高 effort 不会凭空给模型知识或技能;要补这些,还是得换更大的模型。

§ 5
Task Starting model Starting effort Why
Everyday engineering and debugging. Multi-PR feature work Opus 5.5 medium (default), then high Balance of cost and capability for everyday tasks.
Classification, routing, tagging, and high volume extraction Haiku 5.5 medium (default) Lowest cost and latency in the model family.
Subagents that search files, read logs, or summarize Haiku 5.5 or Sonnet 5.5 The model's default Wrong answers are cheap to spot, and the main model has the judgment calls anyway.
Chat and interactive sessions Sonnet 5.5 (or Haiku 5.5 for simple chat at volume) low or medium Sonnet 5.5 is fast, especially on low or medium effort.
Well-scoped coding, like bug fixes, feature iteration, and spec driven work Sonnet 5.5 medium, then high for harder tasks It handles scoped tasks well at half the Opus 5.5 token price.
Everyday documents, slides, and spreadsheets Sonnet 5.5 high (default; medium in Claude Code) It iterates fast and has a strong eye for design. For a complex financial model, or a document built from a large pile of source material, start on Opus 5.5.
Agent tasks you run repeatedly such as investigation, review, or drafting Sonnet 5.5 medium Well-defined, repeated tasks rarely need a bigger model.
Computer use and vision-heavy workflows Opus 5.5 medium These runs are long agentic loops over many screenshots and images, the kind of long-running agentic work Opus 5.5 is built for.
Major refactors and migrations, architecture planning, and leading many subagents Fable 5.2 medium, then high (the API default is high) It's Anthropic's most capable generally available model for technical fields.
Deep research, and scientific or quantitative analysis Fable 5.2 medium, then high (the API default is high) It's built for the hardest technical projects in coding, finance and the sciences.
You aren't sure yet Opus 5.5 medium (default) Claude Code uses it by default on Pro, Max, Ultra, Team, Enterprise and the Anthropic API, and the platform docs recommend it as the starting point.
任务 起手模型 起手 effort 理由
日常工程与调试。跨多个 PR 的功能开发 Opus 5.5 medium(默认),然后 high 在日常任务上兼顾成本与能力。
分类、路由、打标签与大批量抽取 Haiku 5.5 medium(默认) 模型家族中成本与延迟最低。
搜索文件、读日志或做摘要的子代理 Haiku 5.5 或 Sonnet 5.5 该模型的默认档位 错误答案很容易发现,判断仍由主模型负责。
聊天与交互式会话 Sonnet 5.5(简单聊天且量大时用 Haiku 5.5) low 或 medium Sonnet 5.5 很快,尤其是在 low 或 medium。
范围明确的编码,如修 bug、功能迭代和按规格开发 Sonnet 5.5 medium,较难任务用 high 它处理范围明确的任务很稳,token 价格只有 Opus 5.5 的一半。
日常文档、幻灯片和表格 Sonnet 5.5 high(默认;在 Claude Code 中为 medium) 它迭代快,设计感强。复杂财务模型,或基于大量素材搭建的文档,从 Opus 5.5 起步。
你反复运行的代理任务,如调查、评审或起草 Sonnet 5.5 medium 定义清楚、重复执行的任务很少需要更大的模型。
计算机操作与重度视觉工作流 Opus 5.5 medium 这类任务是长代理循环,要处理大量截图和图像,正是 Opus 5.5 擅长的长时间代理工作。
大规模重构与迁移、架构规划,以及领导大量子代理 Fable 5.2 medium,然后 high(API 默认 high) 它是 Anthropic 在技术领域最强的正式可用模型。
深度研究,以及科学或定量分析 Fable 5.2 medium,然后 high(API 默认 high) 它为编码、金融和科学领域最难的技术项目而设计。
还不确定 Opus 5.5 medium(默认) Claude Code 在 Pro、Max、Ultra、Team、Enterprise 和 Anthropic API 上默认使用它,平台文档也推荐它作为起点。
§ 6
Haiku 5.5 Sonnet 5.5 Opus 5.5 Fable 5.2
Built for High-volume, cost-sensitive tasks Fast, capable help with well-scoped tasks Our daily driver for complex coding and knowledge work The most ambitious, open-ended technical work
Relative latency Fastest Fast Moderate Moderate
Input / output, per million tokens $0.10 / $0.50 for prompts up to 100K tokens, $0.50 / $2.50 over 100K $2 / $10 $4 / $20 $8 / $40
Cache reads, per million tokens $0.01 up to 100K, $0.05 over 100K $0.10 $0.20 $0.20
Context window 1M tokens 1M tokens 1M tokens 1M tokens
Max output 128K tokens 128K tokens 128K tokens 128K tokens
Thinking on the API Adaptive, on by default, and you can turn it off Adaptive, on by default; between_tools skips upfront thinking Adaptive, always on Adaptive, always on
Default effort on the API (Claude Code can differ; /effort status shows yours) medium high (medium in Claude Code) medium high (medium in Claude Code)
Fast mode No No Yes Yes

Prices are Claude API list prices. For benchmark results, see the Fable 5.2 page.

FIG B: Claude Fable 5.2, Opus 5.5, Sonnet 5.5 and Haiku 5.5 each build the same portfolio site, shown side by side. Demo by Addy Osmani.

项目 Haiku 5.5 Sonnet 5.5 Opus 5.5 Fable 5.2
为谁而建 高吞吐、对成本敏感的任务 为范围明确的任务提供快速、可靠的支持 我们处理复杂编码与知识工作的日常主力 最有野心、最开放的技术工作
相对延迟 最快 快 中等 中等
输入 / 输出,每百万 token 提示不超过 100K token 时 $0.10 / $0.50,超过 100K 时 $0.50 / $2.50 $2 / $10 $4 / $20 $8 / $40
缓存读取,每百万 token 100K 以内 $0.01,超过 100K $0.05 $0.10 $0.20 $0.20
上下文窗口 1M token 1M token 1M token 1M token
最大输出 128K token 128K token 128K token 128K token
API 上的 thinking 自适应,默认开启,可关闭 自适应,默认开启;between_tools 跳过前置 thinking 自适应,始终开启 自适应,始终开启
API 上的默认 effort(Claude Code 可能不同;/effort status 显示你的档位) medium high(Claude Code 中为 medium) medium high(Claude Code 中为 medium)
快速模式 否 否 是 是

价格为 Claude API 标价。基准测试结果见 Fable 5.2 页面。

图 B:Claude Fable 5.2、Opus 5.5、Sonnet 5.5 和 Haiku 5.5 各自搭建同一个作品集网站,并排展示。演示:Addy Osmani。

§ 7

When you choose between models, you're making a trade-off. When you pick a larger model, for example, you are choosing capability over latency. These are the main trade-offs to think through.

Generally, bigger models cost more per token and are more capable, but the cost vs capability trade-off isn't universally true at the task level.

A higher price per token doesn't always mean a higher cost per task, or a better result. As we showed in Spending your effort, on Anthropic's runs of Terminal-Bench 3.0, the previous Fable, 5.1, at max scored 58.0%, while Opus 5.5 at high scored 58.9% with half the tokens.

On the hardest work, the price gap can close. On FrontierCode 2.0, Fable 5.2 at high scored about level with Opus 5.5 at max (45.3% vs. 45.5%) for roughly half the cost per task. So before you raise Opus 5.5 past high on a hard task, test Fable 5.2. For everyday work, Opus 5.5 at medium is still the place to start. For benchmark results, see the launch post.

在模型之间做选择,本质上是在做取舍。比如选更大的模型,就是用延迟换能力。下面是主要的几组取舍。

一般来说,模型越大,单 token 越贵,能力也越强,但成本与能力之间的取舍在任务层面并不总成立。

单 token 价格更高,不代表完成一次任务的成本更高,也不代表结果更好。我们在《Spending your effort》中展示过:在 Anthropic 跑的 Terminal-Bench 3.0 上,上一代 Fable 5.1 开到 max 得分 58.0%,而 Opus 5.5 开到 high 得分 58.9%,token 用量只有一半。

在最难的工作上,价格差距可能缩小。在 FrontierCode 2.0 上,Fable 5.2 开到 high 与 Opus 5.5 开到 max 得分基本持平(45.3% 对 45.5%),而每个任务的成本大约只有一半。所以,在难任务上把 Opus 5.5 提到 high 以上之前,先测 Fable 5.2。日常任务仍然从 Opus 5.5 的 medium 起步。基准测试结果见发布文章。

§ 8

However, the Claude Platform's cost and intelligence measurements also show the limits of a small model. These generally do well on high-volume work with checkable outputs and are less suited to long agentic loops.

When you compare two models, price the hardest tasks in your set as well as the typical ones, because the hardest tasks carry most of the spend. On one 20-problem search benchmark, two problems carried 43% of the spend.

FIG C: Fable 5.2 shows how a game engine builds a world. It draws one 3D scene in sixteen looks, from wireframe and pixel art to ray tracing, and labels each technique. Demo by Dan Fein.

不过,Claude Platform 对成本和智能程度的测量也暴露了小模型的边界。小模型通常擅长输出可检查的高吞吐工作,不太适合长时间代理循环。

比较两个模型时,既要算典型任务,也要算任务集里最难的那些,因为大部分花费集中在最难的任务上。在一个 20 题搜索基准里,两道题就吃掉了 43% 的花费。

图 C:Fable 5.2 展示游戏引擎如何构建一个世界。它用十六种画法绘制同一个 3D 场景,从线框、像素画到光线追踪,并为每种技术加上标注。演示:Dan Fein。

§ 9

A faster setup finishes sooner and can miss more. Think through how long a person can wait before you pick your model and effort level. For replies a person waits on, start Sonnet 5.5 at low or medium.

Often next generation models are faster than their predecessors. Fable 5.2 generates output up to 30% faster than Fable 5.1. Sonnet 5.5 runs 30% faster than Sonnet 5.

Effort level and latency are roughly correlated. Determine if the accuracy you gain is worth the extra latency. For example, on SWE-bench Pro, Opus 5.5 at medium scored about 2.5 points lower for about 70% of the cost as the high effort setting. At low it scored about 8 points lower for about a third of the cost. At xhigh it scored about 1.4 points higher for 2.5 times the cost of high.

更快的配置完成得更早,但也可能漏得更多。选模型和 effort 之前,先想清楚人能等多久。需要人等回复的场景,从 Sonnet 5.5 的 low 或 medium 起步。

新一代模型通常比上一代快。Fable 5.2 的输出生成速度比 Fable 5.1 快最多 30%。Sonnet 5.5 比 Sonnet 5 快 30%。

Effort 档位和延迟大致正相关。判断多出来的准确率是否值得多等。比如在 SWE-bench Pro 上,Opus 5.5 开到 medium 比 high 得分低约 2.5 分,成本约为 high 的 70%。开到 low 低约 8 分,成本约为三分之一。开到 xhigh 高约 1.4 分,成本是 high 的 2.5 倍。

§ 10

Often providing a means of self-verification is more cost effective and adds less latency than changing effort levels. When a model isn't good enough for a task, take these steps in order:

Check that the model can verify its own work, with a test, a build or a script that calls the endpoint.

Raise effort one level.

Move to the next model up, starting at a lower effort level than you used on the smaller one.

If you can check outcomes automatically, run everything at a low level and re-run only the failures at a high one. On the same SWE-bench Pro subset, Opus 5.5 at low with failures re-run at high passed about 97% of tasks for about $0.17 each, against 95.3% for $0.29 with every task at high.

If you need a faster reply from the same model, you can pay for speed instead of giving up capability. On the Claude API, Opus 5.5 and Fable 5.2 both offer fast mode, with higher output speed at premium pricing.

很多时候,给模型提供自检手段,比调整 effort 更划算,延迟增加也更少。模型不够用时,按这个顺序处理:

确认模型能自己验证工作,比如跑测试、构建,或调用端点的脚本。

把 effort 提高一档。

换到上一级模型,并从比小模型上更低的 effort 起步。

如果你能自动检查结果,可以把所有任务都放到低档跑,只把失败的拿出来用高档重跑。在同一个 SWE-bench Pro 子集上,Opus 5.5 用 low 跑、失败项用 high 重跑,通过约 97% 的任务,每题约 $0.17;全部用 high 则是 95.3%,每题 $0.29。

如果你需要同一个模型更快回复,可以花钱买速度,而不是牺牲能力。在 Claude API 上,Opus 5.5 和 Fable 5.2 都提供快速模式,输出速度更高,价格也更贵。

§ 11

Every model in the current generation has a 1M-token context window. Large context can help the model complete the task but it costs you on every turn, because each turn resends it. That being said, on long runs most of your input bills as cache reads.

Opus 5.5 charges $0.20 per million tokens for a cache read, and Sonnet 5.5 charges $0.10. Fable 5.2 charges the same $0.20, so on a long, cache-heavy run the gap between Fable and Opus comes down to uncached input and output, where Fable costs twice as much per token.

In What a task costs on Opus 5.5, a turn's cache read costs about $0.03 at 150K tokens of context. At 20K it costs about $0.004.

One takeaway from this is that a lean main context matters more the bigger the main model is. Keep the expensive model's context for the decisions, and let cheaper subagents do the verbose reading.

当前这一代每个模型都有 1M token 的上下文窗口。大上下文能帮模型完成任务,但每一轮都要为此付费,因为每轮都会重发上下文。话虽如此,长时间运行时,大部分输入会按缓存读取计费。

Opus 5.5 的缓存读取价格是每百万 token $0.20,Sonnet 5.5 是 $0.10。Fable 5.2 也是 $0.20,所以在缓存密集的长任务里,Fable 和 Opus 的差距主要落在未缓存输入和输出上,而 Fable 这两项的单价是 Opus 的两倍。

在《What a task costs on Opus 5.5》中,上下文为 150K token 时,一轮的缓存读取约 $0.03;20K 时约 $0.004。

一个结论是:主模型越大,精简主上下文越重要。把昂贵模型的上下文留给决策,让更便宜的子代理去读大量冗长材料。

§ 12

Haiku 5.5 is the only model where the token price varies by prompt length. A prompt of up to 100K tokens bills at the lower tier, and a prompt over 100K bills at five times that rate. The long-prompt tier still costs a quarter of Sonnet 5.5's per-token price. So Haiku 5.5 pays off most on short prompts, where it costs a twentieth of Sonnet 5.5's input price.

When every call needs a long prompt, compare Haiku 5.5 with Sonnet 5.5 on cost per finished task, not list price.

Haiku 5.5 是唯一按提示长度改变 token 单价的模型。不超过 100K token 的提示按低档计费,超过 100K 则按五倍价格计费。长提示档的价格仍是 Sonnet 5.5 单 token 价格的四分之一。所以 Haiku 5.5 最划算的场景是短提示,其输入价格只有 Sonnet 5.5 的二十分之一。

如果每次调用都需要长提示,就比较 Haiku 5.5 和 Sonnet 5.5 的每完成任务成本,而不是看标价。

§ 13

FIG D: One project, four models, each on one kind of work. Claude Fable 5.2 moves an online shop from JavaScript to TypeScript, and Opus 5.5 builds a monthly subscription. Sonnet 5.5 writes the product pages, and Haiku 5.5 sorts customer messages. Opus 5.5 starts its feature once Fable 5.2's new code is in. Demo by Dan Fein.

Switch at a natural break

The prompt cache belongs to the model that wrote it. Your first turn on a new model pays the cache-write price on the whole conversation. To make that turn smaller, run /compact first in Claude Code, or start a fresh session with a short written plan. On the API, open the new model's conversation with a summary of the work so far instead of the full history.

图 D:一个项目,四种模型,各负责一类工作。Claude Fable 5.2 把网店从 JavaScript 迁到 TypeScript,Opus 5.5 搭建月度订阅。Sonnet 5.5 写产品页,Haiku 5.5 给客户消息分类。Fable 5.2 的新代码就位后,Opus 5.5 才开始做自己的功能。演示:Dan Fein。

在自然断点切换。

提示缓存属于写下它的模型。在新模型上的第一轮,会按缓存写入价格重算整段对话。为了让这一轮小一点,在 Claude Code 里先运行 /compact,或者开一个新会话并带上简短书面计划。在 API 上,用已有工作的摘要开启新模型的对话,而不是灌入完整历史。

§ 14

Each thinking block records the model that produced it, and each model reads only some other models' blocks. On the Claude API and Claude Models on Google Cloud (Google managed), Opus 5.5 reads Sonnet 5.5's and Haiku 5.5's thinking blocks. Sonnet 5.5 reads Haiku 5.5's. Fable 5.2 reads Opus 5.5's, Sonnet 5.5's and Haiku 5.5's. On the Claude API, Fable 5.1 reads Opus 5.5's.

A move down a tier loses the earlier reasoning, because a model never reads the blocks of a model above it. Other moves can lose it too. When the new model can't read the earlier model's thinking blocks, the API drops them and the request still succeeds. The new model then works without that reasoning.

Preserved thinking lists every case. A move from Fable 5.2 to any other generally available model drops its reasoning.

每个 thinking block 都记录了产生它的模型,而每个模型只读取部分其他模型的 block。在 Claude API 和 Claude Models on Google Cloud(Google 托管)上,Opus 5.5 能读 Sonnet 5.5 和 Haiku 5.5 的 thinking block。Sonnet 5.5 能读 Haiku 5.5 的。Fable 5.2 能读 Opus 5.5、Sonnet 5.5 和 Haiku 5.5 的。在 Claude API 上,Fable 5.1 能读 Opus 5.5 的。

往下降一档会丢失之前的推理,因为模型永远不会读取比它更高一级模型的 block。其他方向的切换也可能丢失。新模型读不了上一个模型的 thinking block 时,API 会丢掉这些 block,请求仍然成功。新模型随后在没有那段推理的情况下工作。

Preserved thinking 列出了所有情况。从 Fable 5.2 切到任何其他正式可用模型,都会丢掉它的推理。

§ 15

A subagent runs in its own context window and hands back a summary. You pay for its tokens at the rates of the model it runs on. In Claude Code, set model: haiku or model: sonnet in a subagent's definition. The CLAUDE_CODE_SUBAGENT_MODEL environment variable sets the default for subagents that don't specify a model.

Save this as .claude/agents/log-reader.md:

---
name: log-reader
description: Reads test output and logs, and reports each failing case. Use after a test run.
tools: Read, Grep, Glob, Bash
model: haiku
---

Read the logs you're given. For each failure, report the file, the test name and the first error line. Don't edit any files.

Keep small models on work where a mistake is cheap to spot, like finding files, running tests and reading logs. Keep code edits and judgment calls on the main model. When a small model misreads a search result, the main model opens the wrong file and spends tokens on it.

子代理在自己的上下文窗口里运行,最后交回一份摘要。它的 token 按所运行模型的价格计费。在 Claude Code 里,在子代理定义中设置 model: haiku 或 model: sonnet。环境变量 CLAUDE_CODE_SUBAGENT_MODEL 可以为没有指定模型的子代理设置默认值。

将其保存为 .claude/agents/log-reader.md:

---
name: log-reader
description: Reads test output and logs, and reports each failing case. Use after a test run.
tools: Read, Grep, Glob, Bash
model: haiku
---

Read the logs you're given. For each failure, report the file, the test name and the first error line. Don't edit any files.

把小模型用在错误容易发现的工作上,比如找文件、跑测试、读日志。代码修改和判断留给主模型。小模型读错搜索结果时,主模型会打开错误的文件,还要为它多花 token。

§ 16

FIG E: A viewer asks for a layer, such as elevation, a bike route, fog or temperature. Opus 5.5 plans the work, and parallel Haiku 5.5 subagents draw the pieces on a shared map. Temperatures are illustrative and the fog is an impression, not a forecast. Map data © OpenStreetMap contributors; elevation from USGS 3DEP lidar. Demo by Lance Martin.

In current versions of Claude Code, the built-in Explore subagent runs on your session's model instead of always running on Haiku. On the Claude API, that model is capped at Opus. To keep exploration cheap, define your own subagent named Explore with model: haiku. You can pin the model the haiku alias uses with ANTHROPIC_DEFAULT_HAIKU_MODEL.

On the Anthropic API, the haiku alias now resolves to Haiku 5.5, which needs Claude Code v2.1.293 or later. On Amazon Bedrock, Google Cloud, Microsoft Foundry and Claude Platform on AWS, it still resolves to Haiku 4.5. Claude Code's model configuration docs have the details.

Claude Code also has the opusplan alias, which plans with Opus in plan mode and then carries out the plan with Sonnet. That puts your code edits on Sonnet. The advice above does the reverse. It keeps code edits on the main model and gives smaller models only work where a mistake is cheap to spot. Measure opusplan on your own tasks before you make it your default.

图 E:用户请求查看某一图层,比如海拔、自行车路线、雾或温度。Opus 5.5 规划工作,多个 Haiku 5.5 子代理并行在共享地图上绘制各个部分。温度仅作示意,雾是印象而非预报。地图数据 © OpenStreetMap contributors;海拔来自 USGS 3DEP lidar。演示:Lance Martin。

在当前版本的 Claude Code 中,内置 Explore 子代理使用你会话的模型,而不是始终跑在 Haiku 上。在 Claude API 上,该模型上限为 Opus。想让探索保持便宜,可以自己定义一个名为 Explore 的子代理,设置 model: haiku。你可以用 ANTHROPIC_DEFAULT_HAIKU_MODEL 固定 haiku 别名所用的模型。

在 Anthropic API 上,haiku 别名现在指向 Haiku 5.5,需要 Claude Code v2.1.293 或更高版本。在 Amazon Bedrock、Google Cloud、Microsoft Foundry 和 Claude Platform on AWS 上,它仍指向 Haiku 4.5。详情见 Claude Code 的模型配置文档。

Claude Code 还有 opusplan 别名:在 plan 模式下用 Opus 规划,再用 Sonnet 执行计划。这样代码修改落在 Sonnet 上。上面的建议正好相反:代码修改留在主模型,只把错误容易发现的工作交给小模型。把 opusplan 设成默认之前,先在自己的任务上测一测。

§ 17

The advisor tool (beta) pairs a faster, cheaper executor model with a stronger advisor model. The executor runs the task and can ask the advisor for guidance partway through. Most of the tokens bill at the executor's rate. The advisor helps only when it adds capability the executor lacks and the executor asks for advice, which it does less often at low effort.

Where it might pay off: agentic work where most turns are routine. The platform's cost guide is cautious: of the four pairings in its advisor table, none clearly beat its executor alone, and an advisor can help only when the executor consults it. Measure your executor's consult rate first. Check which advisors your executor accepts. A Sonnet 5.5 executor accepts Fable 5.2, Opus 5.5, Opus 5 and Sonnet 5.5, for example, and a Fable 5.2 executor accepts only Fable 5.2 or Mythos 5.2.

Where it adds little: one of those pairings was an Opus 5.5 executor at high with a Fable 5.1 advisor on an internal coding benchmark. It scored 90.1% at $2.92 per attempt. That's 1.7 points over Opus 5.5 alone at high for about 2.1 times the money. A gain that size is at the edge of run-to-run noise, and about what raising effort would have bought.

顾问工具(beta)把更快、更便宜的执行者模型与更强的顾问模型配成一对。执行者负责任务,过程中可以向顾问求助。大部分 token 按执行者的价格计费。顾问只在能补上执行者缺失的能力、并且执行者主动来问时才帮上忙;在低 effort 下,执行者问得更少。

可能划算的场景:大多数轮次都很常规的代理工作。平台的成本指南态度谨慎:顾问表里的四组配对,没有一组明显打赢单独的执行者,而且只有执行者主动咨询时顾问才有用。先测执行者的咨询率,再确认执行者接受哪些顾问。比如 Sonnet 5.5 执行者接受 Fable 5.2、Opus 5.5、Opus 5 和 Sonnet 5.5,而 Fable 5.2 执行者只接受 Fable 5.2 或 Mythos 5.2。

帮助不大的场景:其中一组配对是 Opus 5.5 执行者开到 high,加 Fable 5.1 顾问,在一个内部编码基准上得分 90.1%,每次尝试 $2.92。这比单独 Opus 5.5 开到 high 高 1.7 分,花的钱约为 2.1 倍。这个幅度的提升已经在运行波动的边缘,也大约相当于提高 effort 能买到的提升。

§ 18

Subagents, above, handle side tasks while one main model keeps the thread. This pattern is for work bigger than one context window. A top-tier model leads, splits the task, hands the pieces to many cheaper workers in parallel, and merges what comes back. On an internal defect-search benchmark over about 22 million tokens of source code, an Opus 5.5 lead over Sonnet 5.5 workers, up to 25 at a time, cost about a third less than Opus 5.5 alone at its default effort. It scored about the same.

On the Claude Platform, multiagent orchestration in Claude Managed Agents gives you a coordinator agent and a roster of workers. Skip it for one chain of dependent steps or for work that fits in one context window. There, the planning and merging cost more than they save. When to fold subagents into your main agent loop covers when one agent loop beats a team of subagents.

上面说的子代理处理边角任务,由主模型保持主线。这个模式面向的是超出单个上下文窗口的工作。顶级模型领头,拆分任务,把碎片交给许多更便宜的并行工作者,再合并结果。在一个内部缺陷搜索基准上,源码约 2200 万 token,Opus 5.5 领头、Sonnet 5.5 工作者最多同时 25 个,成本比单独 Opus 5.5 默认 effort 低约三分之一,得分基本持平。

在 Claude Platform 上,Claude Managed Agents 的多代理编排提供协调者代理和一组工作者。如果只是一条依赖步骤链,或工作能放进一个上下文窗口,就不要用:这时规划和合并的成本高于节省。文章《When to fold subagents into your main agent loop》讨论了什么时候一个代理循环胜过一组子代理。

§ 19

Model choice is mostly a question of capability and cost, but you can't always change the model name and nothing else. Every current model supports tool use and image input, but there are differences to test before you move a request from one model to another.

Fable 5.2 extends preserved thinking to every API account. The API rejects a request with a 400 error when anything before a Fable 5.2 thinking block has changed, including the system prompt, the tools or an earlier message, unless you opt in to dropping the affected thinking. If you build requests through Claude Code, the Claude Agent SDK or Claude Managed Agents, you don't need to change anything. If your own code edits history, keep it append-only, and test before you switch.

模型选择主要是能力和成本问题,但并不是每次只改模型名就万事大吉。当前每个模型都支持工具调用和图像输入,不过把一个请求从一个模型迁到另一个模型之前,仍有一些差异需要测试。

Fable 5.2 把 preserved thinking 扩展到所有 API 账户。只要 Fable 5.2 的 thinking block 之前有任何内容发生变化,包括系统提示、工具或更早的消息,API 就会返回 400 错误,除非你选择丢弃受影响的 thinking。如果你通过 Claude Code、Claude Agent SDK 或 Claude Managed Agents 构建请求,不需要改什么。如果你自己的代码会编辑历史,保持只追加,并在切换前测试。

§ 20

Thinking. Opus 5.5 and Fable 5.2 always think, and a request that turns thinking off returns an error. Sonnet 5.5 thinks by default, and between_tools limits thinking to the gaps between tool calls. Haiku 5.5 thinks by default, and you can turn thinking off at high effort or below. On all of them, read content blocks by type, because a response can begin with a thinking block.

Forced tool use. A tool_choice of any or tool returns a 400 error on Sonnet 5.5, Opus 5.5 and Fable 5.2. Send auto, mark the tool strict: true, and say in the prompt when to use it.

Computer use. Opus 5.5, Sonnet 5.5, Haiku 5.5 and Fable 5.2 support computer use only through the computer_toolset_20260801 toolset on the Claude API and Claude Models on Google Cloud (Google managed).

Thinking。Opus 5.5 和 Fable 5.2 始终思考,关闭 thinking 的请求会返回错误。Sonnet 5.5 默认思考,between_tools 把 thinking 限制在工具调用之间的空隙。Haiku 5.5 默认思考,在 high effort 及以下可以关闭 thinking。对所有模型,都要按类型读取 content block,因为响应可能以 thinking block 开头。

强制工具调用。tool_choice 设为 any 或 tool 时,Sonnet 5.5、Opus 5.5 和 Fable 5.2 会返回 400 错误。改为发送 auto,把工具标成 strict: true,并在提示里说明何时使用。

计算机操作。Opus 5.5、Sonnet 5.5、Haiku 5.5 和 Fable 5.2 只在 Claude API 和 Claude Models on Google Cloud(Google 托管)上,通过 computer_toolset_20260801 工具集支持计算机操作。

§ 21

Haiku 4.5 to Haiku 5.5. Replace budget_tokens with an effort level, and drop non-default temperature, top_p and top_k values, which return a 400 error. End messages with a user turn, because a final assistant turn for the model to continue also returns a 400 error.

Safety fallbacks. Opus 5.5, Sonnet 5.5 and Fable 5.2 run safety classifiers that most often flag cybersecurity and biology content. In Claude Code, a flagged request can re-run on an older model, and a notice in the transcript tells you which. Fable 5.2 keeps the fallback models that Fable 5.1 uses. Flagged cybersecurity requests fall back to Opus 4.8, and flagged biology requests to Opus 5.

Haiku 4.5 升到 Haiku 5.5。用 effort 档位替换 budget_tokens,并去掉非默认的 temperature、top_p 和 top_k 值,否则会返回 400 错误。消息以用户轮结束,因为最后是助手轮、让模型继续写,也会返回 400 错误。

安全回退。Opus 5.5、Sonnet 5.5 和 Fable 5.2 会运行安全分类器,最常标记网络安全和生物内容。在 Claude Code 中,被标记的请求可以在更老的模型上重跑,对话记录里会提示用了哪个。Fable 5.2 沿用 Fable 5.1 的回退模型。被标记的网络安全请求回退到 Opus 4.8,生物请求回退到 Opus 5。

§ 22

If one system runs several models, build every request for the strictest of them: keep history append-only, send tool_choice: auto with strict tools, read content blocks by type, and write prompts and tool descriptions precisely enough for the most literal model. Then a step can move up or down a tier without a code change. When the routing rule is simple, such as one model for each step type, let code pick the model rather than asking a model to.

如果一个系统要跑多个模型,就按其中最严格的那个来构造所有请求:历史只追加,发送 tool_choice: auto 并配 strict 工具,按类型读取 content block,提示和工具描述写得足够精确,让最字面理解的模型也能照做。这样某一步升档或降档时,不用改代码。如果路由规则很简单,比如每类步骤固定用一个模型,就让代码选模型,而不是让模型自己选。

§ 23

Published results, like the SWE-bench Pro and Terminal-Bench numbers above, get you a starting model. Then test the candidates on your own tasks before you commit.

Pull a sample of real tasks. Write an outcome check for each one, such as a passing test, a closed ticket or a correct row count.

Run each candidate model at two or three effort levels, each in its own session so that the runs don't share a cache. Record the cost of each completed task from the usage field of each response.

Plot score against spend. Keep a multi-model setup only if it beats every single-model point on that chart.

Run the winner in shadow on a slice of real traffic before you cut over.

For a quick check in Claude Code, run one task from your backlog on two models with /model and compare what /usage reports.

已发布的结果,比如上面的 SWE-bench Pro 和 Terminal-Bench 数字,只能帮你找到起手模型。定下来之前,还要在自己的任务上测候选模型。

抽一批真实任务做样本。为每个任务写结果检查,比如测试通过、工单关闭或行数正确。

每个候选模型跑两到三个 effort 档位,各自独立会话,避免共享缓存。从每次响应的 usage 字段记录每个已完成任务的成本。

画得分对花费的图。只有当多模型方案能打败图上每一个单模型点,才保留它。

正式切换前,让赢家在真实流量的一小片上影子运行。

在 Claude Code 里想快速检查,可以用 /model 用两个模型跑一个待办任务,再比较 /usage 的报告。

§ 24

Building with Claude Sonnet 5.5 covers when to choose Sonnet over Opus, pricing, migration and tuning.

Getting the most out of Opus 5.5 in Claude and Claude Code covers prompting Opus 5.5 and steering long runs.

What a task costs on Opus 5.5 prices effort, model choice and subagents.

On the Claude blog, choosing the best Claude model for your use case and picking a model and effort level in Claude Code go deeper.

In the docs, see Choosing a model, Optimizing for cost and intelligence, Effort, Claude Code model configuration and subagents.

《Building with Claude Sonnet 5.5》讲何时选 Sonnet 而非 Opus,以及定价、迁移和调优。

《Getting the most out of Opus 5.5 in Claude and Claude Code》讲如何给 Opus 5.5 写提示、如何引导长任务。

《What a task costs on Opus 5.5》拆解 effort、模型选择和子代理的成本。

Claude 博客上的《choosing the best Claude model for your use case》和《picking a model and effort level in Claude Code》有更深入的讨论。

文档里可以看 Choosing a model、Optimizing for cost and intelligence、Effort、Claude Code model configuration 和 subagents。

打开原文 ↗