claude-sonnet-4 by anthropic - AI Model Details, Pricing, and Performance Metrics

anthropic
claude-sonnet-4
anthropic

claude-sonnet-4

completions
byanthropic

Our high-performance model with exceptional reasoning and efficiency

Released
May 22, 2025
Knowledge
Mar 1, 2025
License
Proprietary
Context
200K
Input
$3 / 1M tokens
Output
$15 / 1M tokens
Cached
$0.3 / 1M tokens
Cached Write
$3.75 / 1M tokens
Capabilities: tools
Accepts: text, image
Returns: text

Access claude-sonnet-4 through LangDB AI Gateway

Recommended

Integrate with anthropic's claude-sonnet-4 and 250+ other models through a unified API. Monitor usage, control costs, and enhance security.

Unified API
Cost Optimization
Enterprise Security
Get Started Now

Free tier available • No credit card required

Instant Setup
99.9% Uptime
10,000+Monthly Requests
Request Volume
Daily API requests
31
Performance (TPS)
Tokens per second
519.75 tokens/s

Category Scores

Benchmark Tests

View Other Benchmarks
AIME
40.7
Mathematics
AA Coding Index
41.1
Programming
AAII
44.4
General
AA Math Index
38.0
Mathematics
GPQA
75.4
STEM (Physics, Chemistry, Biology)
HLE
4.0
General Knowledge
LiveCodeBench
44.9
Programming
MATH-500
93.4
Mathematics
MMLU-Pro
83.7
General Knowledge
MMMU
74.4
General Knowledge
SciCode
37.3
Scientific

Code Examples

Integration samples and API usage

Conversations

Explore real conversations using this model

Travel Planning Agent built with OpenAI Agents SDK

7/2/2025
44,433 tokens

Web Search Agent built wtih Google ADK

7/2/2025
63,918 tokens

HTML5 Canvas Freehand Drawing with Clear Button

6/6/2025
5,310 tokens

Responsive 2-Column Photo Gallery with Hover Effect

6/6/2025
5,271 tokens

Real-Time Username & Email Validation Form

6/6/2025
6,735 tokens

Responsive Navbar with Hamburger Menu <600px

6/6/2025
5,616 tokens

Pure HTML/CSS Image Slider with Fade & Arrows

6/6/2025
10,128 tokens

pytest unit tests for is_palindrome with parametrize

6/6/2025
6,201 tokens

A* Pathfinding on Grid (Python)

6/6/2025
7,893 tokens

Two Sum: Python Efficient Solution

6/6/2025
1,875 tokens

Flask To-Do List API with CRUD endpoints

6/6/2025
5,115 tokens

Python Pygame Tetris Game with Classic Features

6/6/2025
13,602 tokens

Closed-form for aₙ and exact value of a₅

6/6/2025
2,859 tokens

Cylinder Surface Area Calculation

6/6/2025
1,224 tokens

Probability both cards are face cards

6/6/2025
2,169 tokens

Integer Solutions to 3x + 5y = 100

6/6/2025
3,438 tokens

Bob wins when n ≡ 1, 3, or 4 (mod 5); count of such n ≤ 2024 is **1215**.

6/6/2025
5,142 tokens

Origin & Meaning of "Ride Shotgun"

6/6/2025
1,143 tokens

Synonyms and Nuances of "Gregarious"

6/6/2025
1,278 tokens

Meaning and Usage of “Ubiquitous”

6/6/2025
1,161 tokens

Counting “issi” occurrences and overlaps in sentence

6/6/2025
1,443 tokens

Counting vowels in "encyclopedia"

6/6/2025
1,566 tokens

Bridge Crossing Puzzle: Minimum Time Plan

6/6/2025
2,592 tokens

3-Weighing Strategy to Find 1 Lighter Fake Coin

6/6/2025
2,781 tokens

Meeting time & place of two trains on same track

6/6/2025
2,547 tokens

Emily and Derek's Ages Algebra Problem

6/6/2025
1,614 tokens

Andrew's Number of Sisters

6/6/2025
1,098 tokens