anthropic/claude-haiku-4.5
The lowest-cost current-generation Claude. Fast and strong at classification, routing, extraction, and summarization. 200K-token context. Use for high-volume, latency-sensitive tasks.
來源:official_x0.3 · 核驗於 2026-06-01
快取讀取 $0.03/M · 快取寫入 $0.375/M
API 呼叫時用任一 ID 都可以。
anthropic/claude-haiku-4.5claude-haiku-4-5請求中的 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-haiku-4.5",
max_tokens=1024,
messages=[{"role": "user", "content": "What is the meaning of life?"}],
)
print(message.content[0].text)最近 30 天 878 次請求