API · Models
TextFeatured
Claude Opus 4.8
Opus 4.8 is Anthropic's best generally available model for coding, agentic tasks, and enterprise workflows. It builds on previous Opus models with stronger performance on complex, multi-step coding tasks, long-horizon agents, document drafting, data analysis, and presentations.
ToolsReasoningVisionFilesexplicit cachingweb search
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-opus-4.8'),
prompt: 'Why is the sky blue?',
});
for await (const chunk of result.textStream) {
process.stdout.write(chunk);
}Specs & pricing
- Input $/M
- 5
- Output $/M
- 25
- Context window
- 1M
- Max output
- 128K
- Supported parameters
- tool-usereasoningvisionfile-inputweb-search
Related models
| Model | Type | Context | Input $/M |
|---|---|---|---|
| Claude Opus 4.7 | Text | 1M | 5 |
| Claude Opus 4.6 | Text | 1M | 5 |
| Claude Sonnet 4.6 | Text | 1M | 3 |
| Claude Sonnet 4.5 | Text | 1M | 3 |
| Claude 3 Haiku | Text | 200K | 0.25 |