LLM Token & API Cost Estimator

Calculate API charges from token totals and your provider’s per-million-token rates.

Enter details

Processed in your browser

Loading tool…

Your result

Ready when you are
Enter your input and select Calculate.

About the tool

Calculate API charges from token totals and your provider’s per-million-token rates.

Try the built-in example to see the required input format and expected result.

Using the result

The built-in example offers CSV, PDF, TXT download options. Use Copy result when the result includes text or a table.

How to use LLM Token & API Cost Estimator

  1. Select Try an example to load sample input, or enter your own details below.
  2. Input tokens per request Enter a number in the units shown in the label. Minimum: 0.
  3. Output tokens per request Enter a number in the units shown in the label. Minimum: 0.
  4. Number of requests Enter a number in the units shown in the label. Minimum: 1.
  5. Input cost per million tokens Enter a number in the units shown in the label. Minimum: 0.
  6. Output cost per million tokens Enter a number in the units shown in the label. Minimum: 0.
  7. Select Calculate and review the result. Use Reset to clear your work.

Frequently asked questions

What does LLM Token & API Cost Estimator do?

Calculate API charges from token totals and your provider’s per-million-token rates.

What input do I need?

Input tokens per request, Output tokens per request, Number of requests, Input cost per million tokens, Output cost per million tokens. Select Try an example to see the format.

How can I save my result?

The built-in example offers CSV, PDF, TXT download options. Use Copy result when the result includes text or a table.

Where does the tool process my input?

Tool processing runs in your browser.