Anthropic: Claude Sonnet 4

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.

Context
1M
Max output
64K
Input price
$3/1M tokens
Output price
$15/1M tokens

Capabilities

vision
tool call
structured output
reasoning
json mode
streaming
fine tuning
batch

Details

Model IDanthropic/claude-sonnet-4
Provider OpenRouter
Creator Anthropic
License
Parameters
Status
Input modalitiesimage, text
Output modalitiestext
Architecture
Knowledge cutoff
Training data cutoff
Release date
Deprecation date
Typechat
Reasoning tokens
Max input
Open weight
Sourceofficial
Last updated

Tools

Function Callingfunction_calling
Call external functions and APIs

Pricing

Input
$3
Output
$15
Cache write
Cache read
$0.3
Batch in
Batch out

Family Comparison: claude-sonnet

ModelContextMax outPricing
Anthropic Claude Sonnet Latest1M128K$3$15
Anthropic: Claude 3.7 Sonnet (thinking)200K64K$3$15
Anthropic: Claude 3.7 Sonnet200K64K$3$15
Anthropic: Claude Sonnet 4.51M64K$3$15
Anthropic: Claude Sonnet 4.61M128K$3$15
Anthropic: Claude Sonnet 41M64K$3$15
Anthropic: Claude 3.5 Sonnet200K8K$6$30

API

GET/v1/models/openrouter/anthropic/claude-sonnet-4