Claude 4 Sonnet logo

Claude 4 Sonnet

Anthropic · Released Mar 2026

Recommended

The best balance of speed, quality, and cost for most production workloads including code generation and document analysis.

Is it right for you?

Good for

  • Code generation and review
  • Long document analysis
  • Structured data extraction
  • Multi-step reasoning

Not good for

  • Quick factual lookups where cost matters
  • Image generation
  • Real-time conversational agents on a tight budget

How it performs by task

Code generation

Excellent

Top-tier code generation with strong understanding of complex codebases and architectural patterns.

Document analysis

Excellent

Excellent at processing long documents with accurate extraction and summarization across 200K context.

Data extraction

Very Good

Reliable structured output from unstructured text, with strong schema adherence.

Creative writing

Very Good

Produces high-quality prose with natural tone, though less stylistically varied than Opus.

Workflow automation

Very Good

Strong tool use capabilities for agentic workflows and multi-step task execution.

Pricing

Input

$3 / 1M tokens

Output

$15 / 1M tokens

Context

200K tokens

Verified 2026-05-28View full pricing

Benchmarks

BenchmarkScoreSource
SWE-bench Verified72.7% Source
MMLU-Pro84.2% Source
HumanEval93.7% Source

Verdict history

Jun 12, 2026Pricing

Google cuts Gemini 2.5 Pro pricing 40% — our budget long-context verdict flips

Full reasoning