---
title: Claude Sonnet 5
url: https://platform.claude.com/docs/zh-TW/models/sonnet-5/overview
description: Claude Sonnet 5 參考資料：生命週期狀態、各平台上的模型 ID、上下文視窗、輸出限制、定價及遷移資源。Claude Sonnet 5 是舊版模型；Claude Sonnet 5.5 是目前的 Sonnet 模型。
---

**Legacy.** Released June 30, 2026.

Although Claude Sonnet 5 is still available, you should consider migrating to Claude Sonnet 5.5. [See Claude Sonnet 5.5](https://platform.claude.com/docs/zh-TW/models/sonnet-5-5/overview) · [Migrate to Claude Sonnet 5.5](https://platform.claude.com/docs/zh-TW/models/sonnet-5-5/migration-guide#migrating-from-claude-sonnet-5)

Model ID: `claude-sonnet-5`

Context window: 1M tokens · Max output: 128K tokens · Input pricing: $2 / MTok · Output pricing: $10 / MTok

[Announcement](https://www.anthropic.com/news/claude-sonnet-5)

## 與目前模型陣容的比較

| Model                                                                                  | Context | Max output | Price / MTok       | Thinking             | Default effort | Knowledge cutoff |
| :------------------------------------------------------------------------------------- | :------ | :--------- | :----------------- | :------------------- | :------------- | :--------------- |
| [Claude Fable 5.1](https://platform.claude.com/docs/zh-TW/models/fable-5-1/overview)   | 1M      | 128K       | $10 / $50          | Adaptive (always on) | `high`         | Jun 2026         |
| [Claude Opus 5.5](https://platform.claude.com/docs/zh-TW/models/opus-5-5/overview)     | 1M      | 128K       | $4 / $20           | Adaptive (always on) | `medium`       | Jun 2026         |
| [Claude Sonnet 5.5](https://platform.claude.com/docs/zh-TW/models/sonnet-5-5/overview) | 1M      | 128K       | $2 / $10           | Adaptive             | `high`         | Jun 2026         |
| **Claude Sonnet 5** (this model)                                                       | 1M      | 128K       | $2 / $10           | Adaptive             | `high`         | Jan 2026         |
| [Claude Haiku 5.5](https://platform.claude.com/docs/zh-TW/models/haiku-5-5/overview)   | 1M      | 128K       | From $0.10 / $0.50 | Adaptive             | `medium`       | Jun 2026         |

* **Context:** 1M tokens is roughly 555k words or 2.5M Unicode characters on the current tokenizer (introduced with Claude Opus 4.7); models before it fit about 750k words in 1M tokens. 200k tokens is roughly 150k words.
* **Max output:** Synchronous Messages API limit. On the Message Batches API, Claude Opus 5.5, Claude Opus 5, Claude Sonnet 5.5, Claude Sonnet 5, Claude Haiku 5.5, Claude Opus 4.8, Claude Opus 4.7, Claude Opus 4.6, and Claude Sonnet 4.6 support up to 300k output tokens with the output-300k-2026-03-24 beta header.
* **Price / MTok:** Input / output, base price per million tokens. Batch API requests are 50% off; prompt caching reads cost 10% of the base input price (2.5% on Claude Fable 5.1 and Claude Mythos 5.1, 5% on Claude Opus 5.5 and Claude Sonnet 5.5). See Pricing for the full list.
* **Thinking:** Adaptive thinking lets the model decide how much to think, steered by effort. Extended thinking is the manual budget\_tokens mode on earlier models.
* **Default effort:** The effort parameter’s default on the Claude API. Models without a value don’t support the parameter.
* **Knowledge cutoff:** Reliable knowledge cutoff: the date through which the model’s knowledge is most extensive and reliable.

## 規格

### Model IDs

| Platform                                                                                                  | Model ID                    |
| :-------------------------------------------------------------------------------------------------------- | :-------------------------- |
| Claude API                                                                                                | `claude-sonnet-5`           |
| [Amazon Bedrock](https://platform.claude.com/docs/zh-TW/build-with-claude/claude-in-amazon-bedrock)       | `anthropic.claude-sonnet-5` |
| [Google Cloud](https://platform.claude.com/docs/zh-TW/build-with-claude/claude-on-vertex-ai)              | `claude-sonnet-5`           |
| [Microsoft Foundry](https://platform.claude.com/docs/zh-TW/build-with-claude/claude-in-microsoft-foundry) | `claude-sonnet-5`           |
| [Claude Platform on AWS](https://platform.claude.com/docs/zh-TW/build-with-claude/claude-platform-on-aws) | `claude-sonnet-5`           |

### Pricing

| Feature                                                                                   | Value                            |
| :---------------------------------------------------------------------------------------- | :------------------------------- |
| Input                                                                                     | $2 / MTok                        |
| Output                                                                                    | $10 / MTok                       |
| [5m cache write](https://platform.claude.com/docs/zh-TW/build-with-claude/prompt-caching) | $2.50 / MTok                     |
| [1h cache write](https://platform.claude.com/docs/zh-TW/build-with-claude/prompt-caching) | $4 / MTok                        |
| [Cache read](https://platform.claude.com/docs/zh-TW/build-with-claude/prompt-caching)     | $0.20 / MTok                     |
| [Batch API](https://platform.claude.com/docs/zh-TW/build-with-claude/batch-processing)    | 50% discount on input and output |

[Full price list](https://platform.claude.com/docs/zh-TW/about-claude/pricing)

### Capabilities

| Feature                                                                                                                        | Value                  |
| :----------------------------------------------------------------------------------------------------------------------------- | :--------------------- |
| [Context window](https://platform.claude.com/docs/zh-TW/build-with-claude/context-windows)                                     | 1M tokens              |
| Max output                                                                                                                     | 128K tokens            |
| [Max output (Batch API, beta)](https://platform.claude.com/docs/zh-TW/build-with-claude/batch-processing#extended-output-beta) | 300K tokens            |
| [Thinking](https://platform.claude.com/docs/zh-TW/build-with-claude/thinking)                                                  | Adaptive               |
| [Default effort](https://platform.claude.com/docs/zh-TW/build-with-claude/effort)                                              | `high`                 |
| Input → output                                                                                                                 | Text and images → text |
| Reliable knowledge cutoff                                                                                                      | Jan 2026               |
| Training data cutoff                                                                                                           | Jan 2026               |

### Availability

| Feature                                                                          | Value                                                                                                                                                                                                                                                                                                                                                                                                                               |
| :------------------------------------------------------------------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Status](https://platform.claude.com/docs/zh-TW/about-claude/model-deprecations) | Active (legacy)                                                                                                                                                                                                                                                                                                                                                                                                                     |
| Released                                                                         | June 30, 2026                                                                                                                                                                                                                                                                                                                                                                                                                       |
| Retirement                                                                       | Not sooner than June 30, 2027                                                                                                                                                                                                                                                                                                                                                                                                       |
| Platforms                                                                        | Claude API, [Amazon Bedrock](https://platform.claude.com/docs/zh-TW/build-with-claude/claude-in-amazon-bedrock), [Google Cloud](https://platform.claude.com/docs/zh-TW/build-with-claude/claude-on-vertex-ai), [Microsoft Foundry](https://platform.claude.com/docs/zh-TW/build-with-claude/claude-in-microsoft-foundry), [Claude Platform on AWS](https://platform.claude.com/docs/zh-TW/build-with-claude/claude-platform-on-aws) |

## 須知事項

* 在 [Message Batches API](https://platform.claude.com/docs/zh-TW/build-with-claude/batch-processing#extended-output-beta) 上，Claude Sonnet 5 搭配 `output-300k-2026-03-24` beta 標頭時，最多支援 300k 個輸出 token。
* 將 `temperature`、`top_p` 或 `top_k` 設定為非預設值會傳回 400 錯誤。
* 使用 [Models API](https://platform.claude.com/docs/zh-TW/api/models/list) 以程式化方式查詢限制與功能。

## 資源

<CardGroup cols={3}>
  <Card title="遷移至 Claude Sonnet 5.5" icon="arrows-left-right" href="https://platform.claude.com/docs/zh-TW/models/sonnet-5-5/migration-guide#migrating-from-claude-sonnet-5">
    從 Claude Sonnet 5 轉移至 Claude Sonnet 5.5 時會有哪些變更。
  </Card>

  <Card title="Claude Sonnet 5.5" icon="arrow-right" href="https://platform.claude.com/docs/zh-TW/models/sonnet-5-5/overview">
    目前的 Sonnet 模型：概覽、規格與資源。
  </Card>

  <Card title="為 Claude Sonnet 5 撰寫提示" icon="lightbulb" href="https://platform.claude.com/docs/zh-TW/build-with-claude/prompt-engineering/prompting-claude-sonnet-5">
    針對特定模型的提示指引。
  </Card>

  <Card title="自適應思考" icon="brain" href="https://platform.claude.com/docs/zh-TW/build-with-claude/thinking">
    在 Claude Sonnet 5 上預設啟用。使用 `effort` 調整思考深度。
  </Card>

  <Card title="Effort" icon="sliders" href="https://platform.claude.com/docs/zh-TW/build-with-claude/effort">
    在 Claude API 與 Claude Code 上，effort 預設為 `high`。請依工作負載選擇等級。
  </Card>

  <Card title="上下文視窗" icon="stack" href="https://platform.claude.com/docs/zh-TW/build-with-claude/context-windows">
    預設為 1M 個 token。說明視窗的計算與管理方式。
  </Card>
</CardGroup>

## 參考資料

<CardGroup cols={3}>
  <Card title="系統提示" icon="text" href="https://platform.claude.com/docs/zh-TW/release-notes/system-prompts/claude-sonnet-5">
    Claude Sonnet 5 在 claude.ai 與 Claude 應用程式上使用的系統提示。
  </Card>

  <Card title="系統卡" icon="file" href="https://www.anthropic.com/claude-sonnet-5-system-card">
    Claude Sonnet 5 的安全性評估與部署決策。
  </Card>

  <Card title="定價" icon="coins" href="https://platform.claude.com/docs/zh-TW/about-claude/pricing">
    完整價目表，包括批次折扣與提示快取費率。
  </Card>

  <Card title="模型 ID 與版本管理" icon="fingerprint" href="https://platform.claude.com/docs/zh-TW/about-claude/models/model-ids-and-versions">
    模型 ID、別名與固定快照的運作方式。
  </Card>

  <Card title="模型棄用" icon="clock" href="https://platform.claude.com/docs/zh-TW/about-claude/model-deprecations">
    每個 Claude 模型的生命週期狀態與退役承諾。
  </Card>
</CardGroup>
