OpenAI calculator

OpenAI API pricing calculator for tokens, hosted tools, and runtime.

This page is a real lightweight calculator, not a static explainer. It estimates model-token spend, file search, web search, and container runtime in one source-linked breakdown so the biggest line item is visible before a team commits to a model path.

Current state

Every major line item stays visible instead of hiding inside one total.
Live calculator
The calculator uses the current OpenAI pricing rows already tracked in this site. It keeps assumptions visible instead of hiding them behind one total.

Last checked

March 12, 2026

Applied model row

gpt-5.4 / Short / standard

Calculator inputs
Set the model row first, then add hosted tools only where the workload actually uses them.
Estimate summary
The per-request total shows one configured run. The monthly total scales request-driven lines and keeps storage as its own standing monthly cost.

Estimated request cost

$4.00

Estimated monthly cost

$4000

Applied row

gpt-5.4 / Short / standard

Line-item breakdown

Keep the big lines visible before debating model swaps.

The calculator keeps request-driven costs and standing monthly costs separate so storage and runtime do not disappear behind one number.

Line itemPer requestMonthlyNote
Model input tokens$2.50$2500Calculated from the selected OpenAI model row.
Cached input tokens$0.00$0.00Calculated from the selected row's cached-input rate.
Model output tokens$1.50$1500Calculated from the selected OpenAI output-token rate.
File search tool calls$0.00$0.00Calculated from file-search call count. Token exposure from retrieved context is not included.
File search storage$0.00$0.00Standing monthly cost for 0 GB over 30 days after the first 1 free GB.
Web search calls$0.00$0.00No web search path selected.
Web search content tokens$0.00$0.00No web-search token exposure in the current estimate.
Container runtime$0.00$0.00Calculated from code interpreter container count. Runtime cost is separate from the model row.

Source-linked assumptions

The calculator stays honest by showing what it does not guess.

  • Applied model row: gpt-5.4 / Short / standard.
  • File-search storage is treated as a standing 30-day monthly cost rather than a request-driven line item.
  • File-search token exposure from retrieved context is not estimated in this v1 calculator.
  • For standard and preview reasoning web search on models without a published fixed token block, the calculator prices the call meter but excludes variable search-content token usage.
  • Monthly multiplier scales request-driven line items. Standing storage remains its own monthly line.

API pricing

Source of record for model, file search, web search, and container pricing rows.

Open official page

File search guide

Explains the hosted retrieval path that makes file-search cost a multi-meter estimate.

Open official page

Web search guide

Explains the tool path behind web-search pricing and why path selection matters.

Open official page

Code interpreter guide

Explains the runtime path that turns code execution into a container-cost decision.

Open official page

Continue the site

Keep moving through the decision from here.

Use the groups below to move laterally through the decision, not back out into another doc hunt.

Related pages

Stay in the same decision neighborhood instead of backing out to search.

Calculators

Interactive estimate pages that price token usage, hosted tools, and runtime together.

Open page

OpenAI file search pricing

Tool-cost brief for file search pricing across storage, tool calls, and model-token exposure.

Open page

OpenAI container pricing

Tool-cost brief for code interpreter container runtime and how it stacks with model spend.

Open page

Compare pages

Open the pages that turn this topic into a side-by-side decision.

GPT-5.4 vs GPT-5 mini

Side-by-side comparison of GPT-5.4 and GPT-5 mini across price, fit, and tool pressure.

Open page

Cheapest OpenAI model for extraction

Scenario recommendation page for choosing the cheapest workable OpenAI extraction model.

Open page

Replacement pages

Use the likely substitutes, migration targets, or fallback choices as the next click.

GPT-5 mini pricing

Single-model pricing brief for GPT-5 mini across standard and batch rows.

Open page

GPT-5.4 pricing

Single-model pricing brief for GPT-5.4 across short, long, and batch rows.

Open page

GPT-5.4 context and tool support

Limits brief for GPT-5.4 versus GPT-5 mini context windows, output caps, and tool support.

Open page

Source category pages

Trace the source families behind this page instead of opening random docs in isolation.

Pricing sources

Official pricing pages used to support model, tool-cost, and calculator estimates.

Open page

Guide and API reference sources

Operational guides and API references used by tool-cost, migration, and calculator pages.

Open page