功能總覽
探索 Claude 的進階功能與能力。
Claude 的 API 介面分為五個領域:
- 模型能力: 控制 Claude 如何推理及格式化回應。
- 工具: 讓 Claude 在網路上或您的環境中採取行動。
- 工具基礎設施: 處理大規模的探索與編排。
- 上下文管理: 讓長時間執行的工作階段保持高效。
- 檔案與資產: 管理您提供給 Claude 的文件與資料。
如果您是新手,請從模型能力和工具開始。當您準備好最佳化成本、延遲或規模時,再回來查看其他章節。
關於管理與治理,請參閱 Admin API、Usage and Cost API 以及 Compliance API。
功能可用性
以下各表格中的「可用性」欄位列出了提供該功能的平台。未附標籤的平台表示該功能在該平台上為穩定版、完全支援且建議用於正式環境,無需 beta 標頭,並享有標準 API 版本控制保證。平台名稱後的標籤則標示該功能在該平台上屬於下列分類之一。並非所有功能都會經歷每個階段,功能可能在任何階段進入或跳過某些階段。
| 分類 | 說明 |
|---|---|
| Beta | 用於收集回饋並針對較不成熟的使用案例進行迭代的預覽功能。可用性可能受到限制,包括需要註冊或加入候補名單,且可能不會公開宣布。 功能可能會根據回饋而大幅變更或停止提供。不保證可持續用於正式環境。可能會在事先通知後進行破壞性變更,且可能存在某些平台特定的限制。Claude API 和 Claude Platform on AWS 上的大多數 beta 功能都有對應的 beta 標頭。 |
| 已棄用 | 功能仍可運作,但不再建議使用。會提供遷移路徑與移除時程。 |
| 已停用 | 功能已不再提供。 |
平台標籤: Claude API(Anthropic 第一方)· Bedrock(由 AWS 營運)· Claude Platform on AWS(由 Anthropic 在 AWS 上營運)· Google Cloud(由 Google 營運)· Microsoft Foundry(由 Anthropic 在 Azure 上營運)
模型能力
引導 Claude 及 Claude 直接輸出的方式,包括回應格式、推理深度與輸入模態。
ZDR 欄位表示某項功能是否可在「Zero Data Retention」(零資料保留),即 ZDR 安排下使用。對大多數功能而言,這僅取決於該功能機制所保留的內容;對於與特定模型綁定的功能,模型層級的 ZDR 可用性也同樣適用。請參閱模型特定的資料保留要求。
| 功能 | 說明 | 零資料保留(ZDR) | 可用性 |
|---|---|---|---|
| 上下文視窗 | 最多 1M tokens,可處理大型文件、龐大的程式碼庫與長篇對話。 | 符合 ZDR 資格 | Claude API Bedrock Claude Platform on AWS Google Cloud Microsoft Foundry |
| 自適應思考 | 讓 Claude 動態決定何時思考以及思考多少。這是 Claude 4.7 及更新模型上唯一的思考模式。使用 effort 參數控制思考深度。 | 符合 ZDR 資格 | Claude API Bedrock Claude Platform on AWS Google Cloud Microsoft Foundry |
| 批次處理 | 以非同步方式處理大量請求以節省成本。每個批次可傳送大量查詢。Batch API 呼叫的費用比標準 API 呼叫低 50%。 | 不符合 ZDR 資格 | Claude API Claude Platform on AWS |
| 引用 | 讓 Claude 的回應以來源文件為依據。透過 Citations,Claude 可以針對其生成回應時所使用的確切句子與段落提供詳細參考,從而產生更可驗證、更值得信賴的輸出。 | 符合 ZDR 資格 | Claude API Bedrock Claude Platform on AWS Google Cloud Microsoft Foundry |
| 資料駐留 | 使用地理控制來控制模型推論的執行位置。透過 inference_geo 參數為每個請求指定 "global" 或 "us" 路由。 | 符合 ZDR 資格 | Claude API Claude Platform on AWS |
| Effort | 透過 effort 參數控制 Claude 回應時使用的 token 數量,在回應完整度與 token 效率之間取得平衡。 | 符合 ZDR 資格 | Claude API Bedrock Claude Platform on AWS Google Cloud Microsoft Foundry |
| Fallback credit(備援抵免) | 當您在另一個模型上重試被拒絕的請求時,避免重複支付提示快取費用。拒絕回應會附帶一個抵免 token,在重試時回傳該 token,即可將重試計費視為對話從一開始就在新模型上進行。Message Batches 的結果不包含 fallback credit token。 | 不符合 ZDR 資格* | Claude API (Beta) Bedrock (Beta) Claude Platform on AWS (Beta) Google Cloud (Beta) Microsoft Foundry (Beta) |
| PDF 支援 | 處理並分析 PDF 文件中的文字與視覺內容。 | 符合 ZDR 資格 | Claude API Bedrock Claude Platform on AWS Google Cloud Microsoft Foundry |
| 搜尋結果 | 透過提供具有適當來源標註的搜尋結果,為 RAG 應用程式啟用自然引用。為自訂知識庫與工具實現網路搜尋品質的引用。 | 符合 ZDR 資格 | Claude API Bedrock Claude Platform on AWS Google Cloud Microsoft Foundry |
| 伺服器端備援 | 在單一 API 呼叫內重試被拒絕的請求。使用 "default" 模式套用 Anthropic 建議的備援模型,或自行指定最多三個模型;當所請求的模型拒絕時,API 會以相同請求執行鏈中的下一個模型。fallbacks 參數在 Message Batches API 中不可用。 | 不符合 ZDR 資格* | Claude API (Beta) |
| 結構化輸出 | 透過兩種方式保證符合結構描述:用於結構化資料回應的 JSON 輸出,以及用於經驗證工具輸入的嚴格工具使用。 | 符合 ZDR 資格(有條件)* | Claude API Bedrock Claude Platform on AWS Google Cloud Microsoft Foundry |
| 思考 | 針對複雜任務的增強推理能力,在 Claude 給出最終答案之前,提供其逐步思考過程的透明度。 | 符合 ZDR 資格 | Claude API Bedrock Claude Platform on AWS Google Cloud Microsoft Foundry |
工具
Claude 透過 tool_use 呼叫的內建工具。伺服器端工具由平台執行;用戶端工具則由您實作並執行。
伺服器端工具
| 功能 | 說明 | ZDR | 可用性 |
|---|---|---|---|
| Advisor 工具 | 將較快速的執行者模型與較高智慧的顧問模型配對,後者可在生成過程中為長時程代理工作負載提供策略性指引。 | 符合 ZDR 資格 | Claude API (Beta) Claude Platform on AWS (Beta) |
| 程式碼執行 | 在沙箱環境中執行程式碼,以進行進階資料分析、計算與檔案處理。與網路搜尋或網路擷取搭配使用時免費。 | 不符合 ZDR 資格 | Claude API Claude Platform on AWS Microsoft Foundry† |
| 網路擷取 | 從指定的網頁與 PDF 文件擷取完整內容以進行深入分析。 | 符合 ZDR 資格* | Claude API Claude Platform on AWS Microsoft Foundry |
| 網路搜尋 | 以來自整個網路的最新真實世界資料,增強 Claude 的全面知識。 | 符合 ZDR 資格* | Claude API Claude Platform on AWS Google Cloud Microsoft Foundry |
用戶端工具
| 功能 | 說明 | ZDR | 可用性 |
|---|---|---|---|
| Bash | 執行 bash 指令與腳本,以與系統 shell 互動並執行命令列操作。 | 符合 ZDR 資格 | Claude API Bedrock Claude Platform on AWS Google Cloud Microsoft Foundry |
| 瀏覽器使用 | 在您自己的瀏覽器環境中瀏覽、閱讀並與網頁互動。 | 符合 ZDR 資格 | Claude API Google Cloud |
| 電腦使用 | 透過擷取螢幕截圖並發出滑鼠與鍵盤指令來控制電腦介面。 | 符合 ZDR 資格 | Claude API Bedrock (Beta) Claude Platform on AWS (Beta) Google Cloud Microsoft Foundry (Beta) |
| 記憶 | 讓 Claude 能夠跨對話儲存與擷取資訊。隨時間建立知識庫、維護專案上下文,並從過去的互動中學習。 | 符合 ZDR 資格 | Claude API Bedrock Claude Platform on AWS Google Cloud Microsoft Foundry |
| 文字編輯器 | 透過內建的文字編輯器介面建立與編輯文字檔案,以執行檔案操作任務。 | 符合 ZDR 資格 | Claude API Bedrock Claude Platform on AWS Google Cloud Microsoft Foundry |
工具基礎設施
支援探索、編排與擴展工具使用的基礎設施。
| 功能 | 說明 | ZDR | 可用性 |
|---|---|---|---|
| Agent Skills | 透過 Skills 擴充 Claude 的能力。使用預先建置的 Skills(PowerPoint、Excel、Word、PDF),或使用指示和指令碼建立自訂 Skills。Skills 採用漸進式揭露來有效管理上下文。 | 不符合 ZDR 資格 | Claude API Claude Platform on AWS (Beta) Microsoft Foundry (Beta)†‡ |
| 細粒度工具串流 | 在不進行緩衝/JSON 驗證的情況下串流傳輸工具使用參數,降低接收大型參數時的延遲。 | 符合 ZDR 資格 | Claude API Bedrock Claude Platform on AWS Google Cloud Microsoft Foundry |
| MCP 連接器 | 直接從 Messages API 連接到遠端 MCP 伺服器,無需另外的 MCP 用戶端。 | 不符合 ZDR 資格 | Claude API (Beta) Claude Platform on AWS (Beta) Microsoft Foundry (Beta) |
| 程式化工具呼叫 | 讓 Claude 能夠在程式碼執行容器內以程式化方式呼叫您的工具,降低多工具工作流程的延遲和 token 消耗。 | 不符合 ZDR 資格 | Claude API Claude Platform on AWS Microsoft Foundry† |
| 工具搜尋 | 使用基於正規表示式和 BM25 的搜尋,依需求動態探索和載入工具,擴展至數千個工具,同時最佳化上下文使用並提升工具選擇的準確度。 | 符合 ZDR 資格 | Claude API Bedrock Claude Platform on AWS Google Cloud Microsoft Foundry |
上下文管理
用於控制與最佳化 Claude 上下文視窗的基礎設施。
| 功能 | 說明 | ZDR | 可用性 |
|---|---|---|---|
| 在 token 閾值時壓縮 | 針對長時間執行對話的伺服器端上下文摘要。當輸入 token 達到觸發閾值時,API 會自動摘要對話的較早部分。 | 符合 ZDR 資格 | Claude API (Beta) Bedrock (Beta) Claude Platform on AWS (Beta) Google Cloud (Beta) Microsoft Foundry (Beta) |
| 上下文編輯 | 使用可設定的策略自動管理對話上下文。支援在接近 token 限制時清除工具結果,以及在「extended thinking」(擴展思考)對話中管理思考區塊。 | 符合 ZDR 資格 | Claude API (Beta) Bedrock (Beta) Claude Platform on AWS (Beta) Google Cloud (Beta) Microsoft Foundry (Beta) |
| 自動提示快取 | 將「prompt caching」(提示快取)簡化為單一 API 參數。系統會自動快取您請求中最後一個可快取的區塊,並隨著對話增長將快取點向前移動。 | 符合 ZDR 資格 | Claude API Bedrock Claude Platform on AWS Google Cloud Microsoft Foundry |
| 提示快取(5 分鐘) | 為 Claude 提供更多背景知識和範例輸出,以降低成本和延遲。 | 符合 ZDR 資格 | Claude API Bedrock Claude Platform on AWS Google Cloud Microsoft Foundry |
| 提示快取(1 小時) | 延長至 1 小時的快取持續時間,適用於存取頻率較低但重要的上下文,作為標準 5 分鐘快取的補充。 | 符合 ZDR 資格 | Claude API Bedrock Claude Platform on AWS Google Cloud Microsoft Foundry |
| Token 計數 | Token 計數讓您能夠在將訊息傳送給 Claude 之前確定其中的 token 數量,協助您針對提示和使用量做出明智的決策。 | 符合 ZDR 資格 | Claude API Bedrock Claude Platform on AWS Google Cloud Microsoft Foundry |
檔案與資產
管理與 Claude 搭配使用的檔案與資產。
| 功能 | 說明 | ZDR | 可用性 |
|---|---|---|---|
| Files API | 上傳並管理與 Claude 搭配使用的檔案,無需在每次請求時重新上傳內容。支援 PDF、圖片與文字檔案。 | 不符合 ZDR 資格 | Claude API Claude Platform on AWS (Beta) Microsoft Foundry (Beta)† |
* 結構化輸出: 您的提示與 Claude 的輸出不會被儲存。僅會快取 JSON 結構描述,自上次使用起最多保留 24 小時。網路搜尋與網路擷取: 除非啟用動態篩選,否則符合 ZDR 資格。Fallback credit 與伺服器端備援: 這些功能不會保留任何訊息內容,但它們會處理來自 Claude Fable 模型的拒絕,而這些模型在 ZDR 下不可用。請參閱 ZDR 詳細資訊。
† 在 Microsoft Foundry 上,功能可用性依託管選項而有所不同。這些功能在 Hosted on Anthropic 部署上可用,而在 Hosted on Azure 部署上不可用。
‡ 在 Claude Platform on AWS 上,Agent Skills 不需要 beta 標頭,且行為與在 Claude API 上相同。
Was this page helpful?