返回模型列表

Claude Opus 4

anthropicanthropic/claude-opus-4

Claude Opus 4 is Anthropic's most intelligent model and is state-of-the-art for coding and agent capabilities, especially agentic search. It excels for customers needing frontier intelligence: Advanced coding: Independently plan and execute complex development tasks end-to-end. It adapts to your style and maintains high code quality throughout. AI agents: Enable agents to tackle complex, multi-step tasks that require peak accuracy. Agentic search and research: Connect to multiple data sources to synthesize comprehensive insights across repositories. Long-horizon tasks and complex problem solving (virtual collaborator): Unlock new use cases involving long-horizon tasks that require memory, sustained reasoning, and long chains of actions. Content creation: Create human-quality content with natural prose. Produce long-form creative content, technical documentation, marketing copy, and frontend design mockups.

Claude Opus 4 与 Sonnet 4 一同于 2025 年 5 月 22 日发布,是 Anthropic 当时最强大的模型,也是编码基准测试的领先者。它在不使用扩展思考的情况下,SWE-bench Verified 得分 72.5%,Terminal-bench 得分 43.2%——是当时最强的代码生成模型。作为混合推理模型,它同时支持近即时响应和扩展思考(最高 64k token),也是首个在为开发者提供本地文件访问权限时显著提升记忆能力的 Anthropic 模型。

从 TheRouter 路由视角来看,Claude Opus 4 是 Anthropic Opus 系列的原始顶端,现已被标记为 deprecated。它的继任者是 2025 年 8 月发布的 Opus 4.1(在原定价层级上提升了代理精度),以及此后的 Opus 4.5 至 4.8。其原始定价为每百万 token $15/$75,高于 Opus 4.5+ 的 $5/$25 新价格层。使用 claude-opus-4-20250514 API ID 的现有集成仍可继续工作,但 Anthropic 建议迁移至 Opus 4.5 或更新版本,以获得更好的性能和更低的成本。

适合使用
  • • 仍锁定 claude-opus-4-20250514 且尚未迁移的遗留集成——仍可调用,但已被标记为 deprecated
  • • 需要 2025-05-22 版本模型行为的历史基准测试或研究
不适合使用
  • • 新生产负载——请迁移到 anthropic/claude-opus-4-5 或更新版本,以获得更低成本($5/$25 对比 $15/$75)、更大上下文(1 M token)和显著更高的编码评分
  • • 对成本敏感或高吞吐的工作流——原始 $15/$75 定价远高于 Opus 4.5+ 世代
上下文长度
200K
最大输出
32K
输入价格每百万 tokens
$16.20每百万 Tokens
输出价格每百万 tokens
$81.00每百万 Tokens

模态能力

文本图像PDF→文本

能力

视觉理解

价格明细

类型费率
输入$16.20 每百万 Tokens
输出$81.00 每百万 Tokens

支持参数

temperaturemax_tokenstop_ptoolstool_choiceresponse_formatreasoningstop

模型规格

发布日期2025-05-22www.anthropic.com ↗已核实
Anthropic API 模型 IDclaude-opus-4-20250514(别名:claude-opus-4-0)platform.claude.com ↗已核实
AWS Bedrock 模型 IDanthropic.claude-opus-4-20250514-v1:0platform.claude.com ↗已核实
Vertex AI 模型 IDclaude-opus-4@20250514platform.claude.com ↗已核实
上下文窗口200 000 tokenplatform.claude.com ↗已核实
最大输出 token32 000platform.claude.com ↗已核实
推理模式即时响应(默认)+ 扩展思考(最高 64 k token)www.anthropic.com ↗已核实
训练数据截止未公开披露未知
许可Anthropic Usage Policy(闭源,仅 API)已核实
生命周期状态已废弃——仍可调用;建议迁移至 Opus 4.5 或更高版本platform.claude.com ↗已核实

基准成绩

BenchmarkDistributionScoreSource
SWE-bench Verified
未使用扩展思考。在 Claude 4 发布时(2025 年 5 月),领先所有公开可用模型。
72.5%%www.anthropic.com ↗
Terminal-bench
未使用扩展思考。衡量基于终端的真实世界软件工程任务。
43.2%%www.anthropic.com ↗
GPQA Diamond
未使用扩展思考;启用扩展思考后得分更高。
74.9%%www.anthropic.com ↗
MMMLU
未使用扩展思考。
87.4%%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",
    "messages": [
      {"role": "user", "content": "Summarize the key points from this input."}
    ]
  }'

API 使用指南

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

anthropic 其他模型

同类模型

跨供应商的相似能力档位

近期动态

常见问题

Claude Opus 4 在 TheRouter 上仍然可用吗?

是的。您可以通过 TheRouter 的 OpenAI 兼容接口调用 anthropic/claude-opus-4(或固定 ID claude-opus-4-20250514)。但 Anthropic 已将其标记为 deprecated,建议迁移至 Opus 4.5 或更新版本,以获得更好的性能和显著更低的成本。

Claude Opus 4 与同期发布的 Sonnet 4 相比如何?

两个模型于同一天(2025 年 5 月 22 日)发布,SWE-bench Verified 得分几乎相同(72.5% 对比 72.7%)。Opus 4 在 GPQA Diamond(74.9% 对比 70.0%)和 MMMLU(87.4% 对比 85.4%)上表现更优,并在长程代理任务中出色。Sonnet 4 以五分之一的价格($3/$15 对比 $15/$75)提供相同的编码基准表现,使其成为高吞吐工作负载的实际选择。

TheRouter 编辑重写www.anthropic.com ↗
事实档案 — 本页每条断言可在此回溯来源
来源URL采集于
发布日期www.anthropic.com ↗2026-06-10已核实
Anthropic API 模型 IDplatform.claude.com ↗2026-06-10已核实
AWS Bedrock 模型 IDplatform.claude.com ↗2026-06-10已核实
Vertex AI 模型 IDplatform.claude.com ↗2026-06-10已核实
上下文窗口platform.claude.com ↗2026-06-10已核实
最大输出 tokenplatform.claude.com ↗2026-06-10已核实
推理模式www.anthropic.com ↗2026-06-10已核实
训练数据截止——未知
许可——已核实
生命周期状态platform.claude.com ↗2026-06-10已核实
SWE-bench Verifiedwww.anthropic.com ↗2026-06-10已核实
Terminal-benchwww.anthropic.com ↗2026-06-10已核实
GPQA Diamondwww.anthropic.com ↗2026-06-10已核实
MMMLUwww.anthropic.com ↗2026-06-10已核实
Claude Opus 4 在 TheRouter 上仍然可用吗?platform.claude.com ↗2026-06-10待核实
Claude Opus 4 与同期发布的 Sonnet 4 相比如何?www.anthropic.com ↗2026-06-10待核实
帮助与联系