Note: Calculation is approximate based on public data. Prices may change, check official websites.
This calculator helps you estimate the cost of using the Anthropic Claude 3 Haiku large language model.
Claude 3 Haiku is known for its speed and affordability, making it a great choice for a variety of applications.
Pricing:
- Input Tokens: $0.25 per 1 million tokens
- Output Tokens: $1.25 per 1 million tokens
Context Window: 200,000 tokens
Formula for cost calculation:
(Number of Input Tokens / 1,000,000) * $0.25 + (Number of Output Tokens / 1,000,000) * $1.25
Example: If you process 500,000 input tokens and generate 200,000 output tokens in a single request:
(500,000 / 1,000,000) * $0.25 + (200,000 / 1,000,000) * $1.25 = $0.125 + $0.25 = $0.375
Note: Calculation is approximate based on public data. Prices may change, check official websites.