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

-

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.

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.