Claude

Anthropic: Claude Opus 4.8

Chat
anthropic/claude-opus-4.8
CompareGet Started

Claude Opus 4.8 is Anthropic's most capable generally available model in the Opus family, released on 2026-05-28. It accepts text, image, and file inputs with text output, and suits highly autonomous agents, long-horizon agentic work, and memory-driven tasks where coherence over extended sessions matters. It is particularly strong on multi-step reasoning, complex coding, and end-to-end project orchestration, and also handles knowledge work such as drafting documents, building presentations, and analyzing data. Supports tool use and prompt caching. Context window: 1M tokens, output: 128K. Available via OpenAI and Anthropic protocols.

Context Window
1M
Max Output Tokens
128K
Released
2026-05-28
Capabilities
VisionFunction CallingReasoningPrompt CachingPDF Input
Available Providers
AnthropicAnthropicBedrockBedrock
Supported Protocols
OpenAIopenaiAnthropicanthropic

Providers

AnthropicAnthropic
Input Tokens
$5/M
Output Tokens
$25/M
Cache Read
$0.5/M
Cache Write (5 min)
$6.25/M
Cache Write (1 hour)
$10/M
Web Search
$0.015/R
Protocols
Anthropicanthropic
BedrockBedrock
Input Tokens
$5/M
Output Tokens
$25/M
Cache Read
$0.5/M
Cache Write (5 min)
$6.25/M
Cache Write (1 hour)
$10/M
Web Search
$0.015/R
Protocols
OpenAIopenai/v1/chat/completions/v1/responses
Anthropicanthropic

Code Examples

import anthropic
client = anthropic.Anthropic(
base_url="https://api.ofox.run/anthropic",
api_key="YOUR_OFOX_API_KEY",
)
message = client.messages.create(
model="anthropic/claude-opus-4.8",
max_tokens=1024,
messages=[
{"role": "user", "content": "Hello!"}
],
)
print(message.content[0].text)

Uptime & Status

Benchmarks

LMArenaEvaluated as claude-opus-4-8

Anthropic: Claude Opus 4.8 scores 1475 in the Overall category of the LMArena text leaderboard (style control), ranking #16 of 374 models based on 27,803 human preference votes (updated 2026-07-12).

Benchmark scores for claude-opus-4-8 on LMArena
CategoryArena Score95% CIRankVotes
Overall14701481#16 of 37427,803
Hard Prompts15011514#8 of 37418,352
Coding15251541#8 of 3697,749
Math14621494#19 of 3621,336
Creative Writing14521471#14 of 3724,852
Instruction Following14711486#11 of 3749,428
Chinese15121546#9 of 3441,295

Source: LMArena · CC BY 4.0 · Updated 2026-07-12 · Methodology · Ranks compare models within each category of the LMArena text leaderboard (style control). Scores come from third-party human preference evaluations, not from OFOX.

Frequently Asked Questions

Anthropic: Claude Opus 4.8 on Ofox.ai costs $5/M per million input tokens and $25/M per million output tokens. Pay-as-you-go, no monthly fees.