Skip to main content
Updated Jul 2026

OpenAI API Cost, Explained Properly

API pricing looks confusing because it's quoted per million tokens. Once you can convert that into what a real query costs, deciding between pay-per-use and a flat subscription becomes easy.

Beginner
6 minutes
6 steps

Before You Start

  • No prior API experience needed
  • An OpenAI platform account if you want to check live pricing and usage yourself
1

Understand what you're actually billed for: tokens

OpenAI bills per token, not per message. A token is a chunk of text — roughly 4 characters, or about 0.75 of a word in English. As a working rule:

  • 750 words ≈ 1,000 tokens
  • A typical article of 1,500 words ≈ 2,000 tokens
  • A short paragraph ≈ 100 tokens

Every request bills two separate amounts:

  • Input tokens — everything you send: your instruction plus any text you pasted or selected
  • Output tokens — what the model writes back

Output is almost always priced higher than input, often several times higher. That single fact drives most of the practical cost advice below.

2

Convert 'per million tokens' into what one query costs

Official pricing is quoted per 1 million tokens, which makes everything look expensive until you do the division. The arithmetic:

cost = (input tokens ÷ 1,000,000 × input price) + (output tokens ÷ 1,000,000 × output price)

Work an example. Say you summarize a 1,500-word article (~2,000 input tokens) and get a 200-word summary back (~270 output tokens). Even at a relatively expensive rate of $5 per million input and $15 per million output, that is:

  • Input: 2,000 ÷ 1,000,000 × $5 = $0.01
  • Output: 270 ÷ 1,000,000 × $15 = $0.004
  • Total: about 1.4 cents

On a cheaper small model, the same job costs a small fraction of that. Rates change often, so check the current numbers on OpenAI's pricing page and plug them into the same formula.

Pro Tip

Prices trend downward over time and cheaper model tiers keep arriving. If you last checked pricing a year ago, your mental model is probably too expensive.

3

Compare honestly against a $20/month subscription

The real question is not 'is the API cheap' but 'is it cheaper than what I'd otherwise pay.' Take a flat $20/month subscription as the benchmark and work out your break-even.

If an average query costs you roughly a cent, $20 buys about 2,000 queries a month — around 65 every single day. Most people using AI for summarizing, rewriting, and explaining land nowhere near that, which is why per-token billing usually wins.

Where a subscription wins:

  • You genuinely run very high volume every day
  • You want features that only exist in the chat product, not the API
  • You'd rather have one predictable bill than variable usage

Where pay-per-token wins:

  • Bursty usage — heavy some weeks, nothing in others (quiet months cost you nothing)
  • You want to switch between providers and models per task
  • You want your data going straight to the provider with no middleman
4

Cut your cost with four habits that actually matter

Most overspending comes from a few avoidable patterns:

  1. Send less input. Select the two paragraphs you care about instead of the whole page. Input tokens are what balloon when you paste entire articles.
  2. Cap the output. Asking for 'a 3-bullet summary' rather than an open-ended answer directly reduces the more expensive half of the bill.
  3. Match the model to the task. Use a small cheap model for summarizing, formatting, and translation; save the expensive reasoning models for problems that need them. This is usually the single biggest saving.
  4. Don't resend context you don't need. Long back-and-forth threads re-send the whole conversation as input each turn, so costs climb quietly. Start fresh when the topic changes.
Pro Tip

If you only adopt one habit, make it model-matching. The gap between a small model and a frontier model on the same routine task is often 10x or more in price for output you can't distinguish.

5

Put a hard ceiling on spending

Estimating is useful; a hard cap is better. In the OpenAI platform under Settings → Limits, set a monthly budget that stops API calls when reached, plus an alert threshold below it so you get warned first.

Because the API is prepaid, your balance is itself a natural ceiling — you can simply not enable auto-recharge and top up manually when it runs out. If you do enable auto-recharge, pair it with a budget limit; that combination is the only way a bill can genuinely surprise you.

Important

Auto-recharge without a monthly budget cap will keep topping your balance up indefinitely. Set both, or neither.

6

Track real usage instead of guessing

The platform's Usage dashboard shows spend by day and by model, which quickly reveals where your money actually goes — usually one model or one habit.

If you use your key through a browser extension, it helps to see cost at the point of use. Prompt Anything Pro includes a built-in token tracker alongside its model selector, so you can watch what a given prompt costs and switch to a cheaper model when the task doesn't need the expensive one. Your key stays in your browser and requests go straight to OpenAI, so what you see billed is exactly what you sent.

Prompt Anything Pro's built-in template library with Summarize, Explain, Writing, and Translate categories

Summary

OpenAI's API bills per token — roughly 750 words per 1,000 tokens — with input and output priced separately and output costing more. Published rates are per million tokens, so divide before judging: a typical article summary lands around a cent or less. Against a flat $20/month subscription that's a break-even of roughly 2,000 queries a month, which most people never approach, so pay-per-token usually wins and costs nothing in quiet months. Keep costs down by sending less input, capping output length, and above all matching the model to the task. Then set a monthly budget limit so the ceiling is enforced rather than estimated.

Need More Help?

Get personalized AI assistance with additional tips and troubleshooting.

AI responses are generated independently and may vary

Frequently Asked Questions

Pay Pennies, Not $20 a Month

Prompt Anything Pro runs on your own API key with a built-in token tracker, so you see exactly what each prompt costs. Free to install.