Back to all models
Get all the details on Claude Haiku 3, an AI model from Anthropic. This page covers its token limits, pricing structure, key capabilities such as long_context, vision, multilingual, 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(
api_key="my_api_key",
)
message = client.messages.create(
model="claude-3-haiku-20240307",
max_tokens=1024,
messages=[
{"role": "user", "content": "Hello, world!"}
]
)
print(message.content)
Required Libraries
anthropic
@anthropic-ai/sdk
Benchmarks
Benchmark | Score | Source | Notes |
---|---|---|---|
1176 | lmarena.ai | - | |
1000 | lmarena.ai | - |
Notes
Fast and compact model for near-instant responsiveness.
Supported Data Types
Input Types
text
image
Output Types
text
Strengths & Weaknesses
Good at
quick and accurate targeted performance
fast and compact model for near-instant responsiveness
Additional Information
Latest Update
Mar 7, 2024
Knowledge Cutoff
Aug 1, 2023