LLM API Cost Calculator

Enter your monthly usage and compare what each model would cost.

ModelInput $/1MOutput $/1MMonthly cost
Loading prices…

How the cost is calculated

Monthly cost = (input tokens × input price) + (output tokens × output price), with prices quoted per 1 million tokens. If you set a cached share, that portion of your input is billed at the model's cache-read price instead of the full input price. Batch mode uses each provider's asynchronous batch prices, which are typically about half the standard rate, and ignores the cache setting.

Estimating your token usage

In English, one token is roughly four characters, or about three quarters of a word. A 1,000-word prompt is therefore around 1,300 tokens. Check the usage fields in your provider's API responses for real numbers, since system prompts, chat history, and tool definitions all count as input. Many applications send far more input than they receive as output, so the input price often matters as much as the output price.

Frequently asked questions

Prices are list prices in USD for standard (non-long-context) requests and may change without notice. Long-context surcharges, taxes, and discounts are not included. Always confirm with the provider's official pricing page before you commit. Price data: LLMRates (CC BY 4.0).

This page uses Google Analytics to count visits. See the privacy policy. From Priorstack.