Claude 4 Sonnet

Model ID

claude-4-sonnet

Context window

200k

Max context

Provider

Anthropic

Capabilities

AgentThinking

Speed

Medium

Cost

Medium

Intelligence

High

We recommend using Claude 4.6 Sonnet. It's the latest Sonnet with stronger capabilities at the same price.

Tools

Claude 4 Sonnet has access to all agent tools when used with Cursor including:

Semantic search

Search your indexed codebase by meaning, not exact matches.

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. See the Browser documentation.

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 and tool calling fundamentals.

Pricing

Cursor plans include two usage pools. Claude 4 Sonnet draws from the API pool, which charges at the rates below. Individual plans include at least $20 of API usage each month (more on higher tiers). All prices are per million tokens.

Name Input Cache Write Cache Read Output

Claude 4 Sonnet
$3 $3.75 $0.3 $15