← All models
anthropic

Claude Sonnet 4

anthropic/claude-sonnet-4

Ratings & Rankings

Input Cost
$3.0000
12/100
Output Cost
$15.0000
11/100
Context Window
1M
79/100
Overall
34/100
34/100

Key Specifications

Context Window1M
Max Output64K
TokenizerClaude
Input Modalitiesimage, text, file
Output Modalitiestext

Pricing

Input (per M tokens)$3.0000per million tokens
Output (per M tokens)$15.0000per million tokens

Input & Output

You send
imagetextfile
You get
text

Capabilities

Function calling
Structured outputs
Unmoderated

About

Claude Sonnet 4 significantly enhances the capabilities of its predecessor, Sonnet 3.7, excelling in both coding and reasoning tasks with improved precision and controllability. Achieving state-of-the-art performance on SWE-bench (72.7%),...

Supported parameters

include_reasoningmax_tokensreasoningstoptemperaturetool_choicetoolstop_ktop_p