AvailableanthropicChat
claude-sonnet-4

claude-sonnet-4

claude-sonnet-4

Pricing

Official priceCatalog priceDiscount
Input $1.95 / Output $9.75Input $1.95 / Output $9.75-

Capabilities

VisionTool UseJSON ModePrompt Cache
Context
410K
Max output
32K

Supported operations

Aliases

claude.sonnet.4.20250514.thinkingclaude.sonnet.4.thinkingclaude-sonnet-4-20250514claude-sonnet-4-20250514-thinkingclaude-sonnet-4-thinking

API Base

Example request

https://api.aisonar.dev
curl https://api.aisonar.dev/v1/chat/completions \
  -H "Authorization: Bearer $AI_SONAR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-sonnet-4",
    "messages": [{"role":"user","content":"Summarize this release note"}]
  }'
claude-sonnet-4 | AI Sonar