Claude

Anthropic: Claude Haiku 4.5

Chat
anthropic/claude-haiku-4.5

Anthropic 面向快速响应和高性价比优化的 Claude Haiku 模型,支持扩展思考能力,适合需要低延迟的编码、分析和日常自动化任务。

200K context window
64K max output tokens
Released: 2025-10-15
Protocols:OpenAIAnthropic
Capabilities:VisionFunction CallingPrompt CachingPDF Input

PricingRate 0.15x

TypeHaoAI PriceOfficial ReferenceRate
Input$0.15/M$1/M0.15x · 85% savings
Output$0.75/M$5/M0.15x · 85% savings
Cache read$0.015/M$0.1/M0.15x · 85% savings
Cache write$0.188/M$1.25/M0.15x · 85% savings
Cache write 5m$0.188/M$1.25/M0.15x · 85% savings
Cache write 1h$0.3/M$2/M0.15x · 85% savings

Code Examples

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)

Related Models