LLM Pricing Calculator

Instantly Calculate & Compare Costs for Leading LLM APIs

Awaiting Calculation...

Select a model and enter amounts on the left

What is the LLM Pricing Calculator?

The LLM Pricing Calculator is a free, interactive web tool designed for developers, project managers, and AI enthusiasts. It provides a simple and accurate way to estimate the API costs for a wide range of Large Language Models from top providers like OpenAI, Anthropic, Google, and more. By inputting the number of tokens, you can instantly see a detailed cost breakdown, helping you budget your projects and choose the most cost-effective model for your needs.

How to Use

  1. Select a Model: Choose your desired LLM from the dropdown menu. The list is grouped by provider for easy navigation.
  2. Enter Token Amounts: Input the number of prompt (input) tokens and completion (output) tokens you expect to use. For models billed by other units (like characters or minutes), the labels will update automatically.
  3. View Instant Results: The cost is calculated in real-time and displayed on the right, showing a clear breakdown of input, output, and total costs.

Frequently Asked Questions (FAQ)

What is a 'token'?

In the context of LLMs, a token is a piece of a word. For English text, 1 token is approximately 4 characters or 0.75 words. Models process and are priced based on the number of tokens in the input and output.

Why do input and output prices differ?

Generating text (output) is computationally more intensive for the model than processing existing text (input). Therefore, most providers charge a higher rate for output tokens.

How often are these prices updated?

We strive to keep the pricing data as current as possible by monitoring official announcements from all listed providers. The AI pricing landscape changes rapidly, and we aim to reflect those changes promptly.

Pricing Reference Table

Model Name Provider Max Context Input Price Output Price