MockFoxAdvertise

OpenAI API Pricing Calculator

Updated Free mock REST & WebSocket APIs

Estimate what your OpenAI API usage will cost across GPT-6, GPT-5.x, GPT-4.1, GPT-4o and o-series models. Enter tokens and traffic, add your cache hit rate and Batch API share, and compare with other providers in one click.

Prompt + history + context. 12k = 12,000
Reasoning models also bill thinking tokens as output
≈ 30,000 / month
0%
Share of input tokens read from cache (repeated system prompt, docs)
0%
50% off at OpenAI, Anthropic, Google, Mistral (async, ≤24 h)
Cheapest for this workload
GPT-5 nano · OpenAI
$0.0003 per request · $0.30 per day
$9.00/mo
GPT-5 nanocheapest
OpenAI
In $0.05 · Out $0.40 /1M · 400K
$9.00
gpt-oss-20b
OpenAI · Groq
In $0.075 · Out $0.30 /1M · 128K
Open-weight model; price shown is Groq's.
$9.00
GPT-6 Luna
OpenAI
In $0.10 · Out $0.50 /1M · 1.05M
$13.50
1.5× cheapest
GPT-4o mini
OpenAI
In $0.15 · Out $0.60 /1M · 128K
$18.00
2.0× cheapest
gpt-oss-120b
OpenAI · Groq
In $0.15 · Out $0.60 /1M · 128K
Open-weight model; price shown is Groq's.
$18.00
2.0× cheapest
GPT-5.6 Luna
OpenAI
In $0.20 · Out $1.20 /1M · 1.05M
$30.00
3.3× cheapest
GPT-5.4 nano
OpenAI
In $0.20 · Out $1.25 /1M · 400K
$30.75
3.4× cheapest
GPT-5 mini
OpenAI
In $0.25 · Out $2 /1M · 400K
$45.00
5.0× cheapest
GPT-4.1 mini
OpenAI
In $0.40 · Out $1.60 /1M · 1.05M
$48.00
5.3× cheapest
GPT-5.4 mini
OpenAI
In $0.75 · Out $4.50 /1M · 400K
$112.50
13× cheapest
o4-mini
OpenAI
In $1.10 · Out $4.40 /1M · 200K
$132.00
15× cheapest
GPT-5
OpenAI
In $1.25 · Out $10 /1M · 400K
$225.00
25× cheapest
GPT-4.1
OpenAI
In $2 · Out $8 /1M · 1.05M
$240.00
27× cheapest
o3
OpenAI
In $2 · Out $8 /1M · 200K
$240.00
27× cheapest
GPT-6 Sol
OpenAI
In $2 · Out $10 /1M · 1.05M
$270.00
30× cheapest
GPT-6.1 Sol
OpenAI
In $2 · Out $10 /1M · 1.05M
$270.00
30× cheapest
GPT-4o
OpenAI
In $2.50 · Out $10 /1M · 128K
$300.00
33× cheapest
GPT-5.6 Terra
OpenAI
In $2 · Out $12 /1M · 1.05M
$300.00
33× cheapest
GPT-5.4
OpenAI
In $2.50 · Out $15 /1M · 1.05M
$375.00
42× cheapest
GPT-5.6 Sol
OpenAI
In $4 · Out $20 /1M · 1.05M
Promotional pricing through at least Nov 21, 2026.
$540.00
60× cheapest
GPT-5.5
OpenAI
In $5 · Out $30 /1M · 1.05M
$750.00
83× cheapest
GPT-6 Astra
OpenAI
In $10 · Out $50 /1M · 1.05M
OpenAI's most capable model.
$1,350
150× cheapest

Prices checked on 2026-10-18 from each provider's official pricing page (standard tier, USD per 1M tokens). Prices change often — verify before you budget.

Sources: OpenAI. Excludes taxes, tool/search fees, image/audio tokens and cache-write or storage surcharges.

🔒 Everything is calculated in your browser — prompts you paste are never sent anywhere.

How to calculate OpenAI API cost

  1. Enter input and output tokens per request — or paste a prompt and the exact GPT token count is used.
  2. Set requests per day, the cached-input share (OpenAI caches prompt prefixes of 1,024+ tokens automatically) and the share sent via Batch.
  3. Read the cheapest GPT model for the workload; tap other providers to compare.

OpenAI API prices

ModelInputCached inputOutputContext
GPT-6 Astra
gpt-6-astra
$10$1$501.05M
GPT-6.1 Sol
gpt-6.1-sol
$2$0.10$101.05M
GPT-6 Sol
gpt-6-sol
$2$0.20$101.05M
GPT-6 Luna
gpt-6-luna
$0.10$0.01$0.501.05M
GPT-5.6 Sol
gpt-5.6-sol
$4$0.40$201.05M
GPT-5.6 Terra
gpt-5.6-terra
$2$0.20$121.05M
GPT-5.6 Luna
gpt-5.6-luna
$0.20$0.02$1.201.05M
GPT-5.5
gpt-5.5
$5$0.50$301.05M
GPT-5.4
gpt-5.4
$2.50$0.25$151.05M
GPT-5.4 mini
gpt-5.4-mini
$0.75$0.075$4.50400K
GPT-5.4 nano
gpt-5.4-nano
$0.20$0.02$1.25400K
GPT-5
gpt-5
$1.25$0.125$10400K
GPT-5 mini
gpt-5-mini
$0.25$0.025$2400K
GPT-5 nano
gpt-5-nano
$0.05$0.005$0.40400K
GPT-4.1
gpt-4.1
$2$0.50$81.05M
GPT-4.1 mini
gpt-4.1-mini
$0.40$0.10$1.601.05M
GPT-4o
gpt-4o
$2.50$1.25$10128K
GPT-4o mini
gpt-4o-mini
$0.15$0.075$0.60128K
o3
o3
$2$0.50$8200K
o4-mini
o4-mini
$1.10$0.275$4.40200K
gpt-oss-120b
gpt-oss-120b
$0.15—$0.60128K
gpt-oss-20b
gpt-oss-20b
$0.075—$0.30128K

USD per 1M tokens, standard tier, checked 2026-10-18. Source: OpenAI pricing.

How OpenAI bills

  • Cached input is applied automatically to repeated prompt prefixes, at 10–50% of the input price depending on the model. Newer models (GPT-5.6, GPT-6 Sol) charge 1.25× input to write the cache.
  • Batch API: 50% off input, cached input and output for jobs completed within 24 hours. Flex processing is priced the same as Batch on current models.
  • Long context: GPT-5.4, GPT-5.5, GPT-5.6 and GPT-6 bill prompts over 272K input tokens at 2× input and 1.5× output for the whole request.
  • Reasoning tokens on thinking models are invisible in the reply but billed as output tokens. Lower the reasoning effort to cut them.
  • Regional processing (data residency) adds 10% on supported models.

Example: 1,000 chats a day

With 2,000 input and 500 output tokens per request: GPT-6 Luna $13.50, GPT-5 mini $45.00, GPT-6 Sol $270.00 and GPT-6 Astra $1,350 per month. Sent through the Batch API, GPT-6 Sol drops to $135.00.

Prices were checked on 2026-10-18 from each provider's official pricing page. They change often, so confirm on the provider's site before committing to a budget.

Related tools

Frequently asked questions

How much does the OpenAI API cost per request?

It depends on tokens: 2,000 input + 500 output tokens costs $0.0015 on GPT-5 mini and $0.009 on GPT-6 Sol. Enter your own numbers above.

What's the cheapest OpenAI model?

GPT-5 nano ($0.05 / $0.40 per 1M) is the cheapest current OpenAI API model, followed by GPT-6 Luna ($0.10 / $0.50).

Does ChatGPT Plus include API credits?

No. ChatGPT subscriptions and the API are billed separately; API usage is pay-as-you-go per token.

Are these prices up to date?

Prices were checked on 2026-10-18 from each provider's official pricing page. They change often, so confirm on the provider's site before committing to a budget.

Your business here? Sponsor this tool from $16/week. See placements