Claude Sonnet 4

AnthropicStandard

Balanced model with strong coding, analysis, and instruction following. Best value for most tasks.

Pricing

Input (per 1M tokens)
$3.00
Output (per 1M tokens)
$15.00

Cost Examples

ScenarioCost
100 chat messages (500 in / 200 out each)$0.4500
1K API calls (2K in / 500 out each)$13.5000
10K short requests (200 in / 100 out each)$21.0000
1M tokens input + 100K output$4.5000

Capabilities

Context Window
200K
Max Output
64K
Speed
70 tok/s
Released
2025-05-22
YesVision
YesTool Use
YesStreaming
YesJSON Mode

API Details

Model IDclaude-sonnet-4-20250514
API Endpointhttps://api.anthropic.com/v1/messages
Last Updated2026-04-12

Other Anthropic Models

Open Cost Calculatorto compare Claude Sonnet 4 costs with other models