Models / Claude / Claude Opus 4.8
Claude

Claude Opus 4.8

BYOKClosedReleased 28 May 2026

A large closed-weights model from Anthropic with a 1M-token context window, priced well above the registry median. Its benchmark results sit modestly above the median, mostly in the top third.

Read the full description ↓

Spec sheet

Family
Claude
Released
28 May 20266 months ago
Weights
Closed
Context window
1M tokens
Largest response
128k tokens
Accepts
text, image, file
Supports
tools, reasoning, structured output
Knowledge cutoff
January 2026
Intelligence index
66.5#34
Input price
$5 / 1M
Output price
$25 / 1M
Blended price (3:1)
$10 / 1M
Index points per $
6.7#102
Speed
69 tokens/sec#89
Popularity
#59 of 194by usage
Providers
4

Benchmarks

Score · rank among models tested

The tick on each bar marks the registry median; hover over a bar for the numbers. Sources and how the index is computed: methodology.

Providers and prices

$ per 1M tokens · from genai-prices
ProviderGatewayPydantic AI model stringInputCached inputOutputBlended
Anthropicgateway/anthropic:claude-opus-4-8 $5$0.5$25$10
AWS Bedrockgateway/bedrock:global.anthropic.claude-opus-4-8-v1:0 $5$0.5$25$10
Google Vertexgateway/google-cloud:claude-opus-4-8 $5$0.5$25$10
OpenRouterBYOKopenrouter:anthropic/claude-opus-4.8 $5$0.5$25$10

Every provider charges the same. Blended price assumes three input tokens for each output token.

Example code

# /// script
# dependencies = ["pydantic-ai"]
# ///
import os

from pydantic_ai import Agent

os.environ['PYDANTIC_AI_GATEWAY_API_KEY'] = '...'

agent = Agent('gateway/anthropic:claude-opus-4-8', instructions='Be concise, reply with one sentence.')

result = agent.run_sync('Where does "hello world" come from?')
print(result.output)

Ask Claude Opus 4.8 a question with a Pydantic AI agent and print the answer. Run it with uv run hello.py.

Compare

Claude Opus 4.8vsGLM 5.3 Flash
Intelligence indexOur composite of the benchmarks below, 0-100
Claude Opus 4.866.5
GLM 5.3 Flash66.1
GPQA DiamondGraduate-level science questions, multiple choice
Claude Opus 4.891%
GLM 5.3 Flash90.2%
OTIS Mock AIMECompetition mathematics problems with exact answers
Claude Opus 4.898.3%
GLM 5.3 Flash93.9%
FrontierMathOriginal research-level mathematics problems, tiers 1 to 3
Claude Opus 4.880%
GLM 5.3 Flash55.8%
ARC-AGI-2Abstract visual puzzles that test learning a new rule from a few examples
Claude Opus 4.872.1%
GLM 5.3 Flash65.8%
SimpleQA VerifiedShort factual questions answered from memory, without search
Claude Opus 4.853%
GLM 5.3 Flash–
SciCodeScientific programming problems written by researchers
Claude Opus 4.853.5%
GLM 5.3 Flash51.6%
WebDev ArenaRating from human votes on web apps the models built
Claude Opus 4.81558.8
GLM 5.3 Flash1607.1
APEX-AgentsLong professional tasks (banking, consulting, law) passed on the first attempt
Claude Opus 4.848.9%
GLM 5.3 Flash52.8%
LMArena textRating from blind human votes between pairs of chat responses
Claude Opus 4.81461.5
GLM 5.3 Flash1471.7
Epoch Capabilities IndexEpoch AI's own composite across about 40 benchmarks; shown for comparison, not part of our index
Claude Opus 4.8159.9
GLM 5.3 Flash153.8
Input pricePer 1M tokens, lower is better
Claude Opus 4.8$5
GLM 5.3 Flash$0.15
Output pricePer 1M tokens, lower is better
Claude Opus 4.8$25
GLM 5.3 Flash$0.5
EfficiencyIndex points per blended $
Claude Opus 4.87
GLM 5.3 Flash278
SpeedOutput tokens per second
Claude Opus 4.869 t/s
GLM 5.3 Flash86.5 t/s
Context windowTokens
Claude Opus 4.81M
GLM 5.3 Flash1M
Model stringFor Pydantic AI
Claude Opus 4.8gateway/anthropic:claude-opus-4-8
GLM 5.3 Flashgateway/doubleword:zai-org/GLM-5.3-Flash

About Claude Opus 4.8

Description written by an LLM from the data on this page

A large closed-weights model from Anthropic with a 1M-token context window, priced well above the registry median. Its benchmark results sit modestly above the median, mostly in the top third.

Claude Opus 4.8 is a closed-weights model from Anthropic, released in May 2026 with a knowledge cutoff of January 2026. It accepts text, image and file inputs, supports tool calling, structured output and a reasoning mode, and offers a 1M-token context window with up to 128k tokens of output. It is available through Anthropic, AWS Bedrock, Google Vertex and OpenRouter, and is built into the PydanticAI Gateway.

On the registry's benchmarks it lands in the upper half without reaching the top. Its composite intelligence index is 66.5, 35th of 114, and its strongest results are on FrontierMath at 80% (22nd of 80) and ARC-AGI-2 at 72.1% (26th of 68). Scores on GPQA Diamond, OTIS Mock AIME and SimpleQA Verified are also above the median but sit in the middle of their rankings. Its agentic result on APEX-Agents, 48.9%, is below the median.

The main trade-off is price. At $5 per million input tokens and $25 per million output tokens, the blended rate of $10 is about ten times the registry median, and its intelligence-per-dollar ranking is 102nd of 194.

Strengths

  • Intelligence index 66.5, 35th of 114, above the 59.5 median
  • FrontierMath 80%, 22nd of 80, well above the 64.6% median
  • ARC-AGI-2 72.1%, 26th of 68, against a 61.3% median
  • Context window of 1M tokens with 128k maximum response length

Weaknesses

  • Blended price of $10 per million tokens, far above the $1.01 median
  • APEX-Agents 48.9%, 36th of 60, below the 54.3% median
  • SciCode 53.5%, 39th of 96, slightly above the median but mid-table

Best for

Agents doing hard reasoning, research-level math or long-context work where cost per token is secondary to accuracy.

One key, every model

Pydantic AI Gateway gives you the models marked with a single API key, spending limits and Logfire tracing. Bring your own key for the rest.

Start free  Read the docs