本頁面提供 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 = 百萬個 token。「基本輸入 Token」欄顯示標準輸入定價,「快取寫入」和「快取命中」專用於提示快取,「輸出 Token」顯示輸出定價。

功能特定定價

批次處理

Batch API 允許大量請求的非同步處理,輸入和輸出 token 均享有 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.

如需目前各模型的價格,請參考上方的模型定價部分。

如需更多關於工具使用實作和最佳實務的資訊,請參閱我們的工具使用文件

特定工具定價

Bash 工具

The bash tool adds 245 input tokens to your API calls.

Additional tokens are consumed by:

  • Command outputs (stdout/stderr)
  • Error messages
  • Large file contents

請參閱工具使用定價以了解完整的定價詳情。

程式碼執行工具

The code execution tool usage is tracked separately from token usage. Execution time is a minimum of 5 minutes. If files are included in the request, execution time is billed even if the tool is not used due to files being preloaded onto the container.

Pricing: $0.05 per session-hour.

文字編輯器工具

The text editor tool uses the same pricing structure as other tools used with Claude. It follows the standard input and output token pricing based on the Claude model you’re using.

In addition to the base tokens, the following additional input tokens are needed for the text editor tool:

ToolAdditional input tokens
text_editor_20250429 (Claude 4)700 tokens
text_editor_20250124 (Claude Sonnet 3.7)700 tokens
text_editor_20241022 (Claude Sonnet 3.5)700 tokens

請參閱工具使用定價以了解完整的定價詳情。

網路搜尋工具

Web search usage is charged in addition to token usage:

"usage": {
  "input_tokens": 105,
  "output_tokens": 6039,
  "cache_read_input_tokens": 7123,
  "cache_creation_input_tokens": 7345,
  "server_tool_use": {
    "web_search_requests": 1
  }
}

Web search is available on the Anthropic API for $10 per 1,000 searches, plus standard token costs for search-generated content. Web search results retrieved throughout a conversation are counted as input tokens, in search iterations executed during a single turn and in subsequent conversation turns.

Each web search counts as one use, regardless of the number of results returned. If an error occurs during web search, the web search will not be billed.

電腦使用工具

Computer use follows the standard tool use pricing. When using the computer use tool:

System prompt overhead: The computer use beta adds 466-499 tokens to the system prompt

Computer use tool token usage:

ModelInput tokens per tool definition
Claude 4 / Sonnet 3.7735 tokens
Claude Sonnet 3.5683 tokens

Additional token consumption:

  • Screenshot images (see Vision pricing)
  • Tool execution results returned to Claude

If you’re also using bash or text editor tools alongside computer use, those tools have their own token costs as documented in their respective pages.

代理使用案例定價範例

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

客戶支援代理範例

在建構客戶支援代理時,成本可能如下分解:

處理 10,000 張支援工單的範例計算:

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

如需此計算的詳細說明,請參閱我們的客戶支援代理指南

一般代理工作流程定價

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

  1. 初始請求處理

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

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

    • 規劃 token:1,000-2,000
    • 執行回饋:500-1,000
    • 合併成本:每次行動約 $0.045

如需代理定價模式的綜合指南,請參閱我們的代理使用案例指南

成本最佳化策略

在使用 Claude 建構代理時:

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

對於高容量代理應用程式,請考慮聯繫我們的企業銷售團隊以獲得客製化定價安排。

其他定價考量

速率限制

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

  • 第 1 層:基本限制的入門級使用
  • 第 2 層:為成長中的應用程式提供增加的限制
  • 第 3 層:為已建立的應用程式提供更高的限制
  • 第 4 層:最大標準限制
  • 企業級:可提供客製化限制

如需詳細的速率限制資訊,請參閱我們的速率限制文件

大量折扣

大量使用者可能享有大量折扣。這些折扣是根據個案進行協商。

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

企業定價

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

  • 客製化速率限制
  • 大量折扣
  • 專屬支援
  • 客製化條款

請透過 sales@anthropic.com 或透過 Anthropic Console 聯繫我們的銷售團隊,討論企業定價選項。

帳單和付款

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

常見問題

如何計算 token 使用量?

Token 是模型處理的文字片段。粗略估計,1 個 token 大約等於 4 個字元或英文中的 0.75 個單字。確切數量因語言和內容類型而異。

是否有免費層級或試用?

新使用者會收到少量免費點數來測試 API。聯繫銷售以了解企業評估的延長試用資訊。

折扣如何疊加?

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

接受哪些付款方式?

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

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