# Anthropic: claude-sonnet-5

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

## Model introduction

Claude Sonnet 5 is Anthropic's balanced flagship for coding, agents, and enterprise workflows. It targets a strong speed-intelligence mix and enables adaptive thinking by default.

## Model capabilities

- OpenAI compatible
- Anthropic compatible
- Prompt cache
- Reasoning

### Verified specifications

- Official positioning: Best combination of speed and intelligence
- Context window: 1,000,000 tokens
- Maximum output: 128,000 tokens
- Thinking mode: Adaptive thinking by default

### Independent capability evaluation

- Adaptive reasoning, max effort
- Intelligence: 53 (#12/186)
- Output speed: 83.9 tok/s (#69/186)
- Time to first token: 191.88s
- Source: https://artificialanalysis.ai/models/claude-sonnet-5/

A near-frontier score with good decode speed, but max effort adds a very long thinking delay and heavy token use.

## Model pricing and access

Pricing is supplied dynamically by the MoleAPI console API.

### Standard (default, x1)

- Input: $2 / 1M tokens
- Output: $10 / 1M tokens
- Cache read: $0.2 / 1M tokens
- Cache write: $2.5 / 1M tokens

### Discount (discount, x0.8)

- Input: $1.6 / 1M tokens
- Output: $8 / 1M tokens
- Cache read: $0.16 / 1M tokens
- Cache write: $2 / 1M tokens

### Relay (relay, x0.3)

- Input: $0.6 / 1M tokens
- Output: $3 / 1M tokens
- Cache read: $0.06 / 1M tokens
- Cache write: $0.75 / 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-5

Claude Sonnet 5 is the next-generation model in Anthropic's Sonnet family, positioned to balance speed and intelligence and as the direct upgrade to Claude Sonnet 4.6. According to Anthropic, its primary improvements over Sonnet 4.6 focus on coding and agentic tasks. [1]

## Model Positioning and Core Capabilities

Claude Sonnet 5 is designed for coding, tool use, and agentic workloads. Anthropic describes it as the most capable model for agentic tasks in the Sonnet family. The model can be used for task planning and can execute multi-step workflows with tools such as browsers and terminals. [8][9]

Anthropic positions the Sonnet family for real-time agents and high-throughput workloads. Sonnet 5 brings coding, tool use, and everyday work capabilities that previously typically required larger models to the Sonnet tier. [8][9]

## Capabilities and Specifications

Claude Sonnet 5 provides a 1 million token context window and a maximum output of 128,000 tokens, with adaptive thinking enabled by default. [1]

| Specification | Details |
| --- | --- |
| Context window | 1,000,000 tokens; the default and maximum values are the same. [1] |
| Maximum output | 128,000 tokens. [1] |
| Thinking mode | Adaptive thinking is enabled by default and can be disabled with `thinking: {type: "disabled"}`. [1] |
| Output budget | `max_tokens` limits the combined total of thinking tokens and final response tokens. [1] |
| Service tier | Priority Tier is not supported. [1] |

Adaptive thinking uses the `effort` parameter to control reasoning intensity. The previous manual thinking budget configuration, `thinking: {type: "enabled", budget_tokens: N}`, is no longer supported. [1]

## Use Cases

Claude Sonnet 5 focuses on code development and agentic workflows. It can be used for complex code changes, debugging, refactoring, and tasks that require planning and tool coordination. [1][9]

The model is designed for agentic workloads involving browser or terminal tools, and also supports high-frequency everyday knowledge work and automation workflows. [8][9]

The 1 million token context window is suited to tasks that need to retain large amounts of contextual information in a single request. Its maximum output length also supports generating longer code, analyses, or task results. [1]

## Important Limitations

Claude Sonnet 5 does not accept non-default `temperature`, `top_p`, or `top_k` parameters. Setting these parameters returns HTTP 400. [1]

Assistant message prefilling is not supported. Related requests return HTTP 400. [1]

This model uses a new tokenizer. Compared with Sonnet 4.6, the same text produces approximately 30% more tokens, depending on the content. This change affects context capacity estimates, output budgets, and token usage for equivalent amounts of text. [1]

Requests involving prohibited or high-risk cybersecurity topics may be refused. These responses still return HTTP 200, but `stop_reason` is `refusal`. [1]

## Sources

[1] [Anthropic Claude Sonnet 5 更新说明](https://platform.claude.com/docs/en/about-claude/models/whats-new-sonnet-5)
[8] [Claude Sonnet](https://www.anthropic.com/claude/sonnet)
[9] [Introducing Claude Sonnet 5](https://www.anthropic.com/news/claude-sonnet-5)



## 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-5","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-opus-4.6](https://www.moleapi.com/en/models/anthropic/claude-opus-4.6) — 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-5 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-5?

The catalog currently lists anthropic, openai.

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

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

### Where do the claude-sonnet-5 details come from?

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