The best combination of speed and intelligence.
200K context window
128K max output tokens
Released: 2026-06-30
Protocols:OpenAIAnthropic
Capabilities:VisionFunction CallingReasoningPrompt CachingPDF InputWeb Search
定价
价格1.5折
HaoAI
官方
输入 Token
$0.45/M
$3/M
输出 Token
$2.25/M
$15/M
缓存读取
$0.045/M
$0.3/M
缓存创建
$0.563/M
$3.75/M
缓存创建 5 分钟
$0.563/M
$3.75/M
缓存创建 1 小时
$0.9/M
$6/M
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-sonnet-5",
max_tokens=1024,
messages=[
{"role": "user", "content": "Hello!"}
],
)
print(message.content[0].text)