Logo
Back to all models

Claude Sonnet 4 - In-Depth Overview

Anthropic · Claude

Current
Latest in family

Model ID: claude-sonnet-4-0

Get all the details on Claude Sonnet 4, an AI model from Anthropic. This page covers its token limits, pricing structure, key capabilities such as long_context, multilingual_support, vision, available API code samples, and performance strengths.

Key Metrics

Input Limit

200K tokens

Output Limit

64K tokens

Input Cost

$3.00/1M

Output Cost

$15.00/1M

Sample API Code

import anthropic;client = anthropic.Anthropic(api_key="YOUR_ANTHROPIC_API_KEY",);message = client.messages.create(model="claude-sonnet-4-0",max_tokens=1024,messages=[{"role": "user", "content": "Hello, Claude!"}]);print(message.content)

Required Libraries

anthropic
@anthropic-ai/sdk

Benchmarks

BenchmarkScoreSourceNotes
69.65
LiveBench LeaderboardLiveBench-2025-04-25 version
54.86
LiveBench LeaderboardLiveBench-2025-04-25 version
77.54
LiveBench LeaderboardLiveBench-2025-04-25 version
76.39
LiveBench LeaderboardLiveBench-2025-04-25 version
64.68
LiveBench LeaderboardLiveBench-2025-04-25 version
67.18
LiveBench LeaderboardLiveBench-2025-04-25 version
77.25
LiveBench LeaderboardLiveBench-2025-04-25 version

Notes

High-performance model with exceptional reasoning capabilities. Offers a 200k context window. Supports text and image input, and text output. Aliases are available for convenience but specific versions are recommended for production. Excels in reasoning, coding, multilingual tasks, long-context handling, honesty, and image processing. Supports prompt caching, extended thinking, streaming messages, and batch processing.

Supported Data Types

Input Types

text
image

Output Types

text

Strengths & Weaknesses

Exceptional at

reasoning
coding
multilingual tasks
long context handling
honesty
image processing

Good at

balanced performance
human-like interactions

Additional Information

Latest Update

May 14, 2025

Knowledge Cutoff

Mar 1, 2025