Claude Sonnet 4.6
Officialanthropic/claude-sonnet-4.6
The balanced default of the Claude lineup. Strong reasoning, coding, and tool use at a fraction of Opus cost, with a 1M-token context window at standard pricing. The go-to for most production workloads.
定价
来源: anthropic_x0.20 · 核验于 2026-08-06
缓存读 $0.06/M · 缓存写 $0.75/M
本币价按固定汇率折算(1 美元 = 6.8 CNY),汇率更新于 2026-08-02,仅供参考;计费始终以美元结算。
成本估算
支持协议
- OpenAI Chat CompletionsStatus: 不支持—
- OpenAI ResponsesStatus: 不支持—
- Anthropic MessagesStatus: 可用: 支持流式https://api.routemux.com/anthropic
- Google Vertex AIStatus: 不支持—
- OpenAI ImagesStatus: 不支持—
- OpenAI SoraStatus: 不支持—
调用 ID
API 调用时用任一 ID 都可以。
anthropic/claude-sonnet-4.6claude-sonnet-4-6可用模型 ID
请求里的 model 可以直接使用这些名字。
动手试一下
把 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-4.6",
max_tokens=1024,
messages=[{"role": "user", "content": "What is the meaning of life?"}],
)
print(message.content[0].text)同族其他变体
常见问题
›Claude Sonnet 4.6 是什么?
Anthropic Claude Sonnet 4.6 — best price-to-quality balance.
›Claude Sonnet 4.6 的上下文窗口有多大?
Claude Sonnet 4.6 支持最多 1M tokens 的上下文窗口,单次最多输出 8K tokens。
›Claude Sonnet 4.6 的 API 价格是多少?
通过 RouteMux 调用 Claude Sonnet 4.6:输入 $0.6、输出 $3(USD / 1M tokens),低于官方定价。
›如何通过 API 调用 Claude Sonnet 4.6?
Claude Sonnet 4.6 兼容 OpenAI 接口:把 base URL 换成 RouteMux、model 填 anthropic/claude-sonnet-4.6 即可,无需改代码。
›Claude Sonnet 4.6 支持哪些输入输出模态?
Claude Sonnet 4.6 的输入模态:text, image;输出模态:text。