Anthropic
Anthropic

Claude 3 Haiku

anthropic/claude-3-haiku

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 with Python API

Using Claude 3 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-haiku",
messages: [
  {
    role: 'user',
    content:
      'introduce your self',
    },
  ]
)
print(response)