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
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 |
1.
liteLLM
Open-source library to simplify LLM calls
261Mtokens
2.
Roo Code
A whole dev team of AI agents in your editor
226Mtokens
3.
Cline
Autonomous coding agent right in your IDE
186Mtokens
4.
Aider
AI pair programming in your terminal
108Mtokens
5.
PumpFun Token Generator
new
57.3Mtokens
6.
chathub.gg
new
56.3Mtokens
7.
Cline Chinese
new
47.7Mtokens
8.
Context Arena
Benchmark for complex conversational history
41.6Mtokens
9.
AI Writing Companion
new
30.9Mtokens
10.
New API
new
26.8Mtokens
11.
OpenRouter: Chatroom
Chat with multiple LLMs at once
21.2Mtokens
12.
Allcraft
new
19.7Mtokens
13.
BotHub
Multi-model ChatGPT
19.7Mtokens
14.
Portkey AI
Control panel for AI apps
17.2Mtokens
15.
Open WebUI
Extensible, self-hosted AI interface
12.7Mtokens
16.
novelcrafter
Your personal novel writing toolbox. Plan, write and tinker with your story.
11.5Mtokens
17.
SillyTavern
LLM frontend for power users
10.6Mtokens
18.
Trojmiasto.pl
new
8.85Mtokens
19.
Chub AI
GenAI for everyone
7.13Mtokens
20.
yourware
Vibe coder's Instagram
6.65Mtokens
Not enough data to display yet.
Anthropic: Claude 3.5 Haiku (2024-10-22)
Created November 4, 2024200,000 context
Anthropic: Claude 3 Haiku
Created March 13, 2024200,000 context
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.