Back to all models
Get all the details on Claude Sonnet 3, an AI model from Anthropic. This page covers its token limits, pricing structure, key capabilities such as multimodal_input, vision, function_calling, 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
import anthropic;client = anthropic.Anthropic(api_key="my_api_key");message = client.messages.create(model="claude-3-sonnet-20240229",max_tokens=1024,messages=[{"role": "user", "content": "Hello, Claude"}]);print(message.content)
Required Libraries
anthropic
@anthropic-ai/sdk
Benchmarks
Benchmark | Score | Source | Notes |
---|---|---|---|
1198 | LM Arena Leaderboard | - | |
1048 | LM Arena Leaderboard | - |
Notes
High level of intelligence and capability. Models with the same snapshot date 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.
Supported Data Types
Input Types
text
image
Output Types
text
Strengths & Weaknesses
Exceptional at
reasoning
human-like interactions
Additional Information
Latest Update
Feb 29, 2024
Knowledge Cutoff
Aug 1, 2023