Anthropic Claude 3.5 Sonnet Token Cost Calculator

Model: Anthropic: Claude 3.5 Sonnet, Context: 200000, Cost: $3 per 1M input tokens, $15 per 1M output tokens

Note: Calculation is approximate based on public data. Prices may change, check official websites.

Effortlessly calculate the cost of using Anthropic's Claude 3.5 Sonnet model for your AI applications. This calculator helps you estimate expenses based on the number of input and output tokens processed, as well as the number of requests made.

Understanding the Costs:

  • Input Tokens: $3 per 1 million tokens
  • Output Tokens: $15 per 1 million tokens
  • The context window for Claude 3.5 Sonnet is up to 200,000 tokens.

Formula:

Total Cost = (Number of Input Tokens / 1,000,000 * Input Cost per Token) + (Number of Output Tokens / 1,000,000 * Output Cost per Token)

Example:

If you use 50,000 input tokens and generate 10,000 output tokens in a single request:

  • Input Cost = (50,000 / 1,000,000) * $3 = $0.15
  • Output Cost = (10,000 / 1,000,000) * $15 = $0.15
  • Total Cost = $0.15 + $0.15 = $0.30

Disclaimer: Calculations are approximate and based on publicly available pricing. Actual costs may vary.