Anthropic: Claude Haiku 4.5
Chatanthropic/claude-haiku-4.5Anthropic 面向快速响应和高性价比优化的 Claude Haiku 模型,支持扩展思考能力,适合需要低延迟的编码、分析和日常自动化任务。
200K 上下文窗口
64K 最大输出 token
发布日期: 2025-10-15
支持的协议:OpenAIAnthropic
能力:视觉函数调用提示缓存PDF 输入
定价1.5折
| 类型 | HaoAI 价格 | 官方参考价 | 倍率 |
|---|---|---|---|
| 输入 Token | $0.15/M | $1/M | 0.15x · 节省 85% |
| 输出 Token | $0.75/M | $5/M | 0.15x · 节省 85% |
| 缓存读取 | $0.015/M | $0.1/M | 0.15x · 节省 85% |
| 缓存写入 | $0.188/M | $1.25/M | 0.15x · 节省 85% |
| 缓存写入 5 分钟 | $0.188/M | $1.25/M | 0.15x · 节省 85% |
| 缓存写入 1 小时 | $0.3/M | $2/M | 0.15x · 节省 85% |
代码示例
import anthropic
client = anthropic.Anthropic(
base_url="https://api.hao.ai/anthropic",
api_key="YOUR_HAOAI_API_KEY",
)
message = client.messages.create(
model="anthropic/claude-haiku-4.5",
max_tokens=1024,
messages=[
{"role": "user", "content": "Hello!"}
],
)
print(message.content[0].text)