anthropic

Anthropic: Claude Sonnet 4

Claude Sonnet 4 from Anthropic is designed to process extensive text and handle diverse input modalities including text, images, and files. It supports reasoning capabilities and can engage with external tools for enhanced functionality. With a context length of one million tokens, it excels in handling complex tasks that require deep understanding and interaction. This model should be considered by those who need robust, multi-modal processing power and the ability to integrate external tools, though its price point of $3.0 per million input tokens and $15.0 per million output tokens makes it more suitable for projects with a defined budget. Its blended benchmark score of 59.1 across five independent benchmarks suggests strong performance in specific areas but may not be the best overall choice if cost is a significant factor.

Quality Score
96/100
price + capability + benchmarks
Input Price
$3.00
per 1M tokens
Output Price
$15.00
per 1M tokens
Context Window
1,000,000
tokens

Benchmark results

Independent, published benchmarks. Blended score 57.9 across 5 benchmarks, last refreshed 2026-07-25. How scoring works →

BenchmarkMeasuresScore
Aider Polyglot code editing across languages 64.9
AI Index broad capability composite 42.1
AI Index Coding software engineering tasks 62.0
AI Index Agentic multi-step tool-using tasks 27.5
EQ-Bench emotional understanding in dialogue 66.6
Model ID
anthropic/claude-sonnet-4
Vendor
anthropic
Released
May 2025
Tokenizer
Claude
Input Modalities
image, text, file
Output Modalities
text
Max Output
64,000 tokens
Tool Calling
✓ supported
Structured Output
not supported
Reasoning Mode
✓ supported
Vision
✓ accepts images
Audio
no
Moderated
yes

What it costs in practice

Computed from the current $3.00/M input and $15.00/M output rates. Run your own numbers →

JobTokensCost
Summarize a 50-page report 30k in / 1.5k out $0.11
Classify 1,000 customer emails 500k in / 50k out $2.25
A month of a busy support chatbot 5M in / 2M out $45.00

Category rankings

Where Anthropic: Claude Sonnet 4 places across the 28 categories it ranks in. How we rank →

#CategoryScore
#15 Legal ResearchProfessional · of 25 ranked 166
#15 Scientific ResearchProfessional · of 25 ranked 166
#15 Long-Context Q&AAgents · of 25 ranked 154
#15 Fiction CollaboratorPersonal · of 25 ranked 166
#15 Literature ReviewResearch · of 25 ranked 166
#16 Long-Document SummarizationWriting · of 25 ranked 158
#17 Physics TutoringEducation · of 25 ranked 143
#18 Creative WritingWriting · of 25 ranked 155
#18 Screenwriting & DialogWriting · of 25 ranked 155
#18 Academic WritingWriting · of 25 ranked 155
#18 Legal DraftingProfessional · of 25 ranked 155
#18 History TutoringEducation · of 25 ranked 143
#18 OKRs & Strategic PlanningBusiness · of 25 ranked 155
#18 Math ProofsResearch · of 25 ranked 155
#19 Character RoleplayPersonal · of 25 ranked 147
#20 Code RefactoringCode · of 25 ranked 160
#20 Bug FixingCode · of 25 ranked 172
#20 Contract ReviewProfessional · of 25 ranked 172
#20 RAG PipelinesAgents · of 25 ranked 160
#20 Scientific CodingResearch · of 25 ranked 172
#21 Code ReviewCode · of 25 ranked 160
#21 Essay GradingEducation · of 25 ranked 160
#21 Agent WorkflowsAgents · of 25 ranked 181
#21 Coding AgentsAgents · of 25 ranked 181
#23 ETL ScriptingData · of 25 ranked 148
#23 Blog Post WritingWriting · of 25 ranked 135
#23 Medical Note SummarizationProfessional · of 25 ranked 148
#23 Trip PlanningPersonal · of 25 ranked 135

Similar models

Quick answers

How much does Anthropic: Claude Sonnet 4 cost?
$3.00 per million input tokens and $15.00 per million output tokens.
What is Anthropic: Claude Sonnet 4's context window?
1,000,000 tokens, roughly 1,500 pages of text in a single request.
Does Anthropic: Claude Sonnet 4 support tool calling?
It supports tool calling, a reasoning mode.
Can Anthropic: Claude Sonnet 4 process images?
Yes, it accepts image input.