API · Models
Text

Claude 3 Haiku

Claude 3 Haiku is Anthropic's fastest, most compact model for near-instant responsiveness. It answers simple queries and requests with speed. Customers will be able to build seamless AI experiences that mimic human interactions. Claude 3 Haiku can process images and return text outputs, and features a 200K context window.

ToolsVisionexplicit caching
Context 200K·Max out 4.1K

Quickstart

import { streamText } from 'ai';
import { createOpenAICompatible } from '@ai-sdk/openai-compatible';

const blackbox = createOpenAICompatible({
  name: 'blackbox',
  apiKey: process.env.BLACKBOX_API_KEY!,
  baseURL: 'https://api.blackbox.ai/v1',
});

const result = streamText({
  model: blackbox('blackboxai/anthropic/claude-3-haiku'),
  prompt: 'Why is the sky blue?',
});

for await (const chunk of result.textStream) {
  process.stdout.write(chunk);
}

Specs & pricing

Input $/M
0.25
Output $/M
1.25
Context window
200K
Max output
4.1K
Supported parameters

Related models

ModelTypeContextInput $/M
Claude Opus 4.8Text1M5
Claude Opus 4.7Text1M5
Claude Opus 4.6Text1M5
Claude Sonnet 4.6Text1M3
Claude Sonnet 4.5Text1M3