anthropic/claude-opus-5
Anthropic 当前旗舰 Opus,接替 Opus 4.8 且同价。面向复杂 Agent 编码与企业级任务:跨文件改造、大型重构、长时间自主运行都能真正做完,而不是留下半成品。默认开启深度推理,支持 100 万 token 上下文与原生 prompt cache。任务够难、结果必须对时的第一选择。
来源: official_x0.3 · 核验于 2026-07-25
缓存读 $0.15/M · 缓存写 $1.875/M
API 调用时用任一 ID 都可以。
anthropic/claude-opus-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-opus-5",
max_tokens=1024,
messages=[{"role": "user", "content": "What is the meaning of life?"}],
)
print(message.content[0].text)