返回模型列表

Claude Sonnet 5

anthropicanthropic/claude-sonnet-5

Anthropic's frontier Sonnet-tier model — top-tier agentic coding and reasoning, 1M context, 128K output.

Claude Sonnet 5 于 2026 年 6 月 30 日发布,是 Anthropic 新一代 Sonnet 级代理模型,也是从 Sonnet 4.6 升级的默认实用选择。它保留 Sonnet 的经济层级,同时提供原生 1M token 上下文窗口、128k 同步最大输出、默认自适应思考,以及更强的编码、工具调用、计算机使用和知识工作能力;Anthropic 将其定位为接近 Opus 4.8、但价格更低的选择。

对路由团队来说,Sonnet 5 不是一个可以盲目替换的别名。迁移中有三个会影响生产的约束:手动 extended-thinking budget 会返回 400;非默认 sampling 参数会返回 400;新 tokenizer 对同一文本可能产生约 1.0–1.35 倍 token。因此 TheRouter 应将 Sonnet 5 作为高吞吐代理路由来管理:重新计数 token、显式设置 effort,并配置 fallback,而不是静默替换所有 Sonnet 4.6 工作负载。

适合使用
  • • 长上下文编码代理与棕地代码库工作:需要 1M token 窗口和比 Sonnet 4.6 更强的执行跟进,但不想支付 Opus 价格
  • • 浏览器、终端和业务流代理:需要规划、工具调用、自检,以及 medium/high effort 下的实际成本效率
  • • 大型文档分析、法律与研究工作流:受益于 128k 输出和自适应思考,而不是手动 thinking budget
  • • 在首发优惠价格窗口内的大规模 Sonnet 流量,但前提是路由层先测量 tokenizer 带来的 token 膨胀,再判断是否省钱
不适合使用
  • • 必须自定义 temperature/top_p/top_k 的工作负载——Sonnet 5 会拒绝非默认 sampling;请路由到 Sonnet 4.6 或仍支持采样控制的其他模型
  • • 需要 Priority Tier 延迟保障的场景——Anthropic 明确表示 Sonnet 5 首发不支持 Priority Tier
  • • 仍发送 budget_tokens 的手动 extended-thinking 集成——必须先迁移到 adaptive thinking 与 effort,否则请求会以 HTTP 400 失败
  • • 需要最高前沿能力或更少护栏的网络安全工作——Anthropic 建议更高端网络安全工作使用 Opus 级模型
上下文长度
1M
最大输出
128K
输入价格每百万 tokens
$2.16每百万 Tokens
输出价格每百万 tokens
$10.80每百万 Tokens

模态能力

文本图像→文本

能力

视觉理解

价格明细

类型费率
输入$2.16 每百万 Tokens
输出$10.80 每百万 Tokens

支持参数

temperaturemax_tokenstop_ptoolstool_choiceresponse_formatreasoningstop

模型规格

发布日期2026-06-30platform.claude.com ↗已核实
Claude API 模型 idclaude-sonnet-5platform.claude.com ↗已核实
上下文窗口1,000,000 tokenplatform.claude.com ↗已核实
最大输出 token同步 128,000;Message Batches 使用 output-300k beta 最高 300,000platform.claude.com ↗已核实
定价截至 2026-08-31 为 $2/$10 每百万 token;2026-09-01 起为 $3/$15platform.claude.com ↗已核实
Prompt 缓存首发价期间:5 分钟写入 $2.50/MTok,1 小时写入 $4/MTok,缓存读取 $0.20/MTok;标准价格随 $3/$15 生效上调platform.claude.com ↗已核实
训练数据截止2026 年 1 月platform.claude.com ↗已核实
可靠知识截止2026 年 1 月platform.claude.com ↗已核实
推理控制默认启用 adaptive thinking;用 effort 控制;手动 budget_tokens 已移除platform.claude.com ↗已核实
不支持的控制项非默认 temperature、top_p、top_k 会返回 HTTP 400;assistant prefill 仍不支持platform.claude.com ↗已核实
Priority TierClaude Sonnet 5 首发不支持platform.claude.com ↗已核实
Tokenizer 迁移新 tokenizer;同一文本相较 Sonnet 4.6 可能产生约 1.0–1.35 倍 tokenwww.anthropic.com ↗已核实
部署平台Claude API、Claude Code、Amazon Bedrock、Claude Platform on AWS、Google Cloud Vertex AI、Microsoft Foundryplatform.claude.com ↗已核实
许可Anthropic Usage Policy(闭源,仅 API)已核实

基准成绩

BenchmarkDistributionScoreSource
BrowseComp
Anthropic 报告 Sonnet 5 相比 Sonnet 4.6 是严格提升,并表示高 effort 的 Sonnet 5 在部分 agentic-search 任务上可匹配 Opus 4.8;图表数值发布在公告/系统卡片中,但提取文本未给出机器可读数字。
Not numerically disclosed in extracted launch textwww.anthropic.com ↗
OSWorld-Verified
Anthropic 在 OSWorld-Verified 上比较 Sonnet 5、Sonnet 4.6 和 Opus 4.8,并将 Sonnet 5 描述为计算机使用工作流中覆盖更广的成本/性能前沿。上线自动化流量前应使用本地路由评测。
Strictly improved over Sonnet 4.6 in Anthropic launch comparisonwww.anthropic.com ↗
Mozilla Firefox exploit evaluation
Anthropic 报告,在 Firefox 147 评测中 Sonnet 4.6 与 Sonnet 5 都未能开发完整可工作的 exploit;Sonnet 5 的部分成功率略高,并默认启用网络安全护栏。
0.0% full working exploit success%www.anthropic.com ↗

API 使用示例

所有新集成都应使用下方示例中的全球端点 api.therouter.ai;旧中国加速端点已下线。

cURL
curl https://api.therouter.ai/v1/chat/completions   -H "Content-Type: application/json"   -H "Authorization: Bearer $THE_ROUTER_API_KEY"   -d '{
    "model": "anthropic/claude-sonnet-5",
    "messages": [
      {"role": "user", "content": "Summarize the key points from this input."}
    ]
  }'

API 使用指南

完整 API 参考 →

Chat 调用

普通文本、编码和文档提示可使用 TheRouter 的 OpenAI 兼容端点。除非确认会解析为 Anthropic 默认值,否则请省略 sampling 参数。

cURL
curl https://api.therouter.ai/v1/chat/completions \
  -H "Authorization: Bearer $THEROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"anthropic/claude-sonnet-5","messages":[{"role":"user","content":"Audit this migration plan for hidden production risks."}],"max_tokens":2000}'

anthropic 其他模型

同类模型

跨供应商的相似能力档位

动态与变更

2026-07-06

Claude Sonnet 5 Skips Priority Tier: What the Service-Tier Gap Means for Latency-Sensitive Routing Teams

TheRouter 近期报道指出,缺失 Priority Tier 是主要生产路由风险:Sonnet 5 适合代理吞吐,但在路由实测数据证明前,低延迟 SLA 应保留在明确支持 priority 的模型上。

TheRouter 编辑重写TheRouter news ↗
2026-07-01

Claude Sonnet 5 Launches as Anthropic's Most Agentic Sonnet: What the Introductory Pricing Window Means for Routing Teams

发布分析将 Sonnet 5 的代理能力提升与临时 $2/$10 价格窗口联系起来。运营要点是:在优惠期内评测,但在承诺长期节省前,必须纳入 9 月后的价格和 tokenizer 膨胀。

TheRouter 编辑重写TheRouter news ↗
2026-07-01

Claude Sonnet 5's Three Breaking API Changes: What Every Operator Must Audit Before Migrating

迁移说明将三个破坏性行为映射到路由检查:移除手动 thinking budget、移除非默认 sampling,并在切换生产流量前用新 tokenizer 重新计数。

TheRouter 编辑重写TheRouter news ↗

近期动态

常见问题

Claude Sonnet 5 可以直接替换 Claude Sonnet 4.6 吗?

它是 model id 层面的迁移,但不是无需审计的迁移。工具 schema 和响应形态总体兼容,但 Sonnet 5 改变了 thinking 行为、拒绝非默认 sampling 参数、移除了手动 budget_tokens,并使用会让同一文本 token 数增加的 tokenizer。

TheRouter 编辑重写platform.claude.com ↗
通过 TheRouter 使用 Claude Sonnet 5 的成本是多少?

上游首发价截至 2026-08-31 为输入 $2/百万 token、输出 $10/百万 token,2026-09-01 起为 $3/$15。TheRouter 的实际运营价格由 live page 的 standard-models.yaml 提供;本 curated 模块补充说明 tokenizer 膨胀可能抵消部分表面折扣。

TheRouter 编辑重写platform.claude.com ↗
Claude Sonnet 5 支持 Priority Tier 吗?

不支持。Anthropic 发布说明称 Sonnet 5 拥有与 Sonnet 4.6 相同的工具与平台功能,但 Priority Tier 除外。对延迟敏感的流量应保留单独 route 或 fallback,直到 TheRouter 实测延迟足以满足 SLA。

TheRouter 编辑重写platform.claude.com ↗
Claude Sonnet 5 应该设置 temperature 吗?

不要设置非默认值。Anthropic 表示 Sonnet 5 上非默认 temperature、top_p、top_k 会返回 HTTP 400。请使用 system instructions、工具 schema、structured outputs 和 effort,而不是采样旋钮。

TheRouter 编辑重写platform.claude.com ↗
路由团队应该如何测试新 tokenizer?

在迁移流量前,用真实生产 prompts 重新进行 token counting。Anthropic 表示同一文本可能根据内容类型映射为约 1.0–1.35 倍 token,因此看似每 token 更便宜的工作负载,按任务计费仍可能更贵。

TheRouter 编辑重写www.anthropic.com ↗
事实档案 — 本页每条断言可在此回溯来源
来源URL采集于
发布日期platform.claude.com ↗2026-07-28已核实
Claude API 模型 idplatform.claude.com ↗2026-07-28已核实
上下文窗口platform.claude.com ↗2026-07-28已核实
最大输出 tokenplatform.claude.com ↗2026-07-28已核实
定价platform.claude.com ↗2026-07-28已核实
Prompt 缓存platform.claude.com ↗2026-07-28已核实
训练数据截止platform.claude.com ↗2026-07-28已核实
可靠知识截止platform.claude.com ↗2026-07-28已核实
推理控制platform.claude.com ↗2026-07-28已核实
不支持的控制项platform.claude.com ↗2026-07-28已核实
Priority Tierplatform.claude.com ↗2026-07-28已核实
Tokenizer 迁移www.anthropic.com ↗2026-07-28已核实
部署平台platform.claude.com ↗2026-07-28已核实
许可——已核实
BrowseCompwww.anthropic.com ↗2026-07-28待核实
OSWorld-Verifiedwww.anthropic.com ↗2026-07-28待核实
Mozilla Firefox exploit evaluationwww.anthropic.com ↗2026-07-28已核实
Claude Sonnet 5 Skips Priority Tier: What the Service-Tier Gap Means for Latency-Sensitive Routing TeamsTheRouter news ↗2026-07-28已核实
Claude Sonnet 5 Launches as Anthropic's Most Agentic Sonnet: What the Introductory Pricing Window Means for Routing TeamsTheRouter news ↗2026-07-28已核实
Claude Sonnet 5's Three Breaking API Changes: What Every Operator Must Audit Before MigratingTheRouter news ↗2026-07-28已核实
Claude Sonnet 5 可以直接替换 Claude Sonnet 4.6 吗?platform.claude.com ↗2026-07-28待核实
通过 TheRouter 使用 Claude Sonnet 5 的成本是多少?platform.claude.com ↗2026-07-28待核实
Claude Sonnet 5 支持 Priority Tier 吗?platform.claude.com ↗2026-07-28待核实
Claude Sonnet 5 应该设置 temperature 吗?platform.claude.com ↗2026-07-28待核实
路由团队应该如何测试新 tokenizer?www.anthropic.com ↗2026-07-28待核实
帮助与联系