anthropic/claude-sonnet-5.5
Anthropic 最新一代 Sonnet,接替 Sonnet 5 且官方同价。迄今最快的 Sonnet,比 Sonnet 5 快 30% 以上;完成任务所需的 token 与工具调用更少,单任务成本更低。编码与 Agent 基准接近 Opus 5.5。最擅长边界清晰的日常工作:修 bug、做小功能、产出精致文档。支持 100 万 token 上下文与原生 prompt cache。
来源: official_x0.3 · 核验于 2026-09-29
缓存读 $0.06/M · 缓存写 $0.75/M
API 调用时用任一 ID 都可以。
anthropic/claude-sonnet-5.5claude-sonnet-5-5把 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-5.5",
max_tokens=1024,
messages=[{"role": "user", "content": "What is the meaning of life?"}],
)
print(message.content[0].text)