跳到主要内容

选择 Claude 模型

入门

Anthropic 提供了一系列处于不同能力/成本/速度定位的模型。选好模型的关键在于让模型与任务匹配——并且不为你用不到的能力多花钱。

当前的模型

Last verified: 2026-06-20 · Official models & pricing

ModelAPI model IDTierBest for
Claude Opus 4.8claude-opus-4-8Opus — most capableThe hardest reasoning, long-horizon agents, and complex coding where quality matters more than cost.
Claude Sonnet 4.6claude-sonnet-4-6Sonnet — balancedThe default workhorse: strong coding and reasoning at a fraction of Opus cost. Start here for most production work.
Claude Haiku 4.5claude-haiku-4-5-20251001Haiku — fastest & cheapestHigh-volume, latency-sensitive tasks: classification, extraction, routing, simple chat, and cheap sub-agents.
Fable 5claude-fable-5Latest generationOne of the newest Claude models. Capabilities and positioning evolve quickly — check the official page above before choosing it.

Model IDs are exact; tiers and 'best for' are guidance. Pricing, context-window sizes and rate limits change frequently and are intentionally NOT listed here — always read them on the official page above. This file is the single source of truth: never hard-code model facts in prose, link to this table instead.

试一试:哪个模型合适?

回答三个问题,获得一个起步建议:

任务难度
最看重什么
请求量
Claude Sonnet

均衡的默认之选——以 Opus 的零头成本提供强劲的推理和编码能力。先从这里起步,只有真正撞到质量天花板时再往上升。

在以下位置查询确切的模型 ID: 模型表. 仅为经验法则——用你自己的输入快速跑一次评测才能确定。

心智模型:一条能力阶梯

  • 从 Sonnet 开始。 它是默认的主力——具备强大的推理与编码能力,且成本合理。大多数任务都应从这里起步。
  • 仅在 Sonnet 力不从心、且质量比成本更重要时(高难度推理、棘手的智能体、棘手的代码)才升级到 Opus。
  • 对于高并发、对延迟敏感或简单的工作(分类、抽取、路由、廉价的子智能体),降级到 Haiku。

实际该如何选择

  1. 默认使用 Sonnet 并上线。
  2. 遇到质量瓶颈? 只在困难的子集上尝试 Opus。
  3. 成本或延迟吃不消? 看看 Haiku 是否足以胜任那一步。
  4. 混合使用模型。 用 Haiku 做廉价的前/后处理,用 Sonnet/Opus 攻克核心难题。这种"模型分层"是最有力的成本杠杆之一——参见 成本与延迟

:::tip 不要只凭基准测试来选 公开的基准测试是一个起点提示,而不是针对 你的 任务的定论。在两个模型上,用你的少量真实输入跑一个小型 评测——只需几分钟,胜过靠猜。 :::

查找确切的模型 ID

始终传入当前的 API 模型 ID(例如在你的 messages.create 调用中)。从 上面的模型表 或官方模型页面获取它——并且最好从配置中读取,而不是在多处硬编码,这样模型升级就只需改一行。

下一步