Skip to main content

Command Palette

Search for a command to run...

模型
Anthropic

Claude Sonnet 5

Model ID
claude-sonnet-5
Context window
200k
Max context
1M
Provider
Anthropic
Capabilities
AgentThinking
Speed
Medium
Cost
Medium
Intelligence
Frontier

Claude Sonnet 5 是 Anthropic 最新的中档模型,取代 Sonnet 4.6。它的质量接近 Opus,同时保持 Sonnet 较低的单 token 价格。它支持思考模式和最高 1M token 的上下文窗口;如果你希望获得前沿推理能力,又不想支付 Opus 的价格,它是日常编码的理想默认选择。

优势

  • 质量接近 Opus。Sonnet 5 在实际编码任务中已缩小了与 Opus 5 的大部分差距,同时单个 token 的成本低得多。
  • 推理能力强。思考模式可深入处理多步骤任务、规划和调试。
  • 工具使用可靠。它会有针对性地调用工具,并将结果串联为后续操作。
  • 与 Opus 同属一个提供商,风格相同,价格更低。

局限性

  • 对于最棘手的任务,如需获得最佳质量,Opus 5.5 仍是更强的选择。
  • 更新后的 tokenizer 会将相同输入拆分为更多 token,因此 token 数量比早期 Sonnet 模型更高。

工具

在 Cherri Code 中使用 Sonnet 5 时,它可使用所有智能体工具,包括:

Find files by name, read directory structures, and grep for patterns.

Generate search queries and fetch results from the web.

Read file contents, including images for vision-capable models.

Suggest edits and apply them automatically.

Execute terminal commands and monitor output.

Control a browser to take screenshots, test applications, and verify visual changes. See the Browser documentation.

Generate images from text descriptions or reference images.

Ask clarifying questions while continuing to work in the background.

Retrieve rules based on type and description.

详细了解工具的工作原理和工具调用基础。

定价

Cherri Code 方案包含两个用量池。Sonnet 5 使用第三方其他模型用量池,并按下列费率计费。所有价格均按每百万 token 计算。

名称
$2$2.5$0.2$10

所有 Sonnet 5 提示词均按上表所列的基础每 token 费率计费,即使上下文超过 200k 也是如此。Sonnet 5 没有单独的长上下文倍率。

提供思考变体,以支持更深入的推理。