AI API Cost Calculator

Estimate LLM API cost from your own token prices, token usage and request volume so model pricing never goes stale.

FreeNo signupRuns in your browser

Enter your values

Use the current provider price
Use the current provider price
Average uncached input tokens
Average output tokens
Daily, monthly or project total
Optional share of input billed at cached multiplier
Example: 0.1 means 10% of normal input price

How to use AI API Cost Calculator

  1. Enter Input price / 1M tokens ($), Output price / 1M tokens ($), Input tokens / request, Output tokens / request, Requests in period, Cached input (%).
  2. Choose the options that match your task and leave genuinely optional fields blank when they do not apply.
  3. Select Calculate / Run and review the result panel.
  4. Check units, assumptions and any limitations shown on the page before using the result for an important decision.

About this tool

Estimate LLM API cost from your own token prices, token usage and request volume so model pricing never goes stale. Use the form above to enter Input price / 1M tokens ($), Output price / 1M tokens ($), Input tokens / request, Output tokens / request, Requests in period, Cached input (%). The calculation or transformation runs locally in your browser.

Method

Cost is calculated separately for normal input, cached input and output tokens using the per-million-token rates you enter, then multiplied by request volume.

Frequently asked questions

What does AI API Cost Calculator do?

Estimate LLM API cost from your own token prices, token usage and request volume so model pricing never goes stale.

What information do I need?

The form is built around these inputs: Input price / 1M tokens ($), Output price / 1M tokens ($), Input tokens / request, Output tokens / request, Requests in period, Cached input (%).

Does my input get uploaded?

For this tool, the calculation or transformation runs in your browser. Your entered values are not intentionally sent to ToolboxKart for processing.

Is this tool free to use?

Yes. You can use this ToolboxKart tool without creating an account.

Related tools