OpenAI API cost calculator

112 of 131 models match the official page, 107 match models.devSynced 2026-12-05 13:00 UTC · Method

Calculate my cost →Compare OpenAI models side by side

At 10,000 requests a day (6,000 input and 500 output tokens each), the models below cost $255/mo to $81,000/mo without caching.

OpenAI caches repeated prompt prefixes automatically: there is nothing to mark in the request, and a cache hit is billed at 5%–10% of the input price on the models below. In our data no cache-write fee is listed for GPT-5.4 mini, so a miss costs the same as normal input, while a cache-write price of 1.25× the input rate is listed for GPT-6.2 Astra, GPT-6.2 Sol, GPT-6.1 Terra, GPT-6 Luna. GPT-5.5 Pro has no cached-input price at all, so caching saves nothing on it.

The Batch API takes 50% off input and 50% off output in exchange for asynchronous results, and cached tokens inside a batch cost 50% of the normal cached rate. Long-context rates apply above 272K for GPT-6.2 Astra, GPT-6.2 Sol, GPT-5.5 Pro, GPT-6.1 Terra, GPT-6 Luna and 15 more (input 2×, output 1.5×), to the whole request. The biggest lever is the model tier: pro models spend more compute per answer and charge far more per token, mini and nano trade quality for price, and the flagship sits in between.

The table prices one workload on each model: 10,000 requests a day with 6,000 input and 500 output tokens per request. Columns: no caching; 70% of input read from the cache and 5% written to it; every request sent through the Batch API. For the same traffic GPT-5.5 Pro costs 318× as much as GPT-6 Luna.

Estimated monthly cost by workload (USD)
ModelStandard
10,000 req/day · 6,000 in · 500 out
Calculate with your numbers → (Standard)
With prompt caching
10,000 req/day · 6,000 in · 500 out · cache 70%
Calculate with your numbers → (With prompt caching)
Batch API
10,000 req/day · 6,000 in · 500 out · Batch
Calculate with your numbers → (Batch API)
GPT-6 Luna$255/mo$144/mo$128/mo
GPT-5.4 mini$2,025/mo$1,174/mo$1,012/mo
GPT-6.1 Terra$2,550/mo$1,376/mo$1,275/mo
GPT-6.2 Sol$5,100/mo$2,751/mo$2,550/mo
GPT-6.2 Astra$20,400/mo$11,004/mo$10,200/mo
GPT-5.5 Pro$81,000/mo$81,000/mo
no cache price in data
$40,500/mo

Estimates from published per-token rates; check official pricing before budgeting. Data synced from the LiteLLM price list 2026-12-05 13:00 UTC.

All OpenAI API prices →

Cost per 1,000 requests

For 1,000 requests of 6,000 input and 500 output tokens, GPT-6 Luna costs $0.85 at standard rates, $0.48 with caching and $0.42 through the Batch API; GPT-5.5 Pro costs $270, $270 and $135. Multiply by your own request count, or put your traffic into the calculator.

How to cut the bill, in order

  1. Keep the fixed part of the prompt (instructions, tools, examples) at the start and the variable part at the end so the automatic cache matches across requests.
  2. Send similar requests close together: cache entries expire after a few minutes without use.
  3. Route by difficulty: nano for classification and extraction, mini for chat, the flagship or a pro model only for hard questions.
  4. Use the Batch API for anything that is not interactive.
  5. Cap max_tokens, and on reasoning models budget for reasoning tokens, which are billed as output (calculator, output price set to thinking). Count prompts with the token counter.

When does caching pay off for your traffic? Use the prompt caching calculator →

FAQ

Pricing

Do I need to change my code to use OpenAI prompt caching?

No. Caching is automatic once a prompt is long enough. Put fixed content (instructions, tool definitions, examples) at the start and the variable part at the end so the prefix matches across requests.

When is a pro model worth it?

When a wrong answer costs more than the extra tokens: hard reasoning, high-stakes reviews, low volume. Pro models have no cached-input price in our data, so a high-volume app pays the full input price on every request.

Should I use mini or nano?

Nano suits classification, extraction and routing at very high volume; mini handles chat and simple reasoning. Test both on your own prompts: a cheaper model that needs retries or longer prompts can end up costing more.

Are reasoning tokens billed?

Yes. Reasoning models generate hidden reasoning tokens before the answer, and those are billed as output tokens even though they are not returned. Budget for them with the calculator's output price set to thinking, and check the output token count in real responses.

What do the OpenAI API built-in tools cost?

Built-in tool fees as of 2026-11-28, on top of tokens: web search costs $10 per 1,000 calls plus the search content tokens at the model's rates ($25 per 1,000 for web search preview on non-reasoning models, with the search tokens free). File search costs $2.50 per 1,000 calls (Responses API) and $0.10 per GB per day of storage after the first free GB. Containers for Hosted Shell and Code Interpreter cost $0.03 (1 GB) to $1.92 (64 GB) per container per 20-minute session; eligible sessions are billed by the minute, 5-minute minimum. ChatKit file and image upload storage costs $0.10 per GB per day after the first free GB.

Does OpenAI data residency cost more?

Yes, for newer models. As of 2026-11-28, OpenAI's pricing page says regional processing (data residency) endpoints are charged a 10% uplift for models released on or after March 5, 2026. The prices in this calculator are the standard rates without that uplift.

Billing, credits and limits

Do ChatGPT Pro and Business include OpenAI API credits?

As of 2026-12-02, where the benefit is offered (it depends on country and enabled cohort), Pro 100, Pro 200 and Pro 500 include API credits equal to the plan price each month, and eligible ChatGPT Business workspaces with paid Standard or Premium seats get $20 per paid Standard seat and $100 per paid Premium seat, pooled and capped at $500 a month, or $6,000 per annual billing cycle when billed annually upfront. Plus and free trials do not qualify, nor do Enterprise, Edu or legacy Codex seats. The credit funds one linked API organization, expires each billing cycle and does not cover Codex usage through API keys. Details on subscriptions vs API.

Do purchased OpenAI API credits expire?

Yes. As of 2026-11-29, OpenAI's prepaid billing help article says purchased credits expire after one year (credits purchased in Japan after November 13, 2026 expire after 180 days), and OpenAI cannot extend the expiration date.

Can I get a refund for unused OpenAI API credits?

Usually not. As of 2026-11-29, OpenAI's prepaid billing help article says credits are non-refundable unless required by law or contract, or an approved exception applies; unused credits may qualify for a refund for a verified billing error, or a confirmed OpenAI service failure or incorrect account restriction.

How does OpenAI API auto recharge work?

As of 2026-11-29, per OpenAI's prepaid billing help article, auto recharge is turned on by default when you set up prepaid billing (you can turn it off). It adds credits when your balance falls below a threshold you set, up to a balance you choose; the minimum recharge is $5 and your trust tier sets the maximum. An optional monthly recharge limit caps automatic purchases only (manual purchases don't count, and it is not an API usage limit): near the limit only the remaining amount may be added, and only if it is at least the minimum; and once reached nothing more is added until next month. When credits run out, requests return the billing error credit_balance_exhausted, but access may not stop immediately; usage during the delay shows as a negative balance that is deducted from your next purchase.

What does OpenAI API error 429 insufficient_quota mean?

It is a billing or limit error, not a speed problem. As of 2026-11-29, OpenAI's error codes page says billing-related 429 errors can still have the type insufficient_quota, so check error.code: credit_balance_exhausted means your organization has no prepaid credits left (add credits on the Billing page); organization_spend_limit_exceeded or project_spend_limit_exceeded means a monthly spend limit you set was reached (raise or remove it, or wait for the monthly reset); organization_usage_limit_exceeded means OpenAI's assigned monthly usage limit was reached (request a higher limit or contact support). Retrying won't restore access. A 429 "Rate limit reached for requests" is different: you sent too many requests or tokens too quickly, so slow down and follow the Retry-After header when it's present.

How do I set a spending limit on the OpenAI API?

As of 2026-11-29, OpenAI's spend limits guide says to enter a Monthly spend limit under Spend in Organization limits (for the whole organization) or in a project's Limits settings (for that project only). It only stops traffic if you turn on Enforce a hard limit; then affected requests return a 429 with organization_spend_limit_exceeded or project_spend_limit_exceeded until you raise or remove the limit or the next monthly cycle starts. Enforcement is not instantaneous, so recorded spend can slightly exceed the amount. Spend alerts only send a notification and traffic continues. This limit is separate from the monthly usage limit OpenAI assigns by usage tier.

How much do I need to spend to raise my OpenAI rate limits?

Your usage tier upgrades automatically as your total credit purchases reach each threshold. As of 2026-11-29, OpenAI's rate limits guide lists Build at $5 in total credit purchases (usage limit $500 a month), Launch at $100 ($5,000 a month) and Grow at $500 ($200,000 a month); the Free tier is limited to $100 a month. Per-model limits for your tier are under Settings > Organization > Limits.