Claude

Anthropic: Claude Sonnet 5Chat

anthropic/claude-sonnet-5

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

Pricing

PriceRate 0.15x
HaoAI
Official
Input
$0.45/M
$3/M
Output
$2.25/M
$15/M
Cache read
$0.045/M
$0.3/M
Cache creation
$0.563/M
$3.75/M
Cache creation 5m
$0.563/M
$3.75/M
Cache creation 1h
$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)

Related Models