# Anthropic: Claude Sonnet 4

Provider: anthropic  
Category: llm  
Model ID: `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%),...

## Specs

- Context length: 1000000 tokens
- Max output: 64000 tokens
- Modalities: image, text, file
- Released: 2025-05-22

## Pricing

- Input: $3.00 per million tokens
- Output: $15.00 per million tokens

## Providers

- **anthropic** — ctx 1000000, input $3.00/M, output $15.00/M

---
Last verified: 2026-04-23T23:46:29.618Z  
Canonical URL: https://switchy.build/models/claude-sonnet-4