Claude Haiku API
Add Claude Haiku, Anthropic's fastest model, to your app. Near-frontier intelligence at a fraction of the cost — through Puter.js, with no API keys and no backend.
// npm install @heyputer/puter.js
import { puter } from '@heyputer/puter.js';
puter.ai.chat("Explain quantum computing in simple terms", {
model: "anthropic/claude-haiku-4-5"
}).then(response => {
console.log(response.message.content);
});
<html>
<body>
<script src="https://js.puter.com/v2/"></script>
<script>
puter.ai.chat("Explain quantum computing in simple terms", {
model: "anthropic/claude-haiku-4-5"
}).then(response => {
document.body.innerHTML = response.message.content;
});
</script>
</body>
</html>
The Haiku API for Fast, Affordable Intelligence
Built for Speed
Haiku is the fastest Claude model, with low time-to-first-token for real-time chat, classification, and sub-agents.
Lowest Cost
The most affordable Claude tier, ideal for high-volume workloads where every token counts.
Surprisingly Strong Coding
Punches well above its size on coding and agentic benchmarks, rivaling larger models on many tasks.
Long Context
A large context window lets Haiku handle long documents, transcripts, and multi-turn conversations.
Tool Use & Agents
Reliable tool calling and extended thinking make Haiku a great engine for fast, autonomous agents.
Vision & PDF Input
Send images and PDFs alongside text for fast, cheap document analysis and extraction.
Claude Haiku Models Compared
Every Claude Haiku model available through Puter.js, with context, output limits, and per-million-token pricing. Click a model for full specs and examples.
| Model | Context | Max Output | Input / 1M | Output / 1M |
|---|---|---|---|---|
Claude Haiku 4.5
anthropic/claude-haiku-4-5 |
200K | 64K | $1 | $5 |
Claude 3 Haiku (legacy)
anthropic/claude-3-haiku |
200K | 4K | $0.25 | $1.25 |
Which Claude Haiku Model Should You Use?
Pick the Claude Haiku model that fits your workload — capability, latency, or cost.
Claude Haiku 4.5
Claude Haiku 4.5 is Anthropic's fastest model line, delivering near-frontier intelligence at a fraction of the cost and latency, with a 200K-token context window. Use it as your default for high-volume, latency-sensitive work.
View Claude Haiku 4.5 →Use Claude Haiku in Seconds
Add Claude Haiku to your app with just a few lines of code.
No API keys, no backend, no configuration required.
// npm install @heyputer/puter.js
import { puter } from '@heyputer/puter.js';
puter.ai.chat("Explain quantum computing in simple terms", {
model: "anthropic/claude-haiku-4-5"
}).then(response => {
console.log(response.message.content);
});
<html>
<body>
<script src="https://js.puter.com/v2/"></script>
<script>
puter.ai.chat("Explain quantum computing in simple terms", {
model: "anthropic/claude-haiku-4-5"
}).then(response => {
document.body.innerHTML = response.message.content;
});
</script>
</body>
</html>
How Claude Haiku Performs
Claude Haiku 4.5 on standard evaluations, scored by Artificial Analysis.
Frequently Asked Questions
The Claude Haiku API gives you access to Anthropic's fastest model line, delivering near-frontier intelligence at a fraction of the cost and latency — including Claude Haiku 4.5 — through Puter.js. You can call any Claude Haiku model from your app with no API keys and no backend.
Yes, it is free for you as the developer when you use it through Puter.js. With the User-Pays model, each of your users covers their own usage through their Puter account, so you can ship Claude Haiku-powered apps at no cost to you.
Start with Claude Haiku 4.5 as your default.
Claude Haiku 4.5 is priced at $1 per million input tokens and $5 per million output tokens at the API level. Through Puter.js it is free for developers under the User-Pays model.
Claude Haiku 4.5 supports a context window of 200K tokens and can generate up to 64K tokens in a single response.
No. Puter.js handles authentication and infrastructure for you, so you can use the Claude Haiku API without any API key, an Anthropic account, a server, or any configuration.
Yes — the Claude Haiku API through Puter.js works with any JavaScript framework, Node.js, or plain HTML. Just include the library and start building.
Related Resources
Learn how to use Claude Haiku and other models with Puter.js.