Logo
Back to all models

Claude Sonnet 3.5 - In-Depth Overview

Anthropic · Claude 3.5

outdated

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

Get all the details on Claude Sonnet 3.5, an AI model from Anthropic. This page covers its token limits, pricing structure, key capabilities such as function_calling, pdf_support, advanced_reasoning, 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-20240620",max_tokens=1024,messages=[{"role": "user", "content": "Hello, Claude"}]);print(message.content)

Required Libraries

anthropic
@anthropic-ai/sdk

Benchmarks

BenchmarkScoreSourceNotes
1265
lmarena.aiRank 49
1189
lmarena.aiRank 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-
65%
Vellum-
49%
Vellum-
78%
Vellum-
56.46%
Vellum-
51.6%
Vellum-

Notes

Our previous intelligent model. Models with the same snapshot date (e.g., 20240620) are identical across all platforms and do not change. The snapshot date in the model name ensures consistency and allows developers to rely on stable performance across different environments.