File: pricing.md | Updated: 11/15/2025
Agent Skills are now available! Learn more about extending Claude's capabilities with Agent Skills .
English
Search...
Ctrl K
Search...
Navigation
Models & pricing
Pricing
Home Developer Guide API Reference Model Context Protocol (MCP) Resources Release Notes
On this page
This page provides detailed pricing information for Anthropic’s models and features. All prices are in USD. For the most current pricing information, please visit claude.com/pricing .
The following table shows pricing for all Claude models across different usage tiers:
| Model | Base Input Tokens | 5m Cache Writes | 1h Cache Writes | Cache Hits & Refreshes | Output Tokens | | --- | --- | --- | --- | --- | --- | | Claude Opus 4.1 | $15 / MTok | $18.75 / MTok | $30 / MTok | $1.50 / MTok | $75 / MTok | | Claude Opus 4 | $15 / MTok | $18.75 / MTok | $30 / MTok | $1.50 / MTok | $75 / MTok | | Claude Sonnet 4.5 | $3 / MTok | $3.75 / MTok | $6 / MTok | $0.30 / MTok | $15 / MTok | | Claude Sonnet 4 | $3 / MTok | $3.75 / MTok | $6 / MTok | $0.30 / MTok | $15 / MTok | | Claude Sonnet 3.7 (deprecated<br>) | $3 / MTok | $3.75 / MTok | $6 / MTok | $0.30 / MTok | $15 / MTok | | Claude Haiku 4.5 | $1 / MTok | $1.25 / MTok | $2 / MTok | $0.10 / MTok | $5 / MTok | | Claude Haiku 3.5 | $0.80 / MTok | $1 / MTok | $1.6 / MTok | $0.08 / MTok | $4 / MTok | | Claude Opus 3 (deprecated<br>) | $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 = Million tokens. The “Base Input Tokens” column shows standard input pricing, “Cache Writes” and “Cache Hits” are specific to prompt caching , and “Output Tokens” shows output pricing. Prompt caching offers both 5-minute (default) and 1-hour cache durations to optimize costs for different use cases.The table above reflects the following pricing multipliers for prompt caching:
Claude models are available on AWS Bedrock and Google Vertex AI . For official pricing, visit:
Regional endpoint pricing for Claude 4.5 models and beyondStarting with Claude Sonnet 4.5 and Haiku 4.5, AWS Bedrock and Google Vertex AI offer two endpoint types:
Regional endpoints include a 10% premium over global endpoints. The Claude API (1P) is global by default and unaffected by this change. The Claude API is global-only (equivalent to the global endpoint offering and pricing from other providers).Scope: This pricing structure applies to Claude Sonnet 4.5, Haiku 4.5, and all future models. Earlier models (Claude Sonnet 4, Opus 4, and prior releases) retain their existing pricing.For implementation details and code examples:
Batch processing
The Batch API allows asynchronous processing of large volumes of requests with a 50% discount on both input and output tokens.
| Model | Batch input | Batch output | | --- | --- | --- | | Claude Opus 4.1 | $7.50 / MTok | $37.50 / MTok | | Claude Opus 4 | $7.50 / MTok | $37.50 / MTok | | Claude Sonnet 4.5 | $1.50 / MTok | $7.50 / MTok | | Claude Sonnet 4 | $1.50 / MTok | $7.50 / MTok | | Claude Sonnet 3.7 (deprecated<br>) | $1.50 / MTok | $7.50 / MTok | | Claude Haiku 4.5 | $0.50 / MTok | $2.50 / MTok | | Claude Haiku 3.5 | $0.40 / MTok | $2 / MTok | | Claude Opus 3 (deprecated<br>) | $7.50 / MTok | $37.50 / MTok | | Claude Haiku 3 | $0.125 / MTok | $0.625 / MTok |
For more information about batch processing, see our batch processing documentation .
Long context pricing
When using Claude Sonnet 4 or Sonnet 4.5 with the 1M token context window enabled , requests that exceed 200K input tokens are automatically charged at premium long context rates:
The 1M token context window is currently in beta for organizations in usage tier 4 and organizations with custom rate limits. The 1M token context window is only available for Claude Sonnet 4 and Sonnet 4.5.
| ≤ 200K input tokens | > 200K input tokens | | --- | --- | | Input: $3 / MTok | Input: $6 / MTok | | Output: $15 / MTok | Output: $22.50 / MTok |
Long context pricing stacks with other pricing modifiers:
Even with the beta flag enabled, requests with fewer than 200K input tokens are charged at standard rates. If your request exceeds 200K input tokens, all tokens incur premium pricing.The 200K threshold is based solely on input tokens (including cache reads/writes). Output token count does not affect pricing tier selection, though output tokens are charged at the higher rate when the input threshold is exceeded.
To check if your API request was charged at the 1M context window rates, examine the usage object in the API response:
Copy
{
"usage": {
"input_tokens": 250000,
"cache_creation_input_tokens": 0,
"cache_read_input_tokens": 0,
"output_tokens": 500
}
}
Calculate the total input tokens by summing:
input_tokenscache_creation_input_tokens (if using prompt caching)cache_read_input_tokens (if using prompt caching)If the total exceeds 200,000 tokens, the entire request was billed at 1M context rates. For more information about the usage object, see the API response documentation
.
Tool use pricing
Tool use requests are priced based on:
tools parameter)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:
tools parameter in API requests (tool names, descriptions, and schemas)tool_use content blocks in API requests and responsestool_result content blocks in API requestsWhen 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.
| Model | Tool choice | Tool use system prompt token count |
| --- | --- | --- |
| Claude Opus 4.1 | auto, none<br><br>* * <br><br>any, tool | 346 tokens<br><br> * <br><br>313 tokens |
| Claude Opus 4 | auto, none<br><br> * <br><br>any, tool | 346 tokens<br><br> * <br><br>313 tokens |
| Claude Sonnet 4.5 | auto, none<br><br> * <br><br>any, tool | 346 tokens<br><br> * <br><br>313 tokens |
| Claude Sonnet 4 | auto, none<br><br> * <br><br>any, tool | 346 tokens<br><br> * <br><br>313 tokens |
| Claude Sonnet 3.7 (deprecated<br>) | auto, none<br><br> * <br><br>any, tool | 346 tokens<br><br> * <br><br>313 tokens |
| Claude Haiku 4.5 | auto, none<br><br> * <br><br>any, tool | 346 tokens<br><br> * <br><br>313 tokens |
| Claude Haiku 3.5 | auto, none<br><br> * <br><br>any, tool | 264 tokens<br><br> * <br><br>340 tokens |
| Claude Opus 3 (deprecated<br>) | auto, none<br><br> * <br><br>any, tool | 530 tokens<br><br> * <br><br>281 tokens |
| Claude Sonnet 3 | auto, none<br><br> * <br><br>any, tool | 159 tokens<br><br> * <br><br>235 tokens |
| Claude Haiku 3 | auto, none<br><br> * <br><br>any, tool | 264 tokens<br><br> * *<br><br>340 tokens |
These token counts are added to your normal input and output tokens to calculate the total cost of a request. For current per-model prices, refer to our model pricing section above. For more information about tool use implementation and best practices, see our tool use documentation .
Specific tool pricing
Bash tool
The bash tool adds 245 input tokens to your API calls. Additional tokens are consumed by:
See tool use pricing for complete pricing details.
Code execution tool
Code execution tool usage is tracked separately from token usage. Execution time has 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. Each organization receives 50 free hours of usage with the code execution tool per day. Additional usage beyond the first 50 hours is billed at $0.05 per hour, per container.
Text editor tool
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:
| Tool | Additional input tokens |
| --- | --- |
| text_editor_20250429 (Claude 4.x) | 700 tokens |
| text_editor_20250124 (Claude Sonnet 3.7 (deprecated<br>)) | 700 tokens |
See tool use pricing for complete pricing details.
Web search tool
Web search usage is charged in addition to token usage:
Copy
"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 Claude 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.
Web fetch tool
Web fetch usage has no additional charges beyond standard token costs:
Copy
"usage": {
"input_tokens": 25039,
"output_tokens": 931,
"cache_read_input_tokens": 0,
"cache_creation_input_tokens": 0,
"server_tool_use": {
"web_fetch_requests": 1
}
}
The web fetch tool is available on the Claude API at no additional cost. You only pay standard token costs for the fetched content that becomes part of your conversation context. To protect against inadvertently fetching large content that would consume excessive tokens, use the max_content_tokens parameter to set appropriate limits based on your use case and budget considerations. Example token usage for typical content:
Computer use tool
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:
| Model | Input tokens per tool definition | | --- | --- | | Claude 4.x models | 735 tokens | | Claude Sonnet 3.7 (deprecated<br>) | 735 tokens |
Additional token consumption:
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.
Understanding pricing for agent applications is crucial when building with Claude. These real-world examples can help you estimate costs for different agent patterns.
Customer support agent example
When building a customer support agent, here’s how costs might break down:
Example calculation for processing 10,000 support tickets:
For a detailed walkthrough of this calculation, see our customer support agent guide .
General agent workflow pricing
For more complex agent architectures with multiple steps:
For a comprehensive guide on agent pricing patterns, see our agent use cases guide .
Cost optimization strategies
When building agents with Claude:
For high-volume agent applications, consider contacting our enterprise sales team for custom pricing arrangements.
Rate limits
Rate limits vary by usage tier and affect how many requests you can make:
For detailed rate limit information, see our rate limits documentation . For higher rate limits or custom pricing arrangements, contact our sales team .
Volume discounts
Volume discounts may be available for high-volume users. These are negotiated on a case-by-case basis.
Enterprise pricing
For enterprise customers with specific needs:
Contact our sales team at sales@anthropic.com or through the Claude Console to discuss enterprise pricing options.
How is token usage calculated? Tokens are pieces of text that models process. As a rough estimate, 1 token is approximately 4 characters or 0.75 words in English. The exact count varies by language and content type. Are there free tiers or trials? New users receive a small amount of free credits to test the API. Contact sales for information about extended trials for enterprise evaluation. How do discounts stack? Batch API and prompt caching discounts can be combined. For example, using both features together provides significant cost savings compared to standard API calls. What payment methods are accepted? We accept major credit cards for standard accounts. Enterprise customers can arrange invoicing and other payment methods. For additional questions about pricing, contact support@anthropic.com .
Was this page helpful?
YesNo
Model deprecations Features overview
Assistant
Responses are generated using AI and may contain mistakes.