← All models

Anthropic: Claude Sonnet 4

anthropic/claude-sonnet-4

VisionTool useReasoningStreaming

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%),...

Pricing

Input

$3.00 / 1M

Output

$15.00 / 1M

Specs

Context

1,000,000 tokens

Input

image, text, file

Output

text

Knowledge cutoff: 2025-01-31

Released: 2025-05

Supported parameters

include_reasoningmax_tokensreasoningstoptemperaturetool_choicetoolstop_ktop_p