# Anthropic: Claude Sonnet 5

Anthropic's Claude Sonnet 5 succeeds Sonnet 4.6, built for agents that plan and use browsers, terminals and code. It also covers agentic search and knowledge work, takes text and images, and uses adaptive thinking.

- **Model id:** `opencheap/claude-sonnet-5`
- **Price per 1M tokens:** $1.10 input / $5.50 output
- **Cached input:** $0.11 per 1M tokens
- **Context:** 1M tokens, 128K max output

## Providers

10 providers. Prices are per 1M tokens. As of 2026-12-04 11:52 UTC.

| Provider | Input price | Cache price | Output price | Latency | Speed | Uptime | Context | Max output |
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
| Surplus · quantization unknown | $1.10 | $0.11 | $5.50 | 1.98 s | 97 tok/s | 100 % (success rate) | 1M | 64K |
| AiHubMix · quantization unknown | $2.00 | $0.20 | $10.00 | 1.31 s | — | 100 % (success rate) | 1M | 128K |
| NanoGPT · quantization unknown | $2.00 | $0.20 | $10.00 | 1.93 s | 356 tok/s | 100 % (success rate) | 1M | 128K |
| Amazon Bedrock · quantization unknown | $2.10 | $0.21 | $10.50 | 1.23 s | 60 tok/s | 99.9 % | 1M | 128K |
| Anthropic · quantization unknown | $2.10 | $0.21 | $10.50 | 1.08 s | 84 tok/s | 100 % | 1M | 128K |
| Azure · quantization unknown | $2.10 | $0.21 | $10.50 | 1.99 s | 90 tok/s | 100 % | 1M | 128K |
| Claude Platform on AWS · quantization unknown | $2.10 | $0.21 | $10.50 | 0.90 s | 68 tok/s | 100 % | 1M | 128K |
| Google · quantization unknown | $2.10 | $0.21 | $10.50 | 0.92 s | 85 tok/s | 100 % | 1M | 128K |
| Qubax · quantization unknown | $3.16 | $0.30 | $12.64 | 3.15 s | 433 tok/s | 100 % (success rate) | 1M | 64K |

1 more provider through partner hosts · from $2.10 in · $10.48 out

A request picks by price (`:floor`) or by speed (`provider.sort`, `:nitro`), or sets a floor on tokens per second. [How routing works](https://docs.opencheap.si/speed)

### Supported parameters

The parameters each provider supports on this model, from its published list and our own tests of whether answers show the parameter taking effect. A test is a snapshot, not a guarantee; `provider.require_parameters` sends a request only to providers that support every parameter it sets. [Required parameters](https://docs.opencheap.si/speed#require-parameters)

- **Surplus:** `logit_bias`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `tools`, `tool_choice` (temperature not confirmed)
- **AiHubMix:** `logit_bias`, `presence_penalty`, `stop`, `tools`, `tool_choice` (temperature not confirmed)
- **NanoGPT:** `temperature`, `top_k`, `seed`, `logit_bias`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `tools`, `tool_choice`
- **Amazon Bedrock:** `stop`, `response_format`, `tools`, `tool_choice`, `reasoning`, `include_reasoning` (temperature not confirmed)
- **Anthropic:** `stop`, `response_format`, `structured_outputs`, `tools`, `tool_choice`, `reasoning`, `include_reasoning` (temperature not confirmed)
- **Azure:** `stop`, `response_format`, `structured_outputs`, `tools`, `tool_choice`, `reasoning`, `include_reasoning` (temperature not confirmed)
- **Claude Platform on AWS:** `stop`, `response_format`, `structured_outputs`, `tools`, `tool_choice`, `reasoning`, `include_reasoning` (temperature not confirmed)
- **Google:** `stop`, `response_format`, `structured_outputs`, `tools`, `tool_choice`, `reasoning`, `include_reasoning` (temperature not confirmed)
- **Qubax:** `logit_bias`, `presence_penalty`, `stop`, `response_format`, `structured_outputs`, `tools`, `tool_choice` (temperature not confirmed)

## Price history

Each provider's price over the last 24 hours, 7 days and 30 days is charted on [the page](https://opencheap.si/models/claude-sonnet-5#price-history).

## API

Point the OpenAI SDK at OpenCheap and pass the model id `opencheap/claude-sonnet-5`; the rest of your code stays the same.

```bash
curl https://api.opencheap.si/v1/chat/completions \
  -H "Authorization: Bearer $OPENCHEAP_API_KEY" -H "Content-Type: application/json" \
  -d '{ "model": "opencheap/claude-sonnet-5", "messages": [{ "role": "user", "content": "Hi" }] }'
```

```python
import os
from openai import OpenAI
client = OpenAI(base_url="https://api.opencheap.si/v1", api_key=os.environ["OPENCHEAP_API_KEY"])
r = client.chat.completions.create(model="opencheap/claude-sonnet-5",
    messages=[{"role": "user", "content": "Hi"}])
print(r.choices[0].message.content)
```

```javascript
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.opencheap.si/v1", apiKey: process.env.OPENCHEAP_API_KEY });
const r = await client.chat.completions.create({ model: "opencheap/claude-sonnet-5",
  messages: [{ role: "user", content: "Hi" }] });
console.log(r.choices[0].message.content);
```

## About Claude Sonnet 5

Claude Sonnet 5 costs from $1.10 per 1M input tokens and $5.50 per 1M output tokens on OpenCheap, with cached input at $0.11 per 1M tokens. Its list price is $2.00 per 1M input tokens and $10.00 per 1M output tokens, so on a typical 1 : 3 input-to-output mix it costs 45 % less here. At that price, a request with 10,000 input tokens and 1,000 output tokens costs about $0.017, and 1,000 such requests about $16.50. Prices as of 2026-12-04 11:48 UTC.

10 providers serve Claude Sonnet 5 on OpenCheap. Each request goes to the cheapest healthy provider of the model, and every answer reports what it cost in `usage.cost`. Its context window is 1M tokens (1,000,000), room for roughly 750,000 words of English in one request.

Claude Sonnet 5 is one of [26 Anthropic models](https://opencheap.si/models/lab/anthropic) on OpenCheap. Every model on OpenCheap is called with one key at the same OpenAI-compatible endpoint, `https://api.opencheap.si/v1`.

## Pricing questions

### How much does the Claude Sonnet 5 API cost per 1M tokens?

Claude Sonnet 5 costs from $1.10 per 1M input tokens and $5.50 per 1M output tokens on OpenCheap, with cached input at $0.11 per 1M tokens. Prices as of 2026-12-04 11:48 UTC.

### What does one Claude Sonnet 5 request cost?

A request with 10,000 input tokens and 1,000 output tokens costs about $0.017, and 1,000 such requests about $16.50. Every answer reports its own cost in usage.cost.

### Is Claude Sonnet 5 cheaper on OpenCheap than its list price?

Its list price is $2.00 per 1M input tokens and $10.00 per 1M output tokens, so on a typical 1 : 3 input-to-output mix it costs 45 % less here.

### Which providers serve Claude Sonnet 5?

10 providers serve Claude Sonnet 5 on OpenCheap. Each request goes to the cheapest healthy provider of the model; the table on this page lists every provider with its price, speed and uptime.

### What is the context window of Claude Sonnet 5?

Its context window is 1M tokens (1,000,000), room for roughly 750,000 words of English in one request.

### How do I call the Claude Sonnet 5 API?

Point the OpenAI SDK at https://api.opencheap.si/v1 and pass the model id opencheap/claude-sonnet-5. One OpenCheap key works for every model; the rest of your code stays the same.

## More from Anthropic

- [Claude Sonnet 5 Thinking](https://opencheap.si/models/claude-sonnet-5:thinking) (`claude-sonnet-5:thinking`): $2.00 / $10.00 per 1M · 1M context
- [Claude Opus 5.5](https://opencheap.si/models/claude-opus-5.5) (`claude-opus-5.5`): $2.20 / $11.00 per 1M · 1M context
- [claude-4-opus](https://opencheap.si/models/claude-4-opus) (`claude-4-opus`): $17.33 / $86.67 per 1M · 200K context
- [claude-4-sonnet](https://opencheap.si/models/claude-4-sonnet) (`claude-4-sonnet`): $3.46 / $17.30 per 1M · 200K context
- [Claude Fable 5](https://opencheap.si/models/claude-fable-5) (`claude-fable-5`): $6.90 / $34.50 per 1M · 1M context
- [Claude Fable 5.1](https://opencheap.si/models/claude-fable-5.1) (`claude-fable-5.1`): $7.00 / $35.00 per 1M · 1M context
- [Claude Fable 5.2](https://opencheap.si/models/claude-fable-5.2) (`claude-fable-5.2`): $5.51 / $27.56 per 1M · 1M context
- [Claude Haiku 4.5](https://opencheap.si/models/claude-haiku-4.5) (`claude-haiku-4.5`): $0.40 / $2.00 per 1M · 200K context

[All 26 Anthropic models](https://opencheap.si/models/lab/anthropic)

## Similar models

- [Grok 4.7](https://opencheap.si/models/grok-4.7): xAI · 500K context · $1.26 / $5.03 per 1M, 7 % cheaper · [Compare with Claude Sonnet 5](https://opencheap.si/compare/claude-sonnet-5-vs-grok-4.7)
- [Qwen3.8 Max](https://opencheap.si/models/qwen3.8-max): Qwen · 1M context · $1.80 / $5.41 per 1M · [Compare with Claude Sonnet 5](https://opencheap.si/compare/claude-sonnet-5-vs-qwen3.8-max)
- [GPT 5.4](https://opencheap.si/models/gpt-5.4): OpenAI · 1M context · $1.00 / $6.00 per 1M · [Compare with Claude Sonnet 5](https://opencheap.si/compare/claude-sonnet-5-vs-gpt-5.4)
- [GPT 6 Astra](https://opencheap.si/models/gpt-6-astra): OpenAI · 1M context · $1.00 / $5.00 per 1M, 9 % cheaper · [Compare with Claude Sonnet 5](https://opencheap.si/compare/claude-sonnet-5-vs-gpt-6-astra)
- [Fugu Max](https://opencheap.si/models/fugu-max): Sakana AI · 1M context · $1.88 / $5.64 per 1M · [Compare with Claude Sonnet 5](https://opencheap.si/compare/claude-sonnet-5-vs-fugu-max)
- [OrcaCyber GLM 5.3](https://opencheap.si/models/orcacyber-glm-5.3): OrcaRouter · 999K context · $3.00 / $5.00 per 1M · [Compare with Claude Sonnet 5](https://opencheap.si/compare/claude-sonnet-5-vs-orcacyber-glm-5.3)

### Comparisons

- [Claude Sonnet 5 vs Kimi K3](https://opencheap.si/compare/claude-sonnet-5-vs-kimi-k3)
- [Claude Sonnet 5 vs GLM 5.3](https://opencheap.si/compare/claude-sonnet-5-vs-glm-5.3)
- [Claude Sonnet 5 vs Kimi K2.7 Code](https://opencheap.si/compare/claude-sonnet-5-vs-kimi-k2.7-code)
- [Claude Sonnet 5 vs GPT 5.5](https://opencheap.si/compare/claude-sonnet-5-vs-gpt-5.5)
- [Claude Sonnet 5 vs Gemini 3.5 Flash](https://opencheap.si/compare/claude-sonnet-5-vs-gemini-3.5-flash)
- [Claude Opus 5.5 vs Claude Sonnet 5](https://opencheap.si/compare/claude-opus-5.5-vs-claude-sonnet-5)
- [Claude Sonnet 5.5 vs Claude Sonnet 5](https://opencheap.si/compare/claude-sonnet-5.5-vs-claude-sonnet-5)

[Compare Claude Sonnet 5 with any model](https://opencheap.si/compare)

---

Source: https://opencheap.si/models/claude-sonnet-5 · All models: https://opencheap.si/models · Prices as JSON: https://api.opencheap.si/v1/prices · Index for agents: https://opencheap.si/llms.txt
