本頁提供 Anthropic 模型和功能的詳細定價信息。所有價格均以美元計價。

有關最新定價信息,請訪問 anthropic.com/pricing

模型定價

下表顯示了所有 Claude 模型在不同使用層級的定價:

ModelBase Input Tokens5m Cache Writes1h Cache WritesCache Hits & RefreshesOutput Tokens
Claude Opus 4$15 / MTok$18.75 / MTok$30 / MTok$1.50 / MTok$75 / MTok
Claude Sonnet 4$3 / MTok$3.75 / MTok$6 / MTok$0.30 / MTok$15 / MTok
Claude Sonnet 3.7$3 / MTok$3.75 / MTok$6 / MTok$0.30 / MTok$15 / MTok
Claude Sonnet 3.5$3 / MTok$3.75 / MTok$6 / MTok$0.30 / MTok$15 / MTok
Claude Haiku 3.5$0.80 / MTok$1 / MTok$1.6 / MTok$0.08 / MTok$4 / MTok
Claude Opus 3$15 / MTok$18.75 / MTok$30 / MTok$1.50 / MTok$75 / MTok
Claude Haiku 3$0.25 / MTok$0.30 / MTok$0.50 / MTok$0.03 / MTok$1.25 / MTok

MTok = 百萬個標記。「基本輸入標記」列顯示標準輸入定價,「快取寫入」和「快取命中」是特定於提示快取的,而「輸出標記」顯示輸出定價。

特定功能定價

批次處理

批次 API 允許異步處理大量請求,輸入和輸出標記均享有 50% 的折扣。

ModelBatch inputBatch output
Claude Opus 4$7.50 / MTok$37.50 / MTok
Claude Sonnet 4$1.50 / MTok$7.50 / MTok
Claude Sonnet 3.7$1.50 / MTok$7.50 / MTok
Claude Sonnet 3.5$1.50 / MTok$7.50 / MTok
Claude Haiku 3.5$0.40 / MTok$2 / MTok
Claude Opus 3$7.50 / MTok$37.50 / MTok
Claude Haiku 3$0.125 / MTok$0.625 / MTok

有關批次處理的更多信息,請參閱我們的批次處理文檔

工具使用定價

Tool use requests are priced based on:

  1. The total number of input tokens sent to the model (including in the tools parameter)
  2. The number of output tokens generated
  3. For server-side tools, additional usage-based pricing (e.g., web search charges per search performed)

Client-side tools are priced the same as any other Claude API request, while server-side tools may incur additional charges based on their specific usage.

The additional tokens from tool use come from:

  • The tools parameter in API requests (tool names, descriptions, and schemas)
  • tool_use content blocks in API requests and responses
  • tool_result content blocks in API requests

When you use tools, we also automatically include a special system prompt for the model which enables tool use. The number of tool use tokens required for each model are listed below (excluding the additional tokens listed above). Note that the table assumes at least 1 tool is provided. If no tools are provided, then a tool choice of none uses 0 additional system prompt tokens.

ModelTool choiceTool use system prompt token count
Claude Opus 4auto, none
any, tool
346 tokens
313 tokens
Claude Sonnet 4auto, none
any, tool
346 tokens
313 tokens
Claude Sonnet 3.7auto, none
any, tool
346 tokens
313 tokens
Claude Sonnet 3.5 (Oct)auto, none
any, tool
346 tokens
313 tokens
Claude Sonnet 3.5 (June)auto, none
any, tool
294 tokens
261 tokens
Claude Haiku 3.5auto, none
any, tool
264 tokens
340 tokens
Claude Opus 3auto, none
any, tool
530 tokens
281 tokens
Claude Sonnet 3auto, none
any, tool
159 tokens
235 tokens
Claude Haiku 3auto, none
any, tool
264 tokens
340 tokens

These token counts are added to your normal input and output tokens to calculate the total cost of a request.

有關當前每個模型的價格,請參考上面的模型定價部分。

有關工具使用實施和最佳實踐的更多信息,請參閱我們的工具使用文檔

代理使用案例定價示例

在使用 Claude 構建應用時,了解代理應用的定價至關重要。這些真實世界的例子可以幫助您估算不同代理模式的成本。

客戶支持代理示例

在構建客戶支持代理時,成本可能會這樣分解:

處理 10,000 個支持工單的計算示例:

  • 每次對話平均約 3,700 個標記
  • 使用 Claude Sonnet 4,輸入 3/MTok,輸出3/MTok,輸出 15/MTok
  • 總成本:每 10,000 個工單約 $22.20

有關此計算的詳細說明,請參閱我們的客戶支持代理指南

一般代理工作流程定價

對於具有多個步驟的更複雜代理架構:

  1. 初始請求處理

    • 典型輸入:500-1,000 個標記
    • 處理成本:每個請求約 $0.003
  2. 記憶和上下文檢索

    • 檢索的上下文:2,000-5,000 個標記
    • 每次檢索成本:每次操作約 $0.015
  3. 行動規劃和執行

    • 規劃標記:1,000-2,000
    • 執行反饋:500-1,000
    • 綜合成本:每個行動約 $0.045

有關代理定價模式的全面指南,請參閱我們的代理使用案例指南

成本優化策略

使用 Claude 構建代理時:

  1. 使用適當的模型:簡單任務選擇 Haiku,複雜推理選擇 Sonnet
  2. 實施提示快取:減少重複上下文的成本
  3. 批量操作:對非時間敏感的任務使用批次 API
  4. 監控使用模式:追蹤標記消耗以識別優化機會

對於高容量代理應用,請考慮聯繫我們的企業銷售團隊以獲取定制定價安排。

其他定價考慮因素

速率限制

速率限制因使用層級而異,影響您可以發出的請求數量:

  • 第 1 層:入門級使用,具有基本限制
  • 第 2 層:增加的限制,適用於成長中的應用
  • 第 3 層:更高的限制,適用於已建立的應用
  • 第 4 層:最高標準限制
  • 企業版:可提供定制限制

有關詳細的速率限制信息,請參閱我們的速率限制文檔

批量折扣

高容量用戶可能獲得批量折扣。這些折扣是根據具體情況協商的。

  • 標準層級使用上述顯示的定價
  • 企業客戶可以聯繫銷售獲取定制定價
  • 學術和研究折扣可能提供

企業定價

對於有特定需求的企業客戶:

  • 定制速率限制
  • 批量折扣
  • 專屬支持
  • 定制條款

通過 sales@anthropic.comAnthropic Console 聯繫我們的銷售團隊,討論企業定價選項。

計費和付款

  • 每月根據實際使用量計算費用
  • 以美元處理付款
  • 提供信用卡和發票選項
  • 可在 Anthropic Console 中追蹤使用情況

常見問題

如何計算標記使用量?

標記是模型處理的文本片段。粗略估計,在英語中,1 個標記大約是 4 個字符或 0.75 個單詞。確切數量因語言和內容類型而異。

是否有免費層級或試用版?

新用戶會收到少量免費額度來測試 API。聯繫銷售了解有關企業評估的延長試用信息。

折扣如何疊加?

批次 API 和提示快取折扣可以組合使用。例如,同時使用這兩個功能與標準 API 調用相比可以提供顯著的成本節省。

接受哪些付款方式?

我們接受標準帳戶的主要信用卡。企業客戶可以安排發票和其他付款方式。

有關定價的其他問題,請聯繫 support@anthropic.com