Anthropic: Claude Sonnet 4

File input Text input Image input Text output
Author's Description

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%),...

Key Specifications
Cost
$$$$$
Context
1M
Released
May 22, 2025
Speed
Ability
Reliability
Supported Parameters

This model supports the following parameters:

Tools Top P Temperature Stop Reasoning Include Reasoning Tool Choice Max Tokens
Features

This model supports the following features:

Tools Reasoning
Performance Summary

Anthropic's Claude Sonnet 4 demonstrates a balanced performance profile, excelling in several key areas while maintaining competitive response times. It performs among models with competitive response times, ranking in the 45th percentile for speed. However, its pricing tends to be at premium levels, placing it in the 12th percentile. A standout feature is its exceptional reliability, achieving a 100% success rate across all benchmarks, indicating minimal technical failures. Sonnet 4 exhibits remarkable accuracy in specialized tasks, achieving perfect scores in both Hallucinations (100%) and Ethics (100%), indicating strong adherence to factual integrity and ethical principles. It also shows high proficiency in General Knowledge (99.8%), Coding (93.0%), and Mathematics (93.0%), with its SWE-bench performance of 72.7% further solidifying its coding prowess. While its Instruction Following (66.0%) and Reasoning (88.0%) scores are solid, they represent areas with potential for further enhancement compared to its top-tier accuracy in other domains. Its efficiency is notable in Hallucinations, where it is the most accurate model at its price point and among models of similar speed.

Model Pricing

Current Pricing

Feature Price (per 1M tokens)
Prompt $3
Completion $15
Input Cache Read $0.3
Input Cache Write $3.75
Web Search $10000

Price History

Available Endpoints
Provider Endpoint Name Context Length Pricing (Input) Pricing (Output)
Google
Google | anthropic/claude-4-sonnet-20250522 1M $3 / 1M tokens $15 / 1M tokens
Google
Google | anthropic/claude-4-sonnet-20250522 1M $3 / 1M tokens $15 / 1M tokens
Amazon Bedrock
Amazon Bedrock | anthropic/claude-4-sonnet-20250522 200K $3 / 1M tokens $15 / 1M tokens
Anthropic
Anthropic | anthropic/claude-4-sonnet-20250522 1M $3 / 1M tokens $15 / 1M tokens
Google
Google | anthropic/claude-4-sonnet-20250522 1M $3 / 1M tokens $15 / 1M tokens
Benchmark Results
Benchmark Category Reasoning Strategy Free Executions Accuracy Cost Duration
Other Models by anthropic