返回模型列表

Claude Opus 4.7

anthropicanthropic/claude-opus-4.7

Claude Opus 4.7 is Anthropic's most capable model — 13% coding lift over Opus 4.6, tripled image resolution (2576px / 3.75 MP), new xhigh effort level, and task budgets for autonomous agent loops. Best for coding, agents, enterprise workflows, cybersecurity, and financial analysis.

Claude Opus 4.7 是 Anthropic 当前公开可用的最强模型,于 2026 年 4 月 16 日发布。Anthropic 将其定位为面向编程和 agent 的 Opus 4.6 升级版:SWE-bench Verified 87.6%(此前 80.8%)、SWE-bench Pro 64.3%(此前 53.4%),长程 agent 工作流步数减少约 14%。

从 TheRouter 路由层视角看,实际有三处真正改变。视觉输入现在接受长边最大 2,576 px(约 3.75 MP)的图像,是此前 Claude 的三倍以上分辨率。新增 xhigh 推理强度档位,位于 high 和 max 之间,被设为 Claude Code 处理复杂编程任务时的默认值。tokenizer 也做了更新——Anthropic 说同一段 prompt 在 Opus 4.7 的 token 用量可能是 Opus 4.6 的 1.00 至 1.35 倍,正式上线前请用真实流量测一遍预算。

适合使用
  • 长程编程 agent 任务(多文件重构、跨仓库 bug 修复),尤其是此前 Opus 4.6 卡住或工具调用反复失败的场景
  • 代码审查工作流——合作伙伴 CodeRabbit 称在难以察觉的 bug 上召回率提升超过 10%,且精确度不下降
  • 需要高分辨率视觉(长边 2,576 px)的网络安全和文档分析流水线
  • 受益于多 agent 协同的企业工作流——Opus 4.7 可以并行编排子任务,而不必严格串行执行
不适合使用
  • 对延迟敏感的对话场景——xhigh 与 max 档位会做深度思考;需要亚秒级响应时改路由 Claude Haiku 4.5 或 Claude Sonnet 4.6
  • 对成本敏感的大流量任务——Opus 4.7 在 TheRouter 上为输入 $6/M、输出 $30/M tokens;想要便宜又合格的推理可改路由 DeepSeek V3.2 或 Gemini 2.5 Flash
  • 通过 budget_tokens 手动控制 extended thinking——Opus 4.7 已不支持,必须改用 effort 参数下的 adaptive thinking
上下文长度
1M
最大输出
128K
输入价格每百万 tokens
$6.00每百万 Tokens
输出价格每百万 tokens
$30.00每百万 Tokens

模态能力

文本图像PDF文本

价格明细

类型费率
输入$6.00 每百万 Tokens
输出$30.00 每百万 Tokens

支持参数

temperaturemax_tokenstop_ptoolstool_choiceresponse_formatreasoningstop

模型规格

发布日期2026-04-16www.anthropic.com已核实
Anthropic 模型 idclaude-opus-4-7docs.anthropic.com已核实
训练数据截止未公开披露未知
推理强度档位low、medium、high(API 默认)、xhigh(Claude Code 默认)、maxplatform.claude.com已核实
视觉输入最大分辨率长边 2,576 px(约 3.75 百万像素)www.anthropic.com已核实
Tokenizer 与 Opus 4.6 的差异更新了 tokenizer,同一 prompt 的 token 用量可能为 1.00–1.35 倍www.anthropic.com已核实
部署平台Anthropic API、Amazon Bedrock、Google Cloud Vertex AI、Microsoft Foundry、GitHub Copilotaws.amazon.com已核实
许可Anthropic Usage Policy(闭源,仅 API)已核实
BenchmarkDistributionScoreSource
SWE-bench Verified
Opus 4.6 为 80.8%。已做记忆筛除校正。
87.6%%www.anthropic.com
SWE-bench Pro
Opus 4.6 为 53.4%;GPT-5.4 为 57.7%,Gemini 3.1 Pro 为 54.2%。
64.3%%www.anthropic.com
Terminal-Bench 2.0
Opus 4.6 为 65.4%。
69.4%%www.anthropic.com
GPQA Diamond
前沿模型在此基准上基本饱和——GPT-5.4 Pro 94.4%,Gemini 3.1 Pro 94.3%。
94.2%%www.anthropic.com
MCP-Atlas
多工具 MCP 协同基准。
77.3%%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-opus-4.7",
    "messages": [
      {"role": "user", "content": "Summarize the key points from this input."}
    ]
  }'

API 使用指南

完整 API 参考 →

Chat 调用

标准 chat 调用。TheRouter 通过 OpenAI 兼容的 /v1/chat/completions 接口提供 Anthropic 模型。

cURL
curl https://api.therouter.ai/v1/chat/completions \
  -H "Authorization: Bearer $THEROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "anthropic/claude-opus-4.7",
    "messages": [{"role": "user", "content": "Refactor this Python function for clarity."}]
  }'

anthropic 其他模型

同类模型

跨供应商的相似能力档位

动态与变更

2026-04-16

Anthropic 发布 Claude Opus 4.7:新增 xhigh 推理档与 3.75 MP 视觉输入

TheRouter 首日即接入 Opus 4.7 流量。对路由层最有感的三处变化是:新增 xhigh 推理档(Claude Code 默认)、视觉分辨率提升三倍、tokenizer 更新——同一 prompt 在 4.7 上的 token 用量可能是 4.6 的 1.00–1.35 倍,调高配额前先重新校准成本看板。

TheRouter 二创anthropic.com/news
2026-04-16

Claude Opus 4.7 发布日即可在 Amazon Bedrock 调用

AWS 与 Anthropic API 同日把 Opus 4.7 上线到 Bedrock。对通过 TheRouter 调用的团队,这意味着不必额外配置就有 Bedrock 托管路径——对必须封闭在 VPC、不能直连 Anthropic API 的工作负载尤其有用。

2026-04-16

Anthropic 停用手动 budget_tokens:Opus 4.7 强制使用 adaptive thinking

如果现有 Opus 4.6 客户端使用 `thinking: {type: 'enabled', budget_tokens: N}`,在 4.7 上该路径已下线。请改用 `reasoning.effort` 配合 xhigh 或 max。TheRouter 原样转发新字段;旧请求结构会被上游拒绝。

TheRouter 二创platform.claude.com

常见问题

更多 FAQ →
Opus 4.7 在编程上比 Opus 4.6 强多少?

按 Anthropic 自报数据:SWE-bench Verified 87.6%(前 80.8%,+6.8);SWE-bench Pro 64.3%(前 53.4%,+10.9);Terminal-Bench 2.0 69.4%(前 65.4%)。合作伙伴 Rakuten 在内部 SWE-Bench 上解决量提升 3 倍;CodeRabbit 在难发现 bug 上 recall +10%。

调用 Opus 4.7 需要改 API 代码吗?

有两处破坏性变更。(1) 通过 `thinking: {type:'enabled', budget_tokens:N}` 手动控制 extended thinking 已删除——改用 `reasoning.effort`(low/medium/high/xhigh/max)。(2) tokenizer 改了,同一 prompt 的 token 用量可能为 1.00–1.35 倍。切线上流量前请重新校准成本和配额看板。

什么时候用 xhigh,什么时候用 max?

Anthropic 建议:xhigh 用于高级编程和复杂 agent 循环(Claude Code 默认);high 适合大多数对智能敏感的工作负载;只在 evals 证明 xhigh 还有上升空间时才用 max。max 容易过度思考——绝大多数 “Opus 4.7 很慢” 的反馈都来自习惯性把档位调到 max。

Opus 4.7 接受多大分辨率的图像?

长边最大 2,576 px,约 3.75 百万像素——是此前 Claude 的三倍以上。模型级自动应用,无需任何 API 参数。XBOW 视觉敏锐度基准报 98.5%(Opus 4.6 为 54.5%)。

Opus 4.7 在哪些平台可调用?

Anthropic API、Amazon Bedrock、Google Cloud Vertex AI、Microsoft Foundry、GitHub Copilot(Pro+、Business、Enterprise),以及通过 TheRouter 的 OpenAI 兼容 /v1/chat/completions 接口,模型 id 为 'anthropic/claude-opus-4.7'。

事实档案 — 本页每条断言可在此回溯来源
来源URL采集于
发布日期www.anthropic.com2026-05-22已核实
Anthropic 模型 iddocs.anthropic.com2026-05-22已核实
训练数据截止未知
推理强度档位platform.claude.com2026-05-22已核实
视觉输入最大分辨率www.anthropic.com2026-05-22已核实
Tokenizer 与 Opus 4.6 的差异www.anthropic.com2026-05-22已核实
部署平台aws.amazon.com2026-05-22已核实
许可已核实
SWE-bench Verifiedwww.anthropic.com2026-05-22已核实
SWE-bench Prowww.anthropic.com2026-05-22已核实
Terminal-Bench 2.0www.anthropic.com2026-05-22已核实
GPQA Diamondwww.anthropic.com2026-05-22已核实
MCP-Atlaswww.anthropic.com2026-05-22已核实
Finance Agentwww.anthropic.com2026-05-22已核实
Humanity's Last Exam (with tools)www.anthropic.com2026-05-22已核实
XBOW visual acuitywww.anthropic.com2026-05-22已核实
Anthropic 发布 Claude Opus 4.7:新增 xhigh 推理档与 3.75 MP 视觉输入anthropic.com/news2026-05-22已核实
Claude Opus 4.7 发布日即可在 Amazon Bedrock 调用aws.amazon.com/blogs/aws2026-05-22已核实
Anthropic 停用手动 budget_tokens:Opus 4.7 强制使用 adaptive thinkingplatform.claude.com2026-05-22已核实
Opus 4.7 在编程上比 Opus 4.6 强多少?www.anthropic.com2026-05-22待核实
调用 Opus 4.7 需要改 API 代码吗?platform.claude.com2026-05-22待核实
什么时候用 xhigh,什么时候用 max?platform.claude.com2026-05-22待核实
Opus 4.7 接受多大分辨率的图像?www.anthropic.com2026-05-22待核实
Opus 4.7 在哪些平台可调用?aws.amazon.com2026-05-22待核实
客服支持