AI Gateway
Claude Haiku 4.5 matches Sonnet 4's performance on coding, computer use, and agent tasks at substantially lower cost and faster speeds. It delivers near-frontier performance and Claude’s unique character at a price point that works for scaled sub-agent deployments, free tier products, and intelligence-sensitive applications with budget constraints.
import { streamText } from 'ai'
const result = streamText({ model: 'anthropic/claude-haiku-4.5', prompt: 'Why is the sky blue?'})
Try out Claude Haiku 4.5 by Anthropic. Usage is billed to your team at API rates. Free users get $5 of credits every 30 days, and you are considered a free user if you haven't made a payment.
Chat with
Powered by AI Gateway
Anthropic
Available Model Variants
Claude Haiku 4.5 supports a 1M-token context (beta); opt in by sending the anthropic-beta: context-1m-2025-08-07
header. See the announcement and docs: news, context windows.
Pricing: only if total input tokens (prompt + cache reads/writes) exceed 200K, input is charged 2× and output 1.5×; otherwise standard rates apply. Details: long context pricing.
Context 200K
Input Tokens $1.00/M
Output Tokens $5.00/M