← Back to Calculator

About

What is this?

The AI Model Cost Calculator is a free, no-sign-up tool that helps developers and teams estimate their monthly costs for using large language model APIs. You pick the models, enter your expected token usage, and get an instant cost comparison — all calculated in your browser.

We cover 19 models across 9 providers including Anthropic, OpenAI, Google, DeepSeek, Alibaba, Moonshot AI, MiniMax, Mistral, and Meta.

How the math works

The calculator uses the standard API pricing formula:

Cost = (input_tokens / 1,000,000) × input_price

      + (output_tokens / 1,000,000) × output_price

      + cache_discounts + batch_discounts

All calculations run locally in your browser. We never send your usage data anywhere.

Where does the pricing data come from?

Every price in this calculator is manually sourced from each provider's official API pricing page. These are the sources we use:

How often are prices updated?

We check provider pricing pages weekly and update the data as soon as changes are detected. The “Updated” date on the calculator reflects the most recent data change.

That said, prices change faster than any single person can track. If you spot an outdated price, please let us know through the Contact page — we'll fix it within 24 hours.

Disclaimer

All cost estimates are for informational purposes only. API pricing varies by deployment region, commitment level (on-demand vs. reserved), and negotiated enterprise agreements. Always verify with your provider's dashboard and contract before making purchasing decisions.