anthropic/claude-haiku-4.5
当代最低成本的 Claude。快,擅长分类、路由、抽取、摘要。20 万 token 上下文。适合高并发、对延迟敏感的任务。
来源: launch_0023 · 核验于 2026-06-01
缓存读 $0.050/M · 缓存写 $0.625/M
把 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-haiku-4.5",
max_tokens=1024,
messages=[{"role": "user", "content": "What is the meaning of life?"}],
)
print(message.content[0].text)