← All models

Anthropic

claude-3-haiku

anthropic/claude-3-haiku

Price per million tokens

Input
$0.317
Output
$1.583
Cache write
$0.380
Cache read
$0.038

What you pay. It is what the tokens cost us to buy plus 20%, and your usage page shows what we paid beside what you paid on every request you send.

Limits

Context window
200,000 tokens
Max output
4,096 tokens
Images
supported

What it costs to run

WorkloadInputOutputCostPer 1,000 calls
Short chat turn1,000500$0.0011$1.11
Long document summary50,0002,000$0.0190$18.99
Agent step with tools20,0001,500$0.0087$8.70
1M in, 1M out1,000,0001,000,000$1.8990$1899.00

Calling it

const res = await client.chat.completions.create({
  model: "anthropic/claude-3-haiku",
  messages: [{ role: "user", content: "Hello" }],
});