Claude

Anthropic: Claude Sonnet 5Chat

anthropic/claude-sonnet-5

Claude Sonnet 5 is a next-generation Claude Sonnet model for advanced coding, reasoning, research, and scalable agent workflows. It provides a 1M-token context window and up to 128K output tokens. Its current HaoAI catalog capabilities include vision, function calling, reasoning, web search, prompt caching, PDF input. Use model ID anthropic/claude-sonnet-5 through HaoAI's OpenAI-compatible and Anthropic-compatible APIs.

1M 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.3/M
$2/M
Output
$1.5/M
$10/M
Cache read
$0.03/M
$0.2/M
Cache creation
$0.375/M
$2.5/M
Cache creation 5m
$0.375/M
$2.5/M
Cache creation 1h
$0.6/M
$4/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)

Frequently asked questions

HaoAI bills based on actual request usage. Input, output, cache, and any other applicable rates follow the live pricing table on this page. Final request costs are available in the console.