返回模型列表

Claude Sonnet 4.5

anthropicanthropic/claude-sonnet-4.5

供应商自营与 TheRouter 服务形态的差异

供应商自己运营时

Anthropic 通过原生 Messages API 提供 Claude Sonnet 4.5,并将其标记为 legacy 但仍 active 的 Claude 模型;模型 id 为 claude-sonnet-4-5-20250929,上下文 200 k,最大输出 64 k,输入/输出价格为每百万 token $3/$15,并使用手动扩展思考而非新的 effort 参数。

在 TheRouter 上

TheRouter 在 OpenAI 兼容的 /v1/chat/completions 路径上以 anthropic/claude-sonnet-4.5 暴露该模型。当前运营目录字段标注 1 M 上下文窗口与 reasoning 参数支持,因此生产用户在假设 Anthropic 原生语义前,应在实时路由上验证长上下文与推理行为。

API 使用指南

Chat 调用

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-4.5","messages":[{"role":"user","content":"Hello"}]}'

扩展思考

通过 reasoning 参数(low/medium/high)或在请求中包含 thinking budget 来启用扩展思考。

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-4.5","messages":[{"role":"user","content":"Solve this step by step"}],"reasoning":{"effort":"high"}}'

工具调用

Sonnet 4.5 擅长长程工具编排。支持并推荐并行工具调用以获得最高效率。

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-4.5",
  "messages":[{"role":"user","content":"List files in the repo"}],
  "tools":[{"type":"function","function":{"name":"list_files","description":"List files","parameters":{"type":"object","properties":{}}}}]
}'
事实档案 — 本页每条断言可在此回溯来源
来源URL采集于
发布日期www.anthropic.com ↗2026-05-25已核实
Anthropic 模型 idplatform.claude.com ↗2026-09-19已核实
训练数据截止platform.claude.com ↗2026-09-19已核实
上下文窗口platform.claude.com ↗2026-09-19已核实
最大输出 tokenplatform.claude.com ↗2026-09-19已核实
推理模式platform.claude.com ↗2026-09-19已核实
部署平台platform.claude.com ↗2026-09-19已核实
许可——已核实
SWE-bench Verifiedwww.anthropic.com ↗2026-05-25已核实
OSWorldwww.anthropic.com ↗2026-05-25已核实
Terminal-Benchwww.anthropic.com ↗2026-05-25待核实
AIMEwww.anthropic.com ↗2026-05-25待核实
GitHub Copilot 宣布 Claude Sonnet 4.5 将于 2026 年 9 月 1 日起在 Copilot 中弃用github.blog/changelog ↗2026-09-19已核实
Claude Sonnet 4.5 发布——SWE-bench Verified 与 OSWorld 新 SOTAanthropic.com/news ↗2026-05-25已核实
在 TheRouter 上,从 Sonnet 4 升级到 Sonnet 4.5 值得吗?www.anthropic.com ↗2026-05-25待核实
Sonnet 4.5 是否需要 1 M 上下文 beta,还是可以继续使用 200 k?platform.claude.com ↗2026-09-19待核实
新的 Sonnet 负载还应该从 Sonnet 4.5 开始吗?platform.claude.com ↗2026-09-19待核实
帮助与联系