Anthropic logo

Anthropic: Claude Sonnet 4

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. Achieving state-of-the-art performance on SWE-bench (72.7%),...

Modalities

ImageTextFiles / PDFText

In / out price

$3 / $15 per 1M

Context

200K

Released

May 22, 2025

Why use Claude Sonnet 4

  • Understands images
  • Reads PDFs and other files
  • Step-by-step reasoning mode
  • Tool and function calling (agent-ready)

Pricing

Input$3 / 1M tokens
Output$15 / 1M tokens
Cached input (read)$0.3 / 1M tokens
Cache write$3.75 / 1M tokens

List prices via OpenRouter, checked daily. Real cost depends on the provider and on reasoning tokens.

How it ranks

Coding index37.6

Source: Artificial Analysis (artificialanalysis.ai) via OpenRouter (openrouter.ai/rankings).

Cost calculator

Pick a task, set how often you run it, and compare what it costs on each model.

ModelPer runPer monthPer 1,000 runs
Anthropic: Claude Sonnet 4$0.032$32.40$32.40

Estimates from list prices via OpenRouter; real bills vary by provider and reasoning tokens.

Will it fit? Context window simulator

Each square is about one page (500 words). Colored squares are your content; grey squares are free space in the model's context window.

Your content

  • Novel (90,000 words)

Total: about 120,000 tokens (≈ 90,226 words). Token counts are estimates.

Models

Anthropic: Claude Sonnet 4

200,000 tokens ≈ 301 pages

Fits: uses 60% of the window.

Write with the best model for the job

WordGPT picks and switches models for you: drafting, editing and files in one place. Free plan, no credit card.

Try it free

More from Anthropic