Back to all models
Get all the details on Claude 3 Haiku, an AI model from Anthropic. This page covers its token limits, pricing structure, key capabilities such as long_context, multilingual, multimodal_input, available API code samples, and performance strengths.
Key Metrics
Input Limit
200K tokens
Output Limit
4.1K tokens
Input Cost
$0.25/1M
Output Cost
$1.25/1M
Sample API Code
import anthropic
client = anthropic.Anthropic()
message = client.messages.create(
model='claude-3-haiku-20240307',
max_tokens=1024,
messages=[
{'role': 'user', 'content': 'Hello, Claude'}
]
)
print(message.content)
Required Libraries
anthropic
@anthropic-ai/sdk
Benchmarks
Benchmark | Score | Source | Notes |
---|---|---|---|
1179 | OpenLLM Leaderboard | Rank 98 | |
1000 | OpenLLM Leaderboard | Rank 49 | |
41.6 | Vellum LLM Leaderboard | - | |
40.6 | Vellum LLM Leaderboard | - | |
69.4 | Vellum LLM Leaderboard | - | |
54.31 | Vellum LLM Leaderboard | - | |
28 | Vellum LLM Leaderboard | - | |
44.98 | LiveBench Leaderboard | - | |
26.19 | LiveBench Leaderboard | - | |
53.17 | LiveBench Leaderboard | - | |
34.84 | LiveBench Leaderboard | - | |
54.12 | LiveBench Leaderboard | - | |
39.71 | LiveBench Leaderboard | - | |
61.88 | LiveBench Leaderboard | - |
Notes
Fastest and most compact model for near-instant responsiveness. Quick and accurate targeted performance.
Capabilities
long context
multilingual
multimodal input
vision
Supported Data Types
Input Types
text
image
Output Types
text
Strengths & Weaknesses
Good at
quick response
targeted performance
multilingual
vision tasks
Additional Information
Latest Update
Mar 7, 2024
Knowledge Cutoff
Aug 1, 2023