Back to all models
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 streaming, advanced_reasoning, batch_processing, available API code samples, and performance strengths.
Key Metrics
Input Limit
200K tokens
Output Limit
8.2K tokens
Input Cost
$3.00/1M
Output Cost
$15.00/1M
Sample API Code
import anthropic
client = anthropic.Anthropic(
api_key="my_api_key",
)
message = client.messages.create(
model="claude-3-5-sonnet-20241022",
max_tokens=1024,
messages=[
{"role": "user", "content": "Hello, world!"}
]
)
print(message.content)
Required Libraries
anthropic
@anthropic-ai/sdk
Benchmarks
Benchmark | Score | Source | Notes |
---|---|---|---|
1280 | lmarena.ai | Rank 38 | |
1238 | lmarena.ai | Rank 6 | |
1183 | lmarena.ai | Rank 17 | |
57.94 | livebench.ai | - | |
43.22 | livebench.ai | - | |
73.90 | livebench.ai | - | |
50.54 | livebench.ai | - | |
56.19 | livebench.ai | - | |
54.48 | livebench.ai | - | |
69.30 | livebench.ai | - | |
16% | vellum.ai | - | |
65% | vellum.ai | - | |
49% | vellum.ai | - | |
78% | vellum.ai | - | |
56.46% | vellum.ai | - | |
51.6% | vellum.ai | - |
Notes
High-performance model with exceptional reasoning capabilities. Alias `claude-3-5-sonnet-latest` points to `claude-3-5-sonnet-20241022`.
Supported Data Types
Input Types
text
image
Output Types
text
Strengths & Weaknesses
Good at
high level of intelligence and capability
engaging responses
Additional Information
Latest Update
Oct 22, 2024
Knowledge Cutoff
Apr 1, 2024