Compare

Claude Sonnet 4 — and what?

Pricing per million tokens, context window, capabilities — pulled from each provider's public docs. All 1 are available via the same AIgateway OpenAI-compatible endpoint; flip the model string to switch.

Search1/4
Claude Sonnet 4
anthropic/claude-sonnet-4
Provider
Anthropic
Family
Claude 4
Modality
text
Context window
200,000 tok
Max output
16,000 tok
Released
2026-05-22
License
Proprietary
Input price
$3.00 /1M
Output price
$15.00 /1M
Tools
yes
Streaming
yes
Vision
yes
JSON mode
yes
Reasoning
yes
Prompt caching
Batch API
Try it
Open in playground →
Claude Sonnet 4
anthropic/claude-sonnet-4
Full spec →

Claude Sonnet 4 delivers superior coding and reasoning while responding more precisely to instructions, a significant upgrade over previous versions.

Strengths
  • General-purpose chat
  • Long context
  • Tool use
Use cases
ChatbotsContent generationAgentic workflows

Compare with another

Claude Haiku 4.5 vs Claude Sonnet 4
anthropic/claude-haiku-4.5 · anthropic/claude-sonnet-4
Claude Opus 4.5 vs Claude Sonnet 4
anthropic/claude-opus-4.5 · anthropic/claude-sonnet-4
Claude Opus 4.6 vs Claude Sonnet 4
anthropic/claude-opus-4.6 · anthropic/claude-sonnet-4
Claude Opus 4.7 vs Claude Sonnet 4
anthropic/claude-opus-4.7 · anthropic/claude-sonnet-4
Claude Opus 4.8 vs Claude Sonnet 4
anthropic/claude-opus-4.8 · anthropic/claude-sonnet-4
Claude Sonnet 4 vs Claude Sonnet 4.5
anthropic/claude-sonnet-4 · anthropic/claude-sonnet-4.5
Claude Sonnet 4.6 vs Claude Sonnet 4
anthropic/claude-sonnet-4.6 · anthropic/claude-sonnet-4