Note: Calculation is approximate based on public data. Prices may change, check official websites.
This calculator helps you estimate the cost of using Anthropic's Claude 3.5 Haiku model. It is based on a context window of 200,000 tokens.
Pricing Structure:
- Input Tokens: $0.80 per 1 million tokens
- Output Tokens: $4.00 per 1 million tokens
How it works:
Simply enter the number of input tokens and output tokens you expect for your requests, along with the number of requests. Optionally, you can calculate the cost in EUR by enabling the currency conversion and providing the current exchange rate.
Formula:
Total Cost = (Number of Input Tokens * Cost per Input Token) + (Number of Output Tokens * Cost per Output Token)
Where:
- Cost per Input Token = $0.80 / 1,000,000
- Cost per Output Token = $4.00 / 1,000,000
Example:
If you use 100,000 input tokens, 50,000 output tokens, and make 10 requests:
- Input Cost = (100,000 * $0.80 / 1,000,000) * 10 = $0.08 * 10 = $0.80
- Output Cost = (50,000 * $4.00 / 1,000,000) * 10 = $0.20 * 10 = $2.00
- Total Cost = $0.80 + $2.00 = $2.80
Note: This calculation is an estimate. Actual costs may vary based on usage patterns and any potential updates to pricing by Anthropic.