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
Benchmarks
Benchmark | Score | Source | Notes |
---|---|---|---|
1280 | LMSYS | Score for claude-3-5-sonnet-20241022 | |
1265 | LMSYS | Score for claude-3-5-sonnet-20240620 | |
1238 | LMSYS | Score for Claude 3.5 Sonnet (20241022) | |
1189 | LMSYS | Score for claude-3-5-sonnet-20240620 | |
1183 | LMSYS | Score 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
Output Types
Strengths & Weaknesses
Exceptional at
Good at
Additional Information
Latest Update
Oct 22, 2024
Knowledge Cutoff
Apr 1, 2024