anthropic/claude-opus-4.8

Anthropic: Claude Opus 4.8

Context length
1000K
Input / 1M tokens
$5.00
Output / 1M tokens
$25.00
Released
2026-05-27
Modality
text+image+file->text

About Anthropic: Claude Opus 4.8

Claude Opus 4.8 is Anthropic's most capable generally available model in the Opus family. It supports text, image, and file inputs with text output, with reasoning support and a 1M-token...

Call Anthropic: Claude Opus 4.8

Via OpenRouter: one base URL for every provider.

curl https://openrouter.ai/api/v1/chat/completions \
  -H "Authorization: Bearer $OPENROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "anthropic/claude-opus-4.8",
    "messages": [{"role": "user", "content": "Say hello"}]
  }'

Direct on Anthropic:

curl https://api.anthropic.com/chat/completions \
  -H "Authorization: Bearer $ANTHROPIC_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "claude-opus-4.8",
    "messages": [{"role": "user", "content": "Say hello"}]
  }'

Anthropic keys

OpenRouter keys

OpenRouter keys work for anthropic/claude-opus-4.8 regardless of the upstream provider.