Submit a tool ↗
← All free tools

Free AI API Cost Calculator

Estimate the token-based cost of a text-model API workload. Enter the current input and output prices from the provider's official pricing page; the calculator does not fetch live prices.

Estimate your API spend

Defaults are illustrative, not current prices for any provider.

$4.00Input cost
$4.00Output cost
$8.00Total estimate

Formula: requests × ((input tokens × input rate + output tokens × output rate) ÷ 1,000,000). Excludes additional fees and taxes.

How do you use this tool?

  1. Enter the average billed input and output tokens per request.
  2. Enter each provider's current USD price per million tokens, then your request count.
  3. Review the estimated input, output and total cost. Compare a second scenario by changing the rates or token counts.

What are some practical examples?

  • Illustrative rates only: 2,000 input tokens and 500 output tokens at $2 and $8 per million, for 1,000 requests, cost $8 in this simplified model.
  • For document analysis, count the document text and instructions in input tokens, and the generated answer in output tokens. Add repeated context where applicable.

Frequently asked questions

Does the calculator include every API charge?

No. It estimates basic text-token charges only. Cached tokens, reasoning tokens, batch discounts, tool calls, images, storage, taxes and other charges can differ.

Where do I find prices?

Use the official pricing page for the exact model and billing mode. Rates can change, so record the date and check again before committing to a budget.

Are token counts exact?

Only if you supply the provider's measured billed counts. Tokenization varies by model and language; usage records are preferable to a rough estimate.

What should you try next?

Evaluate AI document workflows

All seven free browser tools