Claude Haiku

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.

ModelContextMax OutputInput / 1MOutput / 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.

Most capable

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>

View full documentation →

How Claude Haiku Performs

Claude Haiku 4.5 on standard evaluations, scored by Artificial Analysis.

Artificial Analysis
Intelligence Index
31.0
Better than 71% of tracked models
Artificial Analysis
Coding Index
29.6
Better than 69% of tracked models
Artificial Analysis
Math Index
39.0
Better than 40% of tracked models

See full Claude Haiku 4.5 benchmarks →

Frequently Asked Questions

What is the Claude Haiku API?

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.

Is the Claude Haiku API free?

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.

Which Claude Haiku model should I use?

Start with Claude Haiku 4.5 as your default.

How much does Claude Haiku cost?

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.

What is the context window of Claude Haiku?

Claude Haiku 4.5 supports a context window of 200K tokens and can generate up to 64K tokens in a single response.

Do I need an API key?

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.

Does it work with React / Vue / Vanilla JS / Node / etc.?

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.