Key Metrics
Input Limit
200K tokens
Output Limit
4.1K tokens
Input Cost
$0.25/1M
Output Cost
$1.25/1M
Sample API Code
from anthropic import Anthropic
client = Anthropic(api_key="YOUR_API_KEY")
message = client.messages.create(
model="claude-3-haiku-20240307",
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 and most compact model for near-instant responsiveness. Optimized for speed and cost efficiency.
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
Basic tasks
Multimodal
Poor at
Complex reasoning
Additional Information
Latest Update
Mar 7, 2024
Knowledge Cutoff
2023-08
ELO Score
TODO