Loading...
    • 開發者指南
    • API 參考
    • MCP
    • 資源
    • 發行說明
    Search...
    ⌘K

    第一步

    Claude 介紹快速入門

    模型與定價

    模型概覽選擇模型Claude 4.5 的新功能遷移到 Claude 4.5模型棄用定價

    使用 Claude 建構

    功能概覽使用 Messages API上下文視窗提示詞最佳實踐

    功能

    提示詞快取上下文編輯延伸思考串流訊息批次處理引用多語言支援Token 計數嵌入向量視覺PDF 支援Files API搜尋結果Google Sheets 附加元件

    工具

    概述如何實現工具使用代幣高效工具使用細粒度工具串流Bash 工具代碼執行工具電腦使用工具文字編輯工具網頁擷取工具網路搜尋工具記憶工具

    代理技能

    概述在 API 中開始使用 Agent Skills技能編寫最佳實踐使用 Agent Skills 與 API

    Agent SDK

    概述Agent SDK 參考 - TypeScriptPython SDK

    指南

    串流輸入處理權限會話管理託管 Agent SDK修改系統提示SDK 中的 MCP自訂工具SDK 中的子代理SDK 中的斜線命令SDK 中的代理技能追蹤成本和使用量待辦事項清單SDK 中的外掛程式

    API 中的 MCP

    MCP 連接器遠端 MCP 伺服器

    Claude 在第三方平台上

    Amazon BedrockVertex AI

    提示工程

    概述提示詞生成器使用提示模板提示詞改進器保持清晰和直接使用範例(多樣提示)讓 Claude 思考(思維鏈)使用 XML 標籤給 Claude 分配角色(系統提示詞)預填 Claude 的回應串接複雜提示長文本技巧延伸思考技巧

    測試與評估

    定義成功標準開發測試案例使用評估工具降低延遲

    加強防護措施

    減少幻覺提高輸出一致性防範越獄handle-streaming-refusals減少提示詞洩漏保持 Claude 的角色特性

    管理和監控

    Admin API 概述使用量和成本 APIClaude Code 分析 API
    Console
    模型與定價

    模型棄用

    隨著我們推出更安全且更強大的模型,我們會定期淘汰舊模型。依賴 Anthropic 模型的應用程式可能需要偶爾更新以保持正常運作。受影響的客戶將始終透過電子郵件和我們的文件收到通知。

    本頁列出所有 API 棄用情況,以及建議的替代方案。

    概述

    Anthropic 使用以下術語來描述我們模型的生命週期:

    • 活躍:模型得到完全支援並建議使用。
    • 舊版:模型將不再接收更新,未來可能會被棄用。
    • 已棄用:模型不再可供新客戶使用,但對現有使用者繼續可用,直到停用。我們在此時指定停用日期。
    • 已停用:模型不再可供使用。對已停用模型的請求將失敗。

    請注意,已棄用的模型可能不如活躍模型可靠。我們敦促您將工作負載遷移到活躍模型,以保持最高級別的支援和可靠性。

    遷移到替代方案

    一旦模型被棄用,請在停用日期之前將所有使用情況遷移到合適的替代方案。對超過停用日期的模型的請求將失敗。

    為了幫助衡量替代模型在您的任務上的效能,我們建議在停用日期之前充分測試您的應用程式與新模型。

    有關從 Claude 3.7 遷移到 Claude 4.5 模型的具體說明,請參閱遷移到 Claude 4.5。

    通知

    Anthropic 會通知具有即將停用模型的活躍部署的客戶。我們在公開發佈的模型停用前至少提供 60 天的通知。

    審計模型使用情況

    為了幫助識別已棄用模型的使用情況,客戶可以存取其 API 使用情況的審計。請按照以下步驟操作:

    1. 前往 https://console.anthropic.com/settings/usage
    2. 點擊「匯出」按鈕
    3. 檢查下載的 CSV 以查看按 API 金鑰和模型細分的使用情況

    此審計將幫助您找到應用程式仍在使用已棄用模型的任何實例,讓您能夠在停用日期之前優先更新到較新的模型。

    最佳實踐

    1. 定期檢查我們的文件以了解模型棄用的最新資訊。
    2. 在您目前模型的停用日期之前充分測試您的應用程式與較新的模型。
    3. 盡快更新您的程式碼以使用建議的替代模型。
    4. 如果您需要協助進行遷移或有任何疑問,請聯絡我們的支援團隊。

    模型狀態

    所有公開發佈的模型如下所示,附帶其狀態:

    API 模型名稱目前狀態已棄用暫定停用日期
    claude-3-opus-20240229已棄用2025 年 6 月 30 日2026 年 1 月 5 日
    claude-3-haiku-20240307活躍N/A不早於 2025 年 3 月 7 日
    claude-3-5-haiku-20241022活躍N/A不早於 2025 年 10 月 22 日
    claude-3-7-sonnet-20250219已棄用2025 年 10 月 28 日2026 年 2 月 19 日
    claude-sonnet-4-20250514活躍N/A不早於 2026 年 5 月 14 日
    claude-opus-4-20250514活躍N/A不早於 2026 年 5 月 14 日
    claude-opus-4-1-20250805活躍N/A不早於 2026 年 8 月 5 日
    claude-sonnet-4-5-20250929活躍N/A不早於 2026 年 9 月 29 日
    claude-haiku-4-5-20251001活躍N/A不早於 2026 年 10 月 15 日

    棄用歷史

    所有棄用情況如下所示,最近的公告在頂部。

    2025-10-28:Claude Sonnet 3.7 模型

    2025 年 10 月 28 日,我們通知使用 Claude Sonnet 3.7 模型的開發人員其在 Claude API 上即將停用。

    停用日期已棄用模型建議的替代方案
    2026 年 2 月 19 日claude-3-7-sonnet-20250219claude-sonnet-4-5-20250929

    2025-08-13:Claude Sonnet 3.5 模型

    這些模型已於 2025 年 10 月 28 日停用。

    2025 年 8 月 13 日,我們通知使用 Claude Sonnet 3.5 模型的開發人員其即將停用。

    停用日期已棄用模型建議的替代方案
    2025 年 10 月 28 日claude-3-5-sonnet-20240620claude-sonnet-4-5-20250929
    2025 年 10 月 28 日claude-3-5-sonnet-20241022claude-sonnet-4-5-20250929

    2025-06-30:Claude Opus 3 模型

    2025 年 6 月 30 日,我們通知使用 Claude Opus 3 模型的開發人員其即將停用。

    停用日期已棄用模型建議的替代方案
    2026 年 1 月 5 日claude-3-opus-20240229claude-opus-4-1-20250805

    2025-01-21:Claude 2、Claude 2.1 和 Claude Sonnet 3 模型

    這些模型已於 2025 年 7 月 21 日停用。

    2025 年 1 月 21 日,我們通知使用 Claude 2、Claude 2.1 和 Claude Sonnet 3 模型的開發人員其即將停用。

    停用日期已棄用模型建議的替代方案
    2025 年 7 月 21 日claude-2.0claude-sonnet-4-5-20250929
    2025 年 7 月 21 日claude-2.1claude-sonnet-4-5-20250929
    2025 年 7 月 21 日claude-3-sonnet-20240229claude-sonnet-4-5-20250929

    2024-09-04:Claude 1 和 Instant 模型

    這些模型已於 2024 年 11 月 6 日停用。

    2024 年 9 月 4 日,我們通知使用 Claude 1 和 Instant 模型的開發人員其即將停用。

    停用日期已棄用模型建議的替代方案
    2024 年 11 月 6 日claude-1.0claude-3-5-haiku-20241022
    2024 年 11 月 6 日claude-1.1claude-3-5-haiku-20241022
    2024 年 11 月 6 日claude-1.2claude-3-5-haiku-20241022
    2024 年 11 月 6 日claude-1.3claude-3-5-haiku-20241022
    2024 年 11 月 6 日claude-instant-1.0claude-3-5-haiku-20241022
    2024 年 11 月 6 日claude-instant-1.1claude-3-5-haiku-20241022
    2024 年 11 月 6 日claude-instant-1.2claude-3-5-haiku-20241022
    • 2025-10-28:Claude Sonnet 3.7 模型
    • 2025-08-13:Claude Sonnet 3.5 模型
    • 2025-06-30:Claude Opus 3 模型
    • 2025-01-21:Claude 2、Claude 2.1 和 Claude Sonnet 3 模型
    • 2024-09-04:Claude 1 和 Instant 模型
    © 2025 ANTHROPIC PBC

    Products

    • Claude
    • Claude Code
    • Max plan
    • Team plan
    • Enterprise plan
    • Download app
    • Pricing
    • Log in

    Features

    • Claude and Slack
    • Claude in Excel

    Models

    • Opus
    • Sonnet
    • Haiku

    Solutions

    • AI agents
    • Code modernization
    • Coding
    • Customer support
    • Education
    • Financial services
    • Government
    • Life sciences

    Claude Developer Platform

    • Overview
    • Developer docs
    • Pricing
    • Amazon Bedrock
    • Google Cloud’s Vertex AI
    • Console login

    Learn

    • Blog
    • Catalog
    • Courses
    • Use cases
    • Connectors
    • Customer stories
    • Engineering at Anthropic
    • Events
    • Powered by Claude
    • Service partners
    • Startups program

    Company

    • Anthropic
    • Careers
    • Economic Futures
    • Research
    • News
    • Responsible Scaling Policy
    • Security and compliance
    • Transparency

    Help and security

    • Availability
    • Status
    • Support center

    Terms and policies

    • Privacy policy
    • Responsible disclosure policy
    • Terms of service: Commercial
    • Terms of service: Consumer
    • Usage policy

    Products

    • Claude
    • Claude Code
    • Max plan
    • Team plan
    • Enterprise plan
    • Download app
    • Pricing
    • Log in

    Features

    • Claude and Slack
    • Claude in Excel

    Models

    • Opus
    • Sonnet
    • Haiku

    Solutions

    • AI agents
    • Code modernization
    • Coding
    • Customer support
    • Education
    • Financial services
    • Government
    • Life sciences

    Claude Developer Platform

    • Overview
    • Developer docs
    • Pricing
    • Amazon Bedrock
    • Google Cloud’s Vertex AI
    • Console login

    Learn

    • Blog
    • Catalog
    • Courses
    • Use cases
    • Connectors
    • Customer stories
    • Engineering at Anthropic
    • Events
    • Powered by Claude
    • Service partners
    • Startups program

    Company

    • Anthropic
    • Careers
    • Economic Futures
    • Research
    • News
    • Responsible Scaling Policy
    • Security and compliance
    • Transparency

    Help and security

    • Availability
    • Status
    • Support center

    Terms and policies

    • Privacy policy
    • Responsible disclosure policy
    • Terms of service: Commercial
    • Terms of service: Consumer
    • Usage policy
    © 2025 ANTHROPIC PBC