Back to all models

claude-3-5-sonnet-20241022

Anthropic · Claude 3.5

GA
Flagship
Latest in family

Key Metrics

Input Limit

200K tokens

Output Limit

8.2K tokens

Input Cost

$3.00/1M

Output Cost

$15.00/1M

Sample API Code

from anthropic import Anthropic

client = Anthropic(api_key="YOUR_API_KEY")

message = client.messages.create(
    model="claude-3-5-sonnet-20241022",
    max_tokens=1024,
    messages=[
        {"role": "user", "content": "Explain the difference between transformers and RNNs in deep learning."}
    ]
)

print(message.content)

Required Libraries

anthropic
@anthropic-ai/sdk

Notes

High-performance model with balanced capabilities. Strong in reasoning, coding, and general tasks.

Capabilities

Multimodal input
Long context
Advanced reasoning
Code generation
Document understanding

Supported Data Types

Input Types

text
image

Output Types

text

Strengths & Weaknesses

Exceptional at

Complex reasoning
Multimodal

Good at

Long context
Instruction following

Additional Information

Latest Update

Oct 22, 2024

Knowledge Cutoff

2024-04

ELO Score

TODO