Back to all models
Claude Sonnet 4 - In-Depth Overview
Anthropic · Claude 4
Current
Latest in family
Model ID: claude-sonnet-4-20250514
Get all the details on Claude Sonnet 4, an AI model from Anthropic. This page covers its token limits, pricing structure, key capabilities such as multimodal_input, long_context, advanced_reasoning, available API code samples, and performance strengths.
Key Metrics
Input Limit
200K tokens
Output Limit
64K tokens
Input Cost
$3.00/1M
Output Cost
$15.00/1M
Sample API Code
import anthropic;client = anthropic.Anthropic(api_key="my_api_key",);message = client.messages.create(model="claude-sonnet-4-20250514",max_tokens=1024,messages=[{"role": "user", "content": "Hello, Claude"}]);print(message.content)
Required Libraries
anthropic
@anthropic-ai/sdk
Benchmarks
Benchmark | Score | Source | Notes |
---|---|---|---|
69.65 | LiveBench | - | |
54.86 | LiveBench | - | |
77.54 | LiveBench | - | |
76.39 | LiveBench | - | |
64.68 | LiveBench | - | |
67.18 | LiveBench | - | |
77.25 | LiveBench | - |
Notes
High-performance model with exceptional reasoning and efficiency.
Supported Data Types
Input Types
text
image
Output Types
text
Strengths & Weaknesses
Exceptional at
reasoning
coding
multilingual tasks
long context handling
image processing
Good at
human-like interactions
Additional Information
Latest Update
May 14, 2025
Knowledge Cutoff
Mar 1, 2025