# Anthropic: claude-sonnet-4-6

- Model ID: `claude-sonnet-4-6`
- Provider: Anthropic
- Web version: https://www.moleapi.com/en/models/anthropic/claude-sonnet-4-6
- Content status: verified

## Model introduction

Claude Sonnet 4.6 is Anthropic's balanced model for everyday coding, analysis, and content work, combining near-Opus capability with controlled cost and a 1M context window.

## Model capabilities

- OpenAI compatible
- Anthropic compatible
- Prompt cache
- Reasoning

### Verified specifications

- Official positioning: Balanced speed and intelligence for everyday work
- Context window: 1,000,000 tokens (beta)
- Maximum output: 128,000 tokens
- Input / output: Text, image, PDF / Text

## Model pricing and access

Pricing is supplied dynamically by the MoleAPI console API.

### Standard (default, x1)

- Input: $3 / 1M tokens
- Output: $15 / 1M tokens
- Cache read: $0.3 / 1M tokens
- Cache write: $3.75 / 1M tokens

### Discount (discount, x0.8)

- Input: $2.4 / 1M tokens
- Output: $12 / 1M tokens
- Cache read: $0.24 / 1M tokens
- Cache write: $3 / 1M tokens

### Relay (relay, x0.3)

- Input: $0.9 / 1M tokens
- Output: $4.5 / 1M tokens
- Cache read: $0.09 / 1M tokens
- Cache write: $1.125 / 1M tokens

### Access protocols

| Protocol | Method | Endpoint |
| --- | --- | --- |
| anthropic | POST | /v1/messages |
| openai | POST | /v1/chat/completions |

- Live pricing source: https://home.moleapi.com/api/pricing

## About claude-sonnet-4-6

Claude Sonnet 4.6 is Anthropic's balanced model for everyday coding, analysis, and content work, combining near-Opus capability with controlled cost and a 1M context window.

### Best for

Large repositories, enterprise documents, agentic search, frontend design, and cost-sensitive multi-step knowledge work.

### Core strengths

- A 1M context window and 128K output cover large repositories and evidence packs.
- Balances coding, computer use, document understanding, and tool use.
- Supports extended thinking plus image and PDF input.

### Limitations

- Assistant-message prefilling is unsupported when migrating from 4.5.
- The default higher effort can add latency and should be set deliberately.

### Selection and production evaluation

Start a claude-sonnet-4-6 evaluation by mapping its official positioning to real work: Large repositories, enterprise documents, agentic search, frontend design, and cost-sensitive multi-step knowledge work. The first pass should exercise both its main strength, "A 1M context window and 128K output cover large repositories and evidence packs.", and its known limitation, "Assistant-message prefilling is unsupported when migrating from 4.5.", instead of relying on a single subjective general-chat comparison.

For access, MoleAPI currently lists anthropic, openai protocols and the Standard, Discount, Relay billing groups for this Anthropic model; the default price summary is Input $3 / 1M tokens · Output $15 / 1M tokens. Pricing, protocols, and groups come from the live catalog, so production planning should still price representative requests using real context length, output size, and cache-hit assumptions.

No independent ranking is shown unless it matches this exact model ID and reasoning profile, so nearby variants are not used as a proxy. Before launch, pin the model ID, prompt, and sample set, then compare task accuracy, structured-output validity, tool-call success, and timeout rates under the same conditions.

The model material on this page was last checked on 2026-07-24. When upstream model cards, context limits, or tool support change, update the cited bilingual facts before changing the recommendation; live MoleAPI price changes remain separate and update from the catalog automatically.

### Sources

- [B.AI Claude Sonnet 4.6 model guide](https://docs.b.ai/llmservice/models/claude-sonnet-4-6/) — B.AI
- [Anthropic Claude model overview](https://platform.claude.com/docs/en/about-claude/models/overview) — Anthropic
- Last verified: 2026-07-24

## Code examples

### cURL

```bash
curl https://api.moleapi.com/v1/chat/completions \
  -H "Authorization: Bearer $MOLEAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"claude-sonnet-4-6","messages":[{"role":"user","content":"Hello"}]}'
```

## More related models

- [claude-fable-5](https://www.moleapi.com/en/models/anthropic/claude-fable-5) — Anthropic
- [claude-opus-5](https://www.moleapi.com/en/models/anthropic/claude-opus-5) — Anthropic
- [claude-sonnet-5](https://www.moleapi.com/en/models/anthropic/claude-sonnet-5) — Anthropic
- [gpt-5.6-luna](https://www.moleapi.com/en/models/openai/gpt-5.6-luna) — OpenAI
- [gpt-5.6-sol](https://www.moleapi.com/en/models/openai/gpt-5.6-sol) — OpenAI
- [gpt-5.6-terra](https://www.moleapi.com/en/models/openai/gpt-5.6-terra) — OpenAI

## Frequently asked questions

### How is claude-sonnet-4-6 priced?

Prices are read from the MoleAPI console API and update with model prices, context tiers, and account groups.

### How can I access claude-sonnet-4-6?

The catalog currently lists anthropic, openai.

### How do I switch an existing project to claude-sonnet-4-6?

Keep the MoleAPI API address and key, replace the model parameter, and check protocol-specific parameters.

### Where do the claude-sonnet-4-6 details come from?

Capabilities and limitations are checked against B.AI and the other cited pages; pricing and protocols come from the MoleAPI console.
