Back to all models

claude-3-5-haiku-20241022

Anthropic · Claude 3.5

GA

Key Metrics

Input Limit

200K tokens

Output Limit

8.2K tokens

Input Cost

$0.80/1M

Output Cost

$4.00/1M

Sample API Code

from anthropic import Anthropic

client = Anthropic(api_key="YOUR_API_KEY")

message = client.messages.create(
    model="claude-3-5-haiku-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

Fastest model with excellent performance. Optimized for speed and cost efficiency while maintaining good quality outputs.

Capabilities

Multimodal input
Long context
Code generation
Document understanding

Supported Data Types

Input Types

text
image

Output Types

text

Strengths & Weaknesses

Exceptional at

Fast
Affordable

Good at

General purpose
Multimodal

Poor at

Complex reasoning

Additional Information

Latest Update

Oct 22, 2024

Knowledge Cutoff

2024-07

ELO Score

TODO