LLM Token Cost Calculator

Estimate per-request, batch, and monthly LLM token costs from source-dated model presets or custom token prices.

Save

Inputs

tokens
tokens
requests
requests/month

Your values stay on this device.

Results

Cost Per Request

Estimated input plus output token cost for one request.

Input Cost$0.00
Output Cost$0.00
Batch Cost$3.00
Monthly Cost$150.00

Report

Export and share

Document

Copy and share

Assumptions

  • Preset prices are checked-in snapshots and can become stale.
  • Custom prices are entered per one million tokens.
  • Each request uses the same average input and output token counts.

Sensitivity preview

Input Tokens -10%: Cost Per Request $0.00

Input Tokens Current: Cost Per Request $0.00

Input Tokens +10%: Cost Per Request $0.00

Related Tools

View All

About this LLM Token Cost Calculator

LLM pricing is usually based on separate input and output token rates. This calculator helps translate source-dated model presets or custom token rates into per-call, batch, and monthly budget estimates.

When to use it

  • Budget a new AI feature before production launch.
  • Compare shorter prompts against longer retrieval-augmented prompts.
  • Estimate one-time batch processing and recurring monthly spend.
  • Check whether output length or context size is driving cost.

How to use this calculator

  1. Enter the average input and output tokens for one request.
  2. Choose a source-dated model pricing preset or select custom manual prices.
  3. Review or enter prices per million input and output tokens.
  4. Add the number of requests in a batch and the expected monthly request volume.
  5. Review the per-request cost first, then use the batch and monthly estimates for planning.

Key assumptions

  • Preset prices are checked-in snapshots and can become stale.
  • Custom prices are entered per one million tokens.
  • Each request uses the same average input and output token counts.
  • The estimate does not include storage, vector search, moderation, retries, taxes, or minimum fees.
  • All calculations run locally in the browser.

Dataset sources

OpenAI API pricing
Effective date
2026-05-05
Last reviewed
2026-05-05

Use the current provider pricing page or contract terms before making purchasing decisions.

Public provider pricing page; rates can change without notice.

Accuracy and testing

Review formula sources, default test cases, assumptions, unit handling, rounding rules, and changelog for this calculator.

View accuracy page

How this calculator works

The calculator prices one request by multiplying input tokens by the input price per million tokens and output tokens by the output price per million tokens. It then multiplies that per-request cost by the request counts you provide.

Inputs explained

Input Tokens

Prompt, system, context, tool, and retrieval tokens sent into the model for one average request.

Output Tokens

Generated tokens returned by the model for one average request.

Model pricing preset

A checked-in pricing snapshot with source metadata. Choose custom if your account, vendor, or contract differs.

Custom prices per million

Manual prices used only when the preset is set to custom.

Requests

A one-time batch size, useful for estimating a test run, migration, or backfill.

Monthly Requests

Expected monthly volume for budgeting recurring usage.

Understanding your results

Cost per request is the best unit for comparing prompt designs or models. Batch cost helps price a planned run, while monthly cost shows the recurring budget impact if average token use stays similar.

Example scenarios

Support Chat Estimate

A chat workflow averaging 1,200 input tokens and 350 output tokens can be multiplied by expected monthly conversations to estimate support automation spend.

Document Processing Batch

A batch of 5,000 document summaries can be priced before the run by entering average tokens and request count.

Key Features

  • Instant Calculation
  • Private & Secure
  • Mobile Optimized

Tips & Best Practices

  • Use recent usage logs to choose realistic average token counts.
  • Track input and output tokens separately because their prices often differ.
  • Add a buffer for retries, longer conversations, and peak usage.
  • Keep sensitive prompt text out of calculators; token counts are enough.

Frequently Asked Questions

Does this calculator use current provider prices?
No. Enter the prices from your provider account, invoice, or contract so the estimate matches your actual model and region.
Are input and output tokens priced the same?
Not always. Many models charge different rates for prompt tokens and generated tokens, so this calculator keeps them separate.
Does any prompt text leave my browser?
No. The calculator only uses the numeric values you type and does not need prompt content or private data.