#### Models

# Claude Sonnet 5

* Model ID: claude-sonnet-5

* Context window: 200k

* Max context: 1M

* Provider: Anthropic

* Capabilities: agent, thinking, images

* Speed: medium

* Cost: medium

* Intelligence: frontier

> [!NOTE]
>
> Grok Build recommends using [Claude Sonnet 5.5](/build/agents-window/models/claude-sonnet-5-5). It scores higher on CursorBench at the same input and output price, with cache reads at half the cost.

Claude Sonnet 5 is Anthropic's previous Sonnet model and replaces Sonnet 4.6. It pushes quality close to Opus while keeping Sonnet's lower per-token price. It supports thinking mode and context windows up to 1M tokens, making it a strong default for everyday coding when you want frontier reasoning without Opus pricing.

## Strengths

* Near-Opus quality. Sonnet 5 closes most of the gap to Opus 5 on real coding work while staying far cheaper per token.
* Strong reasoning. Thinking mode handles multi-step tasks, planning, and debugging with depth.
* Reliable tool use. It calls tools purposefully and chains results into follow-up actions.
* Same provider and style as Opus at a lower price point.

## Limitations

* For peak quality on the hardest tasks, [Opus 5.5](/build/agents-window/models/claude-opus-5-5) remains the stronger choice.
* The updated tokenizer maps the same input to more tokens, so token counts run higher than older Sonnet models.

## Tools

Sonnet 5 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

Sonnet 5 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 Sonnet 5 (Anthropic): input $2/M, cache write $2.5/M, cache read $0.2/M, output $10/M

All Sonnet 5 prompts bill at the base per-token rates in the table above, including when context goes above 200k. There is no separate long-context multiplier for Sonnet 5.

A thinking variant is available for deeper reasoning.
