anthropic/claude-sonnet-4.6
Claude 家族的均衡款。推理、编码、工具调用都强,价格远低于 Opus,标准价即享 100 万 token 上下文。大多数生产负载的首选。
来源: official_x0.3 · 核验于 2026-06-01
缓存读 $0.09/M · 缓存写 $1.125/M
API 调用时用任一 ID 都可以。
anthropic/claude-sonnet-4.6claude-sonnet-4-6请求里的 model 可以直接使用这些名字。
把 ONEHOP_KEY 占位符替换为你的 API Key。 创建 →
from anthropic import Anthropic
client = Anthropic(
base_url="https://api.onehop.ai/anthropic",
api_key="<ONEHOP_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)最近 30 天 5,230 次请求