Anthropic's balanced model with excellent coding and reasoning. Best price-to-performance ratio.
Context Window
200K
tokens
Max Output
16K
tokens
Input Price
$3
per 1M tokens
Output Price
$15
per 1M tokens
Speed
95
tokens/sec
Released
May 2025
2025-05-22
Blended Cost
$9.00
per 1M tokens
Value Score
9.8
quality per $
Capabilities
ChatVisionCode GenerationFunction Calling
Benchmarks
Quality Index
88
MMLU Pro
89.5
HumanEval (Coding)
93.7
MATH
81.2
Arena ELO
1320
Price vs Quality
Cheaper is left, more capable is up. 32 of 69 priced models are both cheaper and score at least as high. Self-host models are left off the price axis — their cost depends on the hardware you run them on, not on tokens.
Context Window in Context
Codestral256K
▸ Claude Sonnet 4200K
o3 Mini200K
o3200K
Claude Opus 4200K
Claude 3.5 Haiku200K
Sonar Pro200K
GLM-5.1200K
Bar length is logarithmic — each full step is 10× the tokens. Shown against the models with the nearest context windows, not the directory extremes.
Claude Sonnet 4 is a balanced AI model by Anthropic, released on May 22, 2025. It supports a context window of 200K tokens and can generate up to 16K output tokens.
At $3 per million input tokens and $15 per million output tokens, its blended cost of $9.00/1M tokens places it in the premium pricing tier. Its value score of 9.8 reflects the balance of quality and cost.
Using Claude Sonnet 4 with Swfte
Access Claude Sonnet 4 through Swfte Connect, our unified LLM gateway. Connect gives you a single API for 50+ models, with automatic routing, cost optimization, and fallback handling. You can also try Claude Sonnet 4 in our AI Playground before integrating.
Deploy a model with Swfte Connect
One gateway, every provider, per-token cost visibility. Swap models without touching your code.