All models

claude-sonnet-4-5

claude-sonnet-4-5
StreamingTool callingVisionReasoningJSON mode
Get API key

Overview

claude-sonnet-4-5 is available on MAX API through the OpenAI-compatible API.

Pricing

Official list prices in USD. Token prices are per 1M tokens.
TierInputOutputCache readCache write
Input ≤ 200,000 tokens$3$15$0.3$3.75
Input > 199,999 tokens$6$22.5$0.6$7.5

This model uses tiered pricing: the tier is chosen by the total input length of each request.

Cache read applies to prompt tokens served from the prompt cache; cache write applies to tokens written into it.

Example request

curl https://clubs.byte-ai.cn/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-sonnet-4-5",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'