AI

ChatGPT API Cost Calculator

Estimate ChatGPT API cost from input tokens, output tokens, request count, and per-million token prices.

What does this calculator answer?

ChatGPT API cost is usually input token cost plus output token cost. At scale, small changes in prompt length or response length can materially change monthly spend.

Inputs

Results

Estimated total cost

-

Input cost

-

Output cost

-

Before you enter values

How to read the result

  1. Start with 'Estimated total cost'. This is the main output for the current assumptions.
  2. Then compare 'Input cost' so you do not judge the scenario from one number alone.
  3. Then compare 'Output cost' so you do not judge the scenario from one number alone.

Formula

Total cost = input tokens × requests ÷ 1,000,000 × input price + output tokens × requests ÷ 1,000,000 × output price

Example

With 1,200 input tokens, 500 output tokens, 10,000 requests, $1.25 input pricing and $10 output pricing, estimated total cost is about $65.

Common mistakes

Sources and pricing

Prices and policies can change. Confirm official sources before budgeting.

Important note

Model prices change. Confirm current rates on the official OpenAI pricing page before budgeting.

Review and update policy

This page was reviewed on August 6, 2026 for formula wording, default inputs, FAQ coverage, and related calculator links. Investing and AI cost calculators do not pull live market prices or account-specific pricing, so you should enter the latest values yourself.

When official sources are relevant, source links are provided on the page. If a formula, rate, or source is outdated, send the page URL and supporting reference through the contact page.

Frequently Asked Questions

Many AI models have different prices for input and output tokens.
Start with users × average actions per user, then add retries, background jobs, and testing traffic.
No. This calculator focuses on text token costs only.