Claude Sonnet 4 reasoning

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

Capabilities

Context Window 1M tokens
Max Output 64k tokens
Inputs
Outputs

Pricing (per 1M tokens)

Input $3.00
Output $15.00
Cache Read $0.30
Cache Write $3.75

Supported Parameters

include_reasoningmax_tokensreasoningstoptemperaturetool_choicetoolstop_ktop_p