Claude Opus 4.8 API

Anthropic's May 2026 Opus, a legacy model with image input

anthropic/claude-opus-4.8
AnthropicConversation

About this model

Claude Opus 4.8 was released by Anthropic on May 28, 2026. It follows Opus 4.7 and comes before Opus 5 in the Opus line. Anthropic’s documentation now marks it as a legacy model and points to Claude Opus 5.5 for new work.

Anthropic lists a 1M-token context window, 128K output tokens, adaptive thinking, and text and image input, with a reliable knowledge cutoff of January 2026. In this catalog the context window is set to 200,000 tokens, so plan around the catalog limit.

Choose it when you need to stay on a version you have already tested; for new projects the newer Opus models are Anthropic’s recommendation. Anthropic’s Fable 5 safeguards route some flagged requests to Opus 4.8 as the fallback model.

Use cases

  • Coding and agent work
  • Long documents
  • Reproducing earlier tested behaviour

Input and output

Input
Text and images
Output
Text, tool calls

Developer

Developer
Anthropic
Type
Conversation
Context
200,000 tokens
Capabilities
Image input

Claude Opus 4.8 request example

Use https://gatelum.com/v1 as the base URL and pass anthropic/claude-opus-4.8 in the model field. You create the key in your account after signing up.

curl --silent --show-error --fail-with-body \
  --header 'Authorization: Bearer glt_YOUR_KEY' \
  'https://gatelum.com/v1/chat/completions' \
  --header "Content-Type: application/json" \
  --data-binary @- <<'JSON'
{
  "model": "anthropic/claude-opus-4.8",
  "messages": [
    {
      "role": "user",
      "content": "Hi! Tell me about yourself in two sentences."
    }
  ]
}
JSON
Claude Code and Anthropic-protocol clients

For clients using the Anthropic protocol, point the address at ANTHROPIC_BASE_URL=https://gatelum.com with no /v1. The model ID does not change.

macOS / Linux
export ANTHROPIC_BASE_URL=https://gatelum.com
export ANTHROPIC_AUTH_TOKEN=glt_YOUR_KEY
export ANTHROPIC_MODEL=anthropic/claude-opus-4.8
claude

Where to use Claude Opus 4.8

Guides with step-by-step instructions for the tools that support this model: