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 multimodal_input, long_context, vision, 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, Claude"}]);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. Quick and accurate targeted performance. Supports text and image input, and text output. Has a 200K context window. Multilingual and vision capabilities. Pricing includes base input/output tokens and prompt caching. Batch processing and tool use incur additional charges.
Supported Data Types
Input Types
text
image
Output Types
text
Strengths & Weaknesses
Exceptional at
quick and accurate targeted performance
fast response applications
Good at
multilingual tasks
vision tasks
long context handling
Additional Information
Latest Update
Mar 7, 2024
Knowledge Cutoff
Aug 1, 2023