Due to an upstream channel cost increase, all Claude models are now billed at 20% of Anthropic's official API prices (previously 18%), effective immediately. Pricing for other providers is unchanged.View latest pricing
Claude

Claude Sonnet 5

Official

anthropic/claude-sonnet-5

Anthropic's most agentic Sonnet yet. Plans, uses tools, and runs autonomously at a level that recently required larger, pricier models — approaching Opus 4.8 on reasoning, coding, and tool use, at a fraction of the cost. 1M-token context window with native prompt caching. The new default for most agentic and production workloads.

1000K 上下文视觉理解推理工具调用编码提示词缓存

定价

来源: anthropic_x0.20 · 核验于 2026-08-06

输入官方 $3 / 百万 tokens
$0.6/ 百万 tokens2折
¥4.08 / 百万 tokens
输出官方 $15 / 百万 tokens
$3/ 百万 tokens2折
¥20.4 / 百万 tokens

缓存读 $0.06/M · 缓存写 $0.75/M

本币价按固定汇率折算(1 美元 = 6.8 CNY),汇率更新于 2026-08-02,仅供参考;计费始终以美元结算。

成本估算

预估费用$0.009

支持协议

  • OpenAI Chat CompletionsStatus: 不支持
  • OpenAI ResponsesStatus: 不支持
  • Anthropic MessagesStatus: 可用: 支持流式https://api.routemux.com/anthropic
  • Google Vertex AIStatus: 不支持
  • OpenAI ImagesStatus: 不支持
  • OpenAI SoraStatus: 不支持

调用 ID

API 调用时用任一 ID 都可以。

RouteMux 名anthropic/claude-sonnet-5

动手试一下

把 ROUTEMUX_KEY 占位符替换为你的 API Key。 创建 →

from anthropic import Anthropic

client = Anthropic(
    base_url="https://api.routemux.com/anthropic",
    api_key="<ROUTEMUX_KEY>",
)

message = client.messages.create(
    model="anthropic/claude-sonnet-5",
    max_tokens=1024,
    messages=[{"role": "user", "content": "What is the meaning of life?"}],
)
print(message.content[0].text)
base_url: https://api.routemux.com/anthropic

同族其他变体

常见问题

Claude Sonnet 5 是什么?

Anthropic's most agentic Sonnet — Opus-class capability at lower cost.

Claude Sonnet 5 的上下文窗口有多大?

Claude Sonnet 5 支持最多 1M tokens 的上下文窗口,单次最多输出 8K tokens。

Claude Sonnet 5 的 API 价格是多少?

通过 RouteMux 调用 Claude Sonnet 5:输入 $0.6、输出 $3(USD / 1M tokens),低于官方定价。

如何通过 API 调用 Claude Sonnet 5?

Claude Sonnet 5 兼容 OpenAI 接口:把 base URL 换成 RouteMux、model 填 anthropic/claude-sonnet-5 即可,无需改代码。

Claude Sonnet 5 支持哪些输入输出模态?

Claude Sonnet 5 的输入模态:text, image;输出模态:text。