# OpenAI API cost calculator

[Calculate my cost →](https://apicostcheck.com/calculator/?model=gpt-6-luna)[Compare OpenAI models side by side](https://apicostcheck.com/compare/?m=gpt-6-luna,gpt-5.4-mini,gpt-6.1-terra,gpt-6.1-sol)

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 GPT-5.4 mini have no cache-write fee, so a miss costs the same as normal input, while GPT-6.1 Sol, GPT-6 Astra, GPT-6.1 Terra, GPT-6 Luna list a cache-write price of 1.25× the input rate. 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.1 Sol, GPT-6 Astra, GPT-5.5 Pro, GPT-6.1 Terra, GPT-6 Luna and 11 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](https://apicostcheck.com/models/gpt-5.5-pro/) costs 318× as much as [GPT-6 Luna](https://apicostcheck.com/models/gpt-6-luna/).

| Model | Standard 10,000 req/day · 6,000 in · 500 out [Calculate with your numbers →](https://apicostcheck.com/calculator/?daily=10000&input=6000&output=500&cache=0&write=0&batch=0) | With prompt caching 10,000 req/day · 6,000 in · 500 out · cache 70% [Calculate with your numbers →](https://apicostcheck.com/calculator/?daily=10000&input=6000&output=500&cache=70&write=5&batch=0) | Batch API 10,000 req/day · 6,000 in · 500 out · batch [Calculate with your numbers →](https://apicostcheck.com/calculator/?daily=10000&input=6000&output=500&cache=0&write=0&batch=100) |
| --- | --- | --- | --- |
| [GPT-6 Luna](https://apicostcheck.com/models/gpt-6-luna/) | $255/mo | $144/mo | $128/mo |
| [GPT-5.4 mini](https://apicostcheck.com/models/gpt-5.4-mini/) | $2,025/mo | $1,174/mo | $1,012/mo |
| [GPT-6.1 Terra](https://apicostcheck.com/models/gpt-6.1-terra/) | $2,550/mo | $1,376/mo | $1,275/mo |
| [GPT-6.1 Sol](https://apicostcheck.com/models/gpt-6.1-sol/) | $5,100/mo | $2,751/mo | $2,550/mo |
| [GPT-6 Astra](https://apicostcheck.com/models/gpt-6-astra/) | $25,500/mo | $14,385/mo | $12,750/mo |
| [GPT-5.5 Pro](https://apicostcheck.com/models/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-11-24 01:00 UTC. 

[All OpenAI API prices →](https://apicostcheck.com/providers/openai/) 

## Cost per 1,000 requests

For 1,000 requests of 6,000 input and 500 output tokens, [GPT-6 Luna](https://apicostcheck.com/models/gpt-6-luna/) costs $0.85 at standard rates, $0.48 with caching and $0.42 through the Batch API; [GPT-5.5 Pro](https://apicostcheck.com/models/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
- 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.
- Send similar requests close together: cache entries expire after a few minutes without use.
- Route by difficulty: nano for classification and extraction, mini for chat, the flagship or a pro model only for hard questions.
- Use the Batch API for anything that is not interactive.
- Cap max_tokens, and on reasoning models budget for reasoning tokens, which are billed as output ([calculator](https://apicostcheck.com/calculator/), output price set to thinking). Count prompts with the [token counter](https://apicostcheck.com/token-counter/). 

[When does caching pay off for your traffic? Use the prompt caching calculator →](https://apicostcheck.com/prompt-caching-calculator/)

## FAQ

### 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.

---
Source: https://apicostcheck.com/openai-api-cost-calculator/ · prices in USD per 1M tokens, synced 2026-11-24 01:00 UTC · Free to reuse under CC BY 4.0 with attribution to apicostcheck.com (a plain or nofollow link is fine). Prices derived from LiteLLM's model price list, MIT License, (c) 2023 Berri AI.
