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.
| Cached /1M | |||||
|---|---|---|---|---|---|
GPT-5 nanocheapest OpenAI In $0.05 · Out $0.40 /1M · 400K | $0.05 | $0.005 | $0.40 | 400K | $9.00 |
gpt-oss-20b OpenAI · Groq In $0.075 · Out $0.30 /1M · 128K Open-weight model; price shown is Groq's. | $0.075 | — | $0.30 | 128K | $9.00 |
GPT-6 Luna OpenAI In $0.10 · Out $0.50 /1M · 1.05M | $0.10 | $0.01 | $0.50 | 1.05M | $13.50 1.5× cheapest |
GPT-4o mini OpenAI In $0.15 · Out $0.60 /1M · 128K | $0.15 | $0.075 | $0.60 | 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. | $0.15 | — | $0.60 | 128K | $18.00 2.0× cheapest |
GPT-5.6 Luna OpenAI In $0.20 · Out $1.20 /1M · 1.05M | $0.20 | $0.02 | $1.20 | 1.05M | $30.00 3.3× cheapest |
GPT-5.4 nano OpenAI In $0.20 · Out $1.25 /1M · 400K | $0.20 | $0.02 | $1.25 | 400K | $30.75 3.4× cheapest |
GPT-5 mini OpenAI In $0.25 · Out $2 /1M · 400K | $0.25 | $0.025 | $2 | 400K | $45.00 5.0× cheapest |
GPT-4.1 mini OpenAI In $0.40 · Out $1.60 /1M · 1.05M | $0.40 | $0.10 | $1.60 | 1.05M | $48.00 5.3× cheapest |
GPT-5.4 mini OpenAI In $0.75 · Out $4.50 /1M · 400K | $0.75 | $0.075 | $4.50 | 400K | $112.50 13× cheapest |
o4-mini OpenAI In $1.10 · Out $4.40 /1M · 200K | $1.10 | $0.275 | $4.40 | 200K | $132.00 15× cheapest |
GPT-5 OpenAI In $1.25 · Out $10 /1M · 400K | $1.25 | $0.125 | $10 | 400K | $225.00 25× cheapest |
GPT-4.1 OpenAI In $2 · Out $8 /1M · 1.05M | $2 | $0.50 | $8 | 1.05M | $240.00 27× cheapest |
o3 OpenAI In $2 · Out $8 /1M · 200K | $2 | $0.50 | $8 | 200K | $240.00 27× cheapest |
GPT-6 Sol OpenAI In $2 · Out $10 /1M · 1.05M | $2 | $0.20 | $10 | 1.05M | $270.00 30× cheapest |
GPT-6.1 Sol OpenAI In $2 · Out $10 /1M · 1.05M | $2 | $0.10 | $10 | 1.05M | $270.00 30× cheapest |
GPT-4o OpenAI In $2.50 · Out $10 /1M · 128K | $2.50 | $1.25 | $10 | 128K | $300.00 33× cheapest |
GPT-5.6 Terra OpenAI In $2 · Out $12 /1M · 1.05M | $2 | $0.20 | $12 | 1.05M | $300.00 33× cheapest |
GPT-5.4 OpenAI In $2.50 · Out $15 /1M · 1.05M | $2.50 | $0.25 | $15 | 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. | $4 | $0.40 | $20 | 1.05M | $540.00 60× cheapest |
GPT-5.5 OpenAI In $5 · Out $30 /1M · 1.05M | $5 | $0.50 | $30 | 1.05M | $750.00 83× cheapest |
GPT-6 Astra OpenAI In $10 · Out $50 /1M · 1.05M OpenAI's most capable model. | $10 | $1 | $50 | 1.05M | $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
- Enter input and output tokens per request — or paste a prompt and the exact GPT token count is used.
- Set requests per day, the cached-input share (OpenAI caches prompt prefixes of 1,024+ tokens automatically) and the share sent via Batch.
- Read the cheapest GPT model for the workload; tap other providers to compare.
OpenAI API prices
| Model | Input | Cached input | Output | Context |
|---|---|---|---|---|
GPT-6 Astragpt-6-astra | $10 | $1 | $50 | 1.05M |
GPT-6.1 Solgpt-6.1-sol | $2 | $0.10 | $10 | 1.05M |
GPT-6 Solgpt-6-sol | $2 | $0.20 | $10 | 1.05M |
GPT-6 Lunagpt-6-luna | $0.10 | $0.01 | $0.50 | 1.05M |
GPT-5.6 Solgpt-5.6-sol | $4 | $0.40 | $20 | 1.05M |
GPT-5.6 Terragpt-5.6-terra | $2 | $0.20 | $12 | 1.05M |
GPT-5.6 Lunagpt-5.6-luna | $0.20 | $0.02 | $1.20 | 1.05M |
GPT-5.5gpt-5.5 | $5 | $0.50 | $30 | 1.05M |
GPT-5.4gpt-5.4 | $2.50 | $0.25 | $15 | 1.05M |
GPT-5.4 minigpt-5.4-mini | $0.75 | $0.075 | $4.50 | 400K |
GPT-5.4 nanogpt-5.4-nano | $0.20 | $0.02 | $1.25 | 400K |
GPT-5gpt-5 | $1.25 | $0.125 | $10 | 400K |
GPT-5 minigpt-5-mini | $0.25 | $0.025 | $2 | 400K |
GPT-5 nanogpt-5-nano | $0.05 | $0.005 | $0.40 | 400K |
GPT-4.1gpt-4.1 | $2 | $0.50 | $8 | 1.05M |
GPT-4.1 minigpt-4.1-mini | $0.40 | $0.10 | $1.60 | 1.05M |
GPT-4ogpt-4o | $2.50 | $1.25 | $10 | 128K |
GPT-4o minigpt-4o-mini | $0.15 | $0.075 | $0.60 | 128K |
o3o3 | $2 | $0.50 | $8 | 200K |
o4-minio4-mini | $1.10 | $0.275 | $4.40 | 200K |
gpt-oss-120bgpt-oss-120b | $0.15 | — | $0.60 | 128K |
gpt-oss-20bgpt-oss-20b | $0.075 | — | $0.30 | 128K |
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