Claude Sonnet 4
Anthropic's balanced model with excellent coding and reasoning. Best price-to-performance ratio.
200K
tokens
16K
tokens
$3
per 1M tokens
$15
per 1M tokens
95
tokens/sec
May 2025
2025-05-22
$9.00
per 1M tokens
9.8
quality per $
Capabilities
Benchmarks
Price vs Quality
Context Window in Context
- Codestral256K
- ▸ Claude Sonnet 4200K
- o3 Mini200K
- o3200K
- Claude Opus 4200K
- Claude 3.5 Haiku200K
- Sonar Pro200K
- GLM-5.1200K
尚未接入我们的网关
Swfte Connect 尚未持有 Claude Sonnet 4 的密钥,因此这里没有可运行的内容。添加你自己的提供商密钥,就能用与本目录中其他模型相同的 API 调用它。
curl https://api.swfte.com/agents/v2/gateway/chat/completions \
-H "Authorization: Bearer $SWFTE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "anthropic:claude-sonnet-4-20250514",
"messages": [{"role": "user", "content": "Hello"}]
}'About Claude Sonnet 4
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.