Anthropic
Claude 3 Haiku (20240307)
anthropic/claude-3-haiku-20240307
Claude 3 Haiku is Anthropic's fastest and most compact model for near-instant responsiveness. Quick and accurate targeted performance.
See the launch announcement and benchmark results here
#multimodal
Capability
Vision Support
Tools
Function Calling
Context Window
200,000
Max Output Tokens
4,096
Using Claude 3 Haiku (20240307) with Python API
Using Claude 3 Haiku (20240307) 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-haiku-20240307",
messages: [
{
role: 'user',
content:
'introduce your self',
},
]
)
print(response)