#### Models

# Claude Opus 4.8

* Model ID: claude-opus-4-8

* Context window: 300k

* Max context: 1M

* Provider: Anthropic

* Capabilities: agent, thinking, images

* Speed: medium

* Cost: high

* Intelligence: frontier

> [!NOTE]
>
> Grok Build recommends using [Claude Opus 5.5](/build/agents-window/models/claude-opus-5-5). It is Anthropic's latest Opus release with stronger agentic coding and long-horizon reasoning at a lower price.

Claude Opus 4.8 is Anthropic's previous Opus model and a meaningful jump over Opus 4.7 on [CursorBench](https://cursor.com/blog/cursorbench). It excels at autonomous, multi-step work: it holds intent across long sessions, self-corrects when it hits friction, and writes production-ready code without hand-holding. Grok Build recommends the high thinking variant for the best results.

## Strengths

* Autonomous and self-directed. Opus 4.8 drives multi-step tasks to completion without losing track of the goal, even across large codebases and long conversations.
* Creative reasoning. It approaches problems from unexpected angles, explores alternative solutions, and produces more inventive code than its predecessor.
* Strong at planning. It maps out work before executing, catches edge cases early, and builds coherent architectures across many files.
* Reliable tool use. It calls tools purposefully, chains tool results into follow-up actions, and adapts when tool output surprises it.

## Limitations

* Most expensive model. Consumes usage limits faster than alternatives.
* Can over-elaborate in long sessions where brevity matters more than depth.

## Tools

Opus 4.8 has access to all agent tools in the Agents Window including:

* Search files and folders: Find files by name, read directory structures, and grep for patterns.

* Web: Generate search queries and fetch results from the web.

* Read files: Read file contents, including images for vision-capable models.

* Edit files: Suggest edits and apply them automatically.

* Run shell commands: Execute terminal commands and monitor output.

* Browser: Control a browser to take screenshots, test applications, and verify visual changes.

* Image generation: Generate images from text descriptions or reference images.

* Ask questions: Ask clarifying questions while continuing to work in the background.

* Fetch rules: Retrieve rules based on type and description.

Learn more about [how tools work](/build/agents-window/agent/overview#tools) and [tool calling fundamentals](/build/agents-window/learn/tool-calling).

## Pricing

Opus 4.8 is a third-party model, so it isn't part of the usage included with your [plan](/build/agents-window/models-and-pricing#third-party-models). On The X Subscription it's billed at the rates below from your prepaid credit. On legacy plans it draws from the **Other Models** pool. All prices are per million tokens.

* Claude Opus 4.8 (Anthropic): input $5/M, cache write $6.25/M, cache read $0.5/M, output $25/M

* Claude Opus 4.8 (Fast Mode) (Anthropic): input $10/M, cache write $12.5/M, cache read $1/M, output $50/M

A **Fast mode** tier (`claude-opus-4-8-fast`) is available for roughly 2.5x faster output. On legacy request-based plans, it requires Max Mode. It bills at $10/M input and $50/M output tokens, 3x lower than Opus 4.7 fast mode. Use it selectively for time-sensitive or critical work.

All Opus 4.8 prompts bill at the base per-token rates in the table above, including when context goes above 300k. There is no separate long-context multiplier for Opus 4.8. Context windows up to 1M tokens use the same rates.

Opus 4.8 supports a thinking variant for deeper reasoning. Grok Build recommends using the high thinking variant for the strongest results.
