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

ModelTypeContextInput $/M
Claude Opus 4.7Text1M5
Claude Opus 4.6Text1M5
Claude Sonnet 4.6Text1M3
Claude Sonnet 4.5Text1M3
Claude 3 HaikuText200K0.25