API · Models
TextFeatured
Sonnet 4.6
Sonnet 4.6 is Anthropic's most capable Sonnet-class model yet, with frontier performance across coding, agents, and professional work.
Context 1M·Max out 128K
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-sonnet-4.6'),
prompt: 'Why is the sky blue?',
});
for await (const chunk of result.textStream) {
process.stdout.write(chunk);
}Specs & pricing
- Input $/M
- $3
- Output $/M
- $15
- Context window
- 1M
- Max output
- 128K
- Supported parameters
- tool-usereasoningvisionimplicit-caching
Related models
| Model | Type | Context | Input $/M |
|---|---|---|---|
| Sonnet 4.5 | Text | 1M | $3 |
| Claude Opus 4.6 | Text | 1M | $5 |
| Opus 4.7 | Text | 1M | $5 |
| Blackbox Pro | Text | 400K | $1.75 |
| GPT-5.3 Codex | Text | 400K | $1.75 |