Anthropic: Claude 3.5 Haiku

anthropic/claude-3.5-haiku

Created Nov 4, 2024200,000 context
$0.80/M input tokens$4/M output tokens

Claude 3.5 Haiku features offers enhanced capabilities in speed, coding accuracy, and tool use. Engineered to excel in real-time applications, it delivers quick response times that are essential for dynamic tasks such as chat interactions and immediate coding suggestions.

This makes it highly suitable for environments that demand both speed and precision, such as software development, customer service bots, and data management systems.

This model is currently pointing to Claude 3.5 Haiku (2024-10-22).

Providers for Claude 3.5 Haiku

OpenRouter routes requests to the best providers that are able to handle your prompt size and parameters, with fallbacks to maximize uptime.

Context
200K
Max Output
8K
Input
$0.80
Output
$4
Context
200K
Max Output
8K
Input
$0.80
Output
$4
Context
200K
Max Output
8K
Input
$0.80
Output
$4
Context
200K
Max Output
8K
Input
$0.80
Output
$4

Apps using Claude 3.5 Haiku

Top public apps this week using this model

1.
Favicon for https://litellm.ai/
liteLLM
Open-source library to simplify LLM calls
261Mtokens
2.
Favicon for https://roocode.com/
Roo Code
A whole dev team of AI agents in your editor
226Mtokens
3.
Favicon for https://cline.bot/
Cline
Autonomous coding agent right in your IDE
186Mtokens
4.
Favicon for https://aider.chat/
Aider
AI pair programming in your terminal
108Mtokens
5.
Favicon for https://pump.fun/
PumpFun Token Generator
new
57.3Mtokens
6.
Favicon for https://chathub.gg/
chathub.gg
new
56.3Mtokens
7.
Favicon for https://github.com/HybridTalentComputing/cline-chinese
Cline Chinese
new
47.7Mtokens
8.
Favicon for https://contextarena.ai/
Context Arena
Benchmark for complex conversational history
41.6Mtokens
9.
Favicon for https://www.nexusmods.com/
AI Writing Companion
new
30.9Mtokens
10.
Favicon for https://github.com/Calcium-Ion/new-api
New API
new
26.8Mtokens
11.
Favicon for https://openrouter.ai/chat
OpenRouter: Chatroom
Chat with multiple LLMs at once
21.2Mtokens
12.
Favicon for https://allcraft.ai/
Allcraft
new
19.7Mtokens
13.
Favicon for https://bothub.chat/
BotHub
Multi-model ChatGPT
19.7Mtokens
14.
Favicon for https://portkey.ai/
Portkey AI
Control panel for AI apps
17.2Mtokens
15.
Favicon for https://openwebui.com/
Open WebUI
Extensible, self-hosted AI interface
12.7Mtokens
16.
Favicon for https://novelcrafter.com/
novelcrafter
Your personal novel writing toolbox. Plan, write and tinker with your story.
11.5Mtokens
17.
Favicon for https://sillytavern.app/
SillyTavern
LLM frontend for power users
10.6Mtokens
18.
Favicon for https://www.trojmiasto.pl/
Trojmiasto.pl
new
8.85Mtokens
19.
Favicon for https://chub.ai/
Chub AI
GenAI for everyone
7.13Mtokens
20.
Favicon for https://www.yourware.so/
yourware
Vibe coder's Instagram
6.65Mtokens

Recent activity on Claude 3.5 Haiku

Tokens processed per day

Feb 12Feb 18Feb 24Mar 2Mar 8Mar 14Mar 20Mar 26Apr 1Apr 7Apr 13Apr 19Apr 25May 1May 7May 1303.5B7B10.5B14B

Versions by Token Share

Not enough data to display yet.

Currently Viewing
Anthropic: Claude 3.5 Haiku
Created November 4, 2024200,000 context
Anthropic: Claude 3.5 Haiku (2024-10-22)
Created November 4, 2024200,000 context
Anthropic: Claude 3 Haiku
Created March 13, 2024200,000 context

Uptime stats for Claude 3.5 Haiku

Uptime stats for Claude 3.5 Haiku across all providers

When an error occurs in an upstream provider, we can recover by routing to another healthy provider, if your request filters allow it.

Learn more about our load balancing and customization options.

Sample code and API for Claude 3.5 Haiku

OpenRouter normalizes requests and responses across providers for you.

OpenRouter provides an OpenAI-compatible completion API to 300+ models & providers that you can call directly, or using the OpenAI SDK. Additionally, some third-party SDKs are available.

In the examples below, the OpenRouter-specific headers are optional. Setting them allows your app to appear on the OpenRouter leaderboards.

from openai import OpenAI

client = OpenAI(
  base_url="https://openrouter.ai/api/v1",
  api_key="<OPENROUTER_API_KEY>",
)

completion = client.chat.completions.create(
  extra_headers={
    "HTTP-Referer": "<YOUR_SITE_URL>", # Optional. Site URL for rankings on openrouter.ai.
    "X-Title": "<YOUR_SITE_NAME>", # Optional. Site title for rankings on openrouter.ai.
  },
  extra_body={},
  model="anthropic/claude-3.5-haiku",
  messages=[
    {
      "role": "user",
      "content": [
        {
          "type": "text",
          "text": "What is in this image?"
        },
        {
          "type": "image_url",
          "image_url": {
            "url": "https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Gfp-wisconsin-madison-the-nature-boardwalk.jpg/2560px-Gfp-wisconsin-madison-the-nature-boardwalk.jpg"
          }
        }
      ]
    }
  ]
)
print(completion.choices[0].message.content)

Using third-party SDKs

For information about using third-party SDKs and frameworks with OpenRouter, please see our frameworks documentation.

See the Request docs for all possible fields, and Parameters for explanations of specific sampling parameters.

    Claude 3.5 Haiku - API, Providers, Stats | OpenRouter