Claude

Anthropic: Claude Sonnet 4.5Chat

anthropic/claude-sonnet-4.5

Claude Sonnet 4.5 is a balanced Claude Sonnet model for coding, analysis, document processing, and general agent workflows. It provides a 200K-token context window and up to 64K output tokens. Its current HaoAI catalog capabilities include vision, function calling, reasoning, prompt caching, PDF input. Use model ID anthropic/claude-sonnet-4.5 through HaoAI's OpenAI-compatible and Anthropic-compatible APIs.

200K context window
64K max output tokens
Released: 2025-09-29
Protocols:OpenAIAnthropic
Capabilities:VisionFunction CallingReasoningPrompt CachingPDF Input

Pricing

PriceRate 0.2x
HaoAI
Official
Input
$0.6/M
$3/M
Output
$3/M
$15/M
Cache read
$0.06/M
$0.3/M
Cache creation
$0.75/M
$3.75/M
Cache creation 5m
$0.75/M
$3.75/M
Cache creation 1h
$1.2/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-4.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.