Anthropic
Claude 3.5 Haiku
anthropic/claude-3-5-haiku
Claude 3.5 Haiku is the next generation of our fastest model. For the same cost and similar speed to Claude 3 Haiku, Claude 3.5 Haiku improves across every skill set and surpasses even Claude 3 Opus, the largest model in our previous generation, on many intelligence benchmarks. Claude 3.5 Haiku is particularly strong on coding tasks. For example, it scores 40.6% on SWE-bench Verified, outperforming many agents using publicly available state-of-the-art models—including the original Claude 3.5 Sonnet and GPT-4o.
Capability
Vision Support
Tools
Function Calling
Context Window
200,000
Max Output Tokens
8,192
Using Claude 3.5 Haiku with Python API
Using Claude 3.5 Haiku with OpenAI compatible API
import openai
client = openai.Client(
api_key= '{your_api_key}',
base_url="https://api.model.box/v1",
)
response = client.chat.completions.create(
model="anthropic/claude-3-5-haiku",
messages: [
{
role: 'user',
content:
'introduce your self',
},
]
)
print(response)