Logo
Back to all models

Claude 3.5 Sonnet - In-Depth Overview

Anthropic · Claude

Current

Model ID: anthropic-claude-3-5-sonnet

Get all the details on Claude 3.5 Sonnet, an AI model from Anthropic. This page covers its token limits, pricing structure, key capabilities such as text_generation, Code Generation, extended_thinking, available API code samples, and performance strengths.

Key Metrics

Input Limit

200K tokens

Output Limit

4.1K tokens

Input Cost

$3.00/1M

Output Cost

$15.00/1M

Sample API Code

from anthropic import Anthropic

client = Anthropic()
message = client.messages.create(
    model="claude-3-5-sonnet-20240620",
    max_tokens=1024,
    messages=[
        {"role": "user", "content": "Hello, Claude!"}
    ]
)
print(message.content)

Required Libraries

anthropic
@anthropic-ai/sdk

Benchmarks

BenchmarkScoreSourceNotes
1280
LMSYSScore for claude-3-5-sonnet-20241022
1265
LMSYSScore for claude-3-5-sonnet-20240620
1238
LMSYSScore for Claude 3.5 Sonnet (20241022)
1189
LMSYSScore for claude-3-5-sonnet-20240620
1183
LMSYSScore for claude-3-5-sonnet-20241022
57.94
LiveBench-
43.22
LiveBench-
73.90
LiveBench-
50.54
LiveBench-
56.19
LiveBench-
54.48
LiveBench-
69.30
LiveBench-
16%
Vellum-
65%
Vellum-
49%
Vellum-
78%
Vellum-
56.46%
Vellum-
51.6%
Vellum-

Notes

Claude 3.5 Sonnet is a highly performant and intelligent AI model designed for enterprise use, balancing cost, performance, and intelligence. It excels in reasoning, math, coding, and multilingual fluency. It features strong security, data handling, and is resistant to jailbreaks, making it suitable for high-trust industries. It supports a 200K token context window and offers capabilities like text and code generation, vision, tool use, prompt caching, and batch processing.

Supported Data Types

Input Types

text
image
pdf

Output Types

text

Strengths & Weaknesses

Exceptional at

reasoning
math
coding
multilingual fluency
trustworthiness
reliability
jailbreak resistance
low hallucination rates
long context processing

Good at

text generation
code generation
vision tasks
tool use
enterprise applications
cost efficiency

Additional Information

Latest Update

Oct 22, 2024

Knowledge Cutoff

Apr 1, 2024