OpenAI API pricing is pay as you go: you pay per million tokens, with separate rates for the text you send (input) and the text the model writes (output). For most apps, OpenAI recommends starting with GPT-6.2 Sol, which costs $2 per million input tokens and $10 per million output tokens. A typical chatbot reply on Sol costs well under 1 cent.
| Model | Input (per 1M tokens) | Output (per 1M tokens) | Best for |
|---|---|---|---|
| GPT-6.2 Astra | $8.00 | $40.00 | Hard, open-ended work |
| GPT-6.2 Sol | $2.00 | $10.00 | Most apps (OpenAI’s suggested start) |
| GPT-6.1 Terra | $1.00 | $5.00 | Charts, screenshots, visual input |
| GPT-6 Luna | $0.10 | $0.50 | Small, repeatable tasks |
Below you will find how the pricing works, the full price table for the main models, three worked cost examples, the discounts that halve your bill, and how to set a hard spend limit so a bug can never run up a big invoice.
How we checked
We read OpenAI’s official API pricing page, its model selection guide, and its guides on spend limits, rate limits, Batch, prompt caching, reasoning and token counting on 4 December 2026 in Chrome (UK). Every price in this guide comes from those pages. The cost examples are our own calculations from the published rates. Not tested: we did not make paid API calls for this guide, so real bills can differ slightly from our worked figures, for example because of hidden formatting tokens or reasoning tokens.
Table of Contents
OpenAI API pricing: the short answer
- You pay per token. A token is roughly three quarters of a word, so 100 tokens is about 75 words.
- Output costs more than input. On all four current GPT-6 models, output tokens cost five times as much as input tokens.
- GPT-6.2 Sol is the default pick. OpenAI suggests starting there at medium reasoning effort, then moving up or down.
- Batch halves the price if you can wait up to 24 hours for results.
- Cached input is up to 95% cheaper when you reuse a long, identical prompt start.
- Set a hard spend limit on day one. It stops requests once your monthly cap is reached.
- The API is billed separately from ChatGPT. A ChatGPT Plus subscription does not pay for API usage.
How OpenAI API pricing works
OpenAI API pricing is built on tokens. Before a model reads your prompt, the text is split into small chunks called tokens. OpenAI’s help centre gives a simple rule of thumb: 1 token is about 4 characters, or about three quarters of a word. A 750-word article is roughly 1,000 tokens.
Under OpenAI API pricing, each request is charged in up to four parts:
- Input tokens: everything you send, including your instructions, the user’s message, earlier chat history and any document text.
- Cached input tokens: input that matches a prompt start the model has already processed recently. These are charged at a much lower rate.
- Output tokens: the text the model writes back to you.
- Reasoning tokens: the hidden “thinking” a reasoning model does before it answers. You never see this text, but OpenAI’s reasoning guide confirms it is billed as output tokens.
That last point surprises many people. If you ask a model to think hard about a problem, it may use far more tokens on reasoning than on the visible answer. OpenAI even warns that a request can cost money for input and reasoning tokens without returning any visible text, if it runs out of room first.
Short and long context in OpenAI API pricing
Current OpenAI API pricing has two bands. Short context means a prompt of up to 272,000 input tokens. Anything longer is long context, and both the input and output rates go up. For GPT-6.2 Sol, long context costs $4 input and $15 output per million tokens, instead of $2 and $10.
Most apps never come close to 272,000 tokens in one request. You only hit the long context rate if you paste in something huge, such as several long reports or a whole codebase at once.
OpenAI API pricing table for the main models (December 2026)
These are the Standard rates in US dollars per million tokens, for short context. We have included the older models that many existing apps still run on, because swapping to a newer, cheaper model is one of the easiest savings.
| Model | Input | Cached input | Output |
|---|---|---|---|
| GPT-6.2 Astra | $8.00 | $0.40 | $40.00 |
| GPT-6.2 Sol | $2.00 | $0.10 | $10.00 |
| GPT-6.1 Terra | $1.00 | $0.05 | $5.00 |
| GPT-6 Luna | $0.10 | $0.01 | $0.50 |
| GPT-6 Astra (older) | $10.00 | $1.00 | $50.00 |
| GPT-5.4 mini (older) | $0.75 | $0.075 | $4.50 |
| GPT-5.4 nano (older) | $0.20 | $0.02 | $1.25 |
| GPT-4o mini (older) | $0.15 | $0.075 | $0.60 |
Two things stand out. First, the newest flagship, GPT-6.2 Astra, is cheaper than the older GPT-6 Astra it replaces ($8 versus $10 input). Second, GPT-6 Luna undercuts even the old budget favourite GPT-4o mini on input, so older “mini” apps may be paying more than they need to.

Which OpenAI model should you choose?
OpenAI API pricing only makes sense next to what each model is good at. OpenAI’s own model selection guide gives a clear starting point:
- GPT-6.2 Sol at medium reasoning for most API work, such as drafting documents for review or fixing and adding features in code.
- GPT-6.2 Astra for demanding engineering or analysis, and open-ended problems that need trade-offs weighed.
- GPT-6 Luna for small, repeatable tasks, such as extracting fields when the expected result is clear.
- GPT-6.1 Terra for reading visual information, such as charts and screenshots.
The guide also says to treat this as a starting point and test models on your own work. That matters for cost. If Luna handles a task well, it costs one twentieth of Sol on both input and output. Running a small test set through two models is the cheapest money you will ever spend on the API.
If you want to see how the two main models differ in practice, our GPT-6.2 Astra vs Sol comparison covers that in more detail.
OpenAI API pricing in practice: 3 worked cost examples
Price per million tokens is hard to picture, so here is what three common jobs cost. These are our calculations from OpenAI’s published Standard rates, using the help centre’s rule of 100 tokens for about 75 words. Your real numbers will vary with your prompts.
Example 1: OpenAI API pricing for one chatbot reply
Assume a customer question plus short instructions comes to 500 input tokens, and the visible reply is 300 output tokens (about 225 words).
| Model | Cost per reply | Per 1,000 replies | Per 1,000 replies with 1,000 reasoning tokens each |
|---|---|---|---|
| GPT-6.2 Astra | $0.016 | $16.00 | $56.00 |
| GPT-6.2 Sol | $0.004 | $4.00 | $14.00 |
| GPT-6.1 Terra | $0.002 | $2.00 | $7.00 |
| GPT-6 Luna | $0.0002 | $0.20 | $0.70 |
The last column is the important one. Hidden reasoning can easily cost more than the answer you see. If your bill is higher than expected, a high reasoning effort setting is a likely cause.
Example 2: summarising a 10-page PDF
A 10-page report of about 5,000 words is roughly 6,700 input tokens with a short instruction. A 400-word summary is about 530 output tokens.
- GPT-6.2 Astra: about $0.076 (just under 8 cents)
- GPT-6.2 Sol: about $0.019 (2 cents)
- GPT-6.1 Terra: about $0.009 (1 cent)
- GPT-6 Luna: about $0.0009 (a tenth of a cent)
One caution: PDFs with images, charts or scanned pages can use far more tokens than the word count suggests. OpenAI’s token counting guide says the “characters divided by 4” estimate is inaccurate for images and files, and recommends its input token count endpoint to get an exact figure before you send the request.
Example 3: replying to 1,000 support emails
This is where OpenAI API pricing choices really add up. Assume each request includes the same 1,500-token block of instructions and company policy, plus a 300-token customer email, and the model writes a 200-token reply.
| Model | Standard | Batch (50% off) | With prompt caching |
|---|---|---|---|
| GPT-6.2 Astra | $22.40 | $11.20 | about $11.01 |
| GPT-6.2 Sol | $5.60 | $2.80 | about $2.75 |
| GPT-6.1 Terra | $2.80 | $1.40 | about $1.38 |
| GPT-6 Luna | $0.28 | $0.14 | about $0.15 |

The lesson: the model you pick changes the bill by up to 80 times, and how you send the requests can halve it again. Both matter more than haggling over a few words in your prompt.
How speed options change OpenAI API pricing
The same model can cost different amounts depending on how fast you need the answer. OpenAI’s pricing page lists these processing options:
- Standard: the normal rate, used in all our tables above.
- Batch: half the Standard rate. You upload a file of requests and get results within 24 hours, often sooner. Ideal for reports, tagging and bulk content jobs.
- Background completion windows: for GPT-6.2 Astra, GPT-6.2 Sol, GPT-6.1 Terra and GPT-6 Luna, eligible background requests cost 30% less with a 2-hour window and 40% less with an 8-hour window.
- Flex (beta): also half price on some models, but OpenAI says it is winding the beta down and will not add Flex to new models.
- Fast: double the Standard rate for quicker responses. This option used to be called Priority processing and was renamed on 30 July 2026.
- Ultrafast: the most expensive tier. For GPT-6.2 Astra and Sol it costs 3 times Standard until 28 February 2027, then 6 times Standard from 1 March 2027.
Also note that regional processing (data residency) endpoints cost 10% more for models released on or after 5 March 2026, which includes all the GPT-6 models above.

What else costs money on the OpenAI API?
Tokens are not the only part of OpenAI API pricing. Built-in tools have their own fees on top of the model’s token rates:
| Tool | Price |
|---|---|
| Web search | $10 per 1,000 calls, plus search content tokens at the model’s rate |
| File search (tool calls) | $2.50 per 1,000 calls (Responses API) |
| File search (storage) | $0.10 per GB per day, first 1 GB free |
| Hosted Shell and Code Interpreter | From $0.03 per 20-minute session for a 1 GB container |
Web search is the one to watch. At $10 per 1,000 calls, it adds 1 cent to every request that searches, which is more than the whole token cost of a typical Sol reply. Only turn it on where fresh information really matters.
Image generation, audio and real-time voice have their own separate price tables on the same page, and fine-tuning is now closed to new users.
How to set a spend limit on the OpenAI API
Understanding OpenAI API pricing is only half the job; the other half is capping it. OpenAI offers two kinds of spending control, and it is worth knowing the difference:
- A spend alert sends you a notification at the amount you set, but requests keep working.
- A hard spend limit blocks requests once tracked spend reaches the cap. Blocked requests return a 429 error with a code such as
project_spend_limit_exceeded.
You can set a hard limit for the whole organisation, for one project, or for a single API key. To set one on a project:
- Open your Project settings on the OpenAI platform and select Limits.
- In the Spend section, select Edit spend limit.
- Enter your Monthly spend limit.
- Turn on Enforce a hard limit, so requests stop at the cap instead of just alerting you.
- Select Save.
For an individual key, edit it on the API keys page, choose Set hard limit under Monthly spend limit, enter the amount in US dollars and save. OpenAI notes that enforcement is not instant, so recorded spend can go slightly over the limit while it catches up. Add an alert below your hard limit so you hear about trouble first.
Usage tiers: a separate limit from OpenAI API pricing
OpenAI also gives every organisation a monthly usage limit based on its tier. This is separate from the spend limits you set yourself:
| Tier | How you qualify | Monthly usage limit |
|---|---|---|
| Free | Be in a supported country | $100 |
| Build | $5 in total credit purchases | $500 |
| Launch | $100 in total credit purchases | $5,000 |
| Grow | $500 in total credit purchases | $200,000 |
Note that the Free tier’s $100 is a ceiling on usage, not free credit. API usage is paid for from credits you buy, and when the credit balance runs out, requests fail until you add more.
How to cut your OpenAI API costs
These steps lower your bill without changing OpenAI API pricing itself:
- Start with the cheapest model that passes your tests. Try GPT-6 Luna first for simple, structured jobs. It costs a twentieth of Sol.
- Use Batch for anything that can wait. Overnight reports, data tagging and bulk rewrites all qualify for 50% off.
- Keep your prompt start identical. Put long, fixed instructions first and changing content last, so prompt caching can reuse them. The prefix must be at least 1,024 tokens to cache.
- Lower the reasoning effort. Reasoning tokens are billed as output, the most expensive part. Use the lowest effort that still gives correct results.
- Cap the output length. Set a maximum output token limit, and ask for short answers when short answers will do.
- Trim chat history. Every earlier message you resend is paid for again as input. Summarise or drop old turns.
- Switch on web search only where needed. At $10 per 1,000 calls it can cost more than the model itself.
Mistakes that make OpenAI API pricing look higher than expected
- Forgetting reasoning tokens. They are invisible in the answer but appear on the bill at the output rate.
- Resending the whole conversation every turn. A long chat can cost more per message near the end than at the start.
- Using Fast or Ultrafast by default. Fast doubles the price. Only pay for speed where users are actually waiting.
- Leaving old apps on old models. GPT-6 Astra costs more than its newer replacement, GPT-6.2 Astra.
- Estimating files by word count. Images and scanned pages can cost many more tokens than you expect.
- Treating alerts as a cap. A spend alert does not stop anything. Only a hard limit does.
Is OpenAI API pricing the same as ChatGPT Plus?
No. OpenAI’s help centre states that ChatGPT and the API platform have separate billing systems, and that API usage is billed separately from your ChatGPT subscription. Paying for ChatGPT Plus does not give you API access, and API credits do not unlock ChatGPT features.
So which do you need? If you want to chat with an assistant yourself, a ChatGPT plan is simpler and has a fixed monthly price. If you are building an app, a website feature or an automation that calls a model in code, you need the API and its per-token pricing. For ideas on getting more from the chat app itself, see our ChatGPT prompts guide.

Key takeaways on OpenAI API pricing
- OpenAI API pricing is per million tokens, with output costing five times input on the four current GPT-6 models.
- GPT-6.2 Sol ($2 in, $10 out) is OpenAI’s recommended starting point; GPT-6 Luna ($0.10 in, $0.50 out) is the budget option.
- Hidden reasoning tokens are billed as output and are often the biggest surprise on the bill.
- Batch halves the cost, and prompt caching cuts repeated input by up to 95%.
- Set a hard spend limit per project or key; alerts alone do not stop spending.
OpenAI API pricing FAQ
How much does the OpenAI API cost per request?
It depends on the model and the length of the request. On GPT-6.2 Sol, a 500-token question with a 300-token answer costs about $0.004, under half a cent. On GPT-6 Luna the same request costs about $0.0002. Reasoning tokens, tools such as web search, and long documents all add to that.
Is there a free tier in OpenAI API pricing?
There is a Free usage tier, but it is a limit, not free credit. OpenAI’s rate limits guide lists a $100 monthly usage limit for the Free tier, and API usage is paid from credits you buy. Some ChatGPT plans can include promotional API credits for a linked API organisation, but billing stays separate.
What is the cheapest OpenAI API model?
Among the current GPT-6 models, GPT-6 Luna is the cheapest at $0.10 per million input tokens and $0.50 per million output tokens. With Batch processing, those rates halve to $0.05 and $0.25. It suits small, clear tasks such as extracting fields or classifying text.
Why is my OpenAI API bill higher than I expected?
The usual causes are hidden reasoning tokens (billed at the output rate), resending long chat histories, web search calls at $10 per 1,000, Fast processing at double the price, or files with images that use more tokens than expected. Check the usage page by model and project to find the cause.
Does OpenAI API pricing include VAT or local currency?
OpenAI lists API prices in US dollars per million tokens, and spend limits are entered in US dollars. How tax is applied depends on your country and account details, so check your billing settings and invoices rather than assuming the listed rate is the final amount.
How do I stop the OpenAI API spending too much?
Set a hard monthly spend limit on your organisation, project or API key, and turn on “Enforce a hard limit”. Requests stop with a 429 error when the cap is reached. Add a spend alert below it, so you are warned before the limit blocks your app.
How often does OpenAI API pricing change?
OpenAI API pricing changes regularly, usually when new models launch. Newer models are often cheaper than the ones they replace, and some rates, such as Ultrafast for GPT-6.2, already have a scheduled increase from 1 March 2027. Always check the official pricing page before you set a budget.
Sources
- OpenAI API pricing (prices, speed options and tools)
- OpenAI model selection guide
- OpenAI spend limits guide
- OpenAI rate limits and usage tiers
- OpenAI Batch API guide
- OpenAI prompt caching guide
- OpenAI reasoning models guide
- OpenAI token counting guide
- OpenAI Help: understanding and counting tokens
- OpenAI Help: billing for ChatGPT and the API platform
