OpenAI API Pricing in 2026: GPT-6.2 Token Rates, Batch, Fast Mode and How to Estimate a Bill
If you're wiring the OpenAI API into an app, the bill comes down to a few multipliers: model, input vs cached input vs output, context length, processing tier (Batch, Flex, Fast, Ultrafast) and tool calls. OpenAI's lineu
If you're wiring the OpenAI API into an app, the bill comes down to a few multipliers: model, input vs cached input vs output, context length, processing tier (Batch, Flex, Fast, Ultrafast) and tool calls. OpenAI's lineup moved to GPT-6.2 Astra and GPT-6.2 Sol in late November 2026, and the newer flagship is actually cheaper than the GPT-6 Astra it replaces. I'm a freelance web developer who budgets API costs for client builds, so this is the price sheet I work from, with the official rates, how each tier changes them, and a worked estimate you can copy. I re-checked every figure against the official pages on November 29, 2026.
OpenAI API pricing is usage-based: you pay per million tokens, with separate rates for input, cached input and output, and the rate depends on the model and the processing speed you choose. As of November 25, 2026, OpenAI's flagship GPT-6.2 Astra costs $8 per million input tokens and $40 per million output tokens, the new everyday model GPT-6.2 Sol costs $2 / $10, and the most efficient model, GPT-6 Luna, costs $0.10 / $0.50. The previous flagship, GPT-6 Astra, is still listed at $10 / $50, so the newer model is also the cheaper one.
This guide is the OpenAI API price sheet in plain English: the official token rates, what Batch, Flex, Fast and Ultrafast do to the price, how long context changes it, the tool fees, and a method to estimate GPT API costs for your own app. All figures come from OpenAI's official API pricing page and models page, checked on November 25, 2026, in US dollars. Rates change, so confirm before you budget. For this Dev.to version, every OpenAI rate, tier multiplier, tool fee and model spec below, plus the ChatGPT plan prices and the Claude and Gemini comparison rates, was re-checked against the official pages on November 29, 2026. Nothing had changed since November 25.
A ChatGPT subscription is a different product with different billing รขโฌโ more on that below.
What OpenAI API pricing covers (vs a ChatGPT plan)
The OpenAI API is for developers calling OpenAI models from their own code, through the Responses API and OpenAI's SDKs. You are billed on tokens and tool usage.
ChatGPT plans รขโฌโ Free, Go, Plus ($20/month) and Pro ($100, $200 or $500/month) รขโฌโ are subscriptions to the ChatGPT app. OpenAI's Plus help article is explicit: "API usage is separate and billed independently." OpenAI's docs do have a page on API credits for ChatGPT subscribers, so check your eligibility there, but a ChatGPT plan is not an API plan. For plan comparisons, see Claude vs ChatGPT, Gemini vs ChatGPT and ChatGPT vs Copilot.
Want the number for your own workload? Paste a prompt or enter a monthly volume into my free AI Token Calculator to compare cost per request and per month across OpenAI, Claude and Gemini, with caching and Batch savings. It runs entirely in your browser.
OpenAI API price list: official rates at a glance
Want to turn these rates into a bill? Paste a prompt into the AI token calculator to see its token count and cost.
These are the four featured models on OpenAI's models page, with standard rates for short context (up to 272K input tokens).
OpenAI API pricing per million tokens, Standard, short context (official platform.openai.com/docs/pricing, checked November 25, 2026, USD)
| Model | Input | Cached input | Output | OpenAI's description |
|---|---|---|---|---|
| gpt-6.2-astra | $8.00 | $0.40 | $40.00 | "Our most capable model for your hardest projects, from start to finish" |
| gpt-6.2-sol | $2.00 | $0.10 | $10.00 | "Our go-to model for everyday work, from coding to powering agents at scale" |
| gpt-6.1-terra | $1.00 | $0.05 | $5.00 | "A fast, efficient model for visual reasoning, precise computer use, and clear, natural writing" |
| gpt-6-luna | $0.10 | $0.01 | $0.50 | "Our most efficient model for focused, high-volume tasks" |
OpenAI's own starting advice: use GPT-6.2 Astra, its flagship, for complex reasoning and coding if you are not sure, GPT-6.2 Sol to balance intelligence and cost, or GPT-6 Luna for cost-sensitive, high-volume workloads.
Both GPT-6.2 models have a 1.05M-token context window (up to 922K input tokens) and up to 128K output tokens, per their model pages. Each has a separate cache-write price: $10 (Astra) and $2.50 (Sol) per million tokens for a 30-minute cache, or $20 and $5 for a 12-hour cache.
Other current and older models
The same sheet lists more models. A selection (standard, short context):
| Model | Input | Output |
|---|---|---|
| gpt-6-astra | $10.00 | $50.00 |
| gpt-6.1-sol | $2.00 | $10.00 |
| gpt-6-sol | $2.00 | $10.00 |
| gpt-5.6-sol | $4.00 | $20.00 |
| gpt-5.6-terra | $2.00 | $12.00 |
| gpt-5.6-luna | $0.20 | $1.20 |
| gpt-5.5 | $5.00 | $30.00 |
| gpt-5.4-mini | $0.75 | $4.50 |
| gpt-5-nano | $0.05 | $0.40 |
| gpt-4.1-mini | $0.40 | $1.60 |
OpenAI notes that GPT-5.6 Sol's current price is promotional until November 30, 2026. Check the live sheet if you plan to use it after that. (As of November 29, 2026, the pricing page still shows that promotion ending November 30, 2026, so this rate may change within days of this post.)
How GPT API costs add up
Your bill is the sum of several parts. Each one is on the official sheet.
1. Input, cached input and output tokens
Output is five times input on all four featured models. Cached input รขโฌโ repeated prompt prefixes OpenAI has cached รขโฌโ is billed at a tenth of input or less (for example $0.10 vs $2.00 on gpt-6.2-sol, and $0.40 vs $8.00 on gpt-6.2-astra). The sheet also lists cache write prices for 30-minute and 12-hour caches (for gpt-6.2-sol, $2.50 and $5.00 per million tokens).
2. Long context
Requests with more than 272K input tokens use long-context rates. For example, gpt-6.2-sol rises from $2 / $10 to $4 / $15, and gpt-6.2-astra from $8 / $40 to $16 / $60. OpenAI's model pages put it simply: above 272K input tokens, input and cache rates double and output costs 1.5 times the short-context rate, for the whole request.
3. Processing speed: Batch, Flex, Fast and Ultrafast
gpt-6.1-sol and gpt-6-luna by processing tier, short context, per million tokens (official, November 25, 2026)
| Tier | gpt-6.1-sol input / output | gpt-6-luna input / output |
|---|---|---|
| Batch / Flex | $1.00 / $5.00 | $0.05 / $0.25 |
| Standard | $2.00 / $10.00 | $0.10 / $0.50 |
| Fast | $4.00 / $20.00 | $0.20 / $1.00 |
| Ultrafast | $12.00 / $60.00 | not listed |
Batch and Flex are half the standard price. Fast is double. Ultrafast on gpt-6-astra and gpt-6.1-sol is six times Standard. OpenAI notes that "Priority processing" was renamed Fast mode on July 30, 2026.
The GPT-6.2 models price speed differently. Batch is still half price (gpt-6.2-sol $1 / $5, gpt-6.2-astra $4 / $20) and Fast is still double, but OpenAI says it won't add Flex to new models, so there is no Flex rate for them. Ultrafast costs 3 times Standard through February 28, 2027 and 6 times from March 1, 2027 (Pacific time): gpt-6.2-sol is $6 / $30 now and $12 / $60 later. OpenAI also lists cheaper background completion windows for gpt-6.2-astra, gpt-6.2-sol, gpt-6.1-terra and gpt-6-luna: 30% below Standard for a 2-hour window and 40% below for an 8-hour window.
4. Data residency
OpenAI charges a 10% uplift for regional processing (data residency) endpoints on models released on or after March 5, 2026, and the same uplift on FedRAMP endpoints.
5. Tools
| Tool | Official price |
|---|---|
| Web search | $10.00 per 1,000 calls, plus search content tokens at model rates |
| File search | $0.10 per GB per day storage (1 GB free); $2.50 per 1,000 tool calls |
| Hosted Shell / Code Interpreter containers | From $0.03 (1 GB) to $1.92 (64 GB) per 20-minute session |
How to estimate a GPT API bill
OpenAI does not publish an "average" API bill, and a guessed one would mislead you. Use this method:
- Measure tokens for a typical request with OpenAI's token counting tools, on the model you plan to use.
- Split input, cached input and output. If your system prompt repeats on every call, much of it may be billed as cached input after the first request.
- Apply the rates for your model, context length and processing tier.
- Multiply by volume per month.
- Add tool calls such as web search, plus the 10% uplift if you use a data-residency endpoint.
Worked example (arithmetic only, not a measured workload): a request with 3,000 input tokens and 800 output tokens on gpt-6.2-sol at standard rates costs (3,000 รยท 1,000,000 รโ $2) + (800 รยท 1,000,000 รโ $10) = $0.006 + $0.008 = $0.014. At 1,000 requests a day for 30 days, that is about $420 a month. The same traffic on gpt-6-luna costs $0.0003 + $0.0004 = $0.0007 per request, or about $21 a month. Run through the Batch API, both figures halve.
To test a prompt without code, try our AI token calculator.
Ways to cut OpenAI API costs
These are the levers on OpenAI's own sheet. We do not promise a percentage saving, because it depends on your traffic.
- Use Batch or Flex for work that can wait: half the standard price.
- Keep prompts stable at the start so repeated prefixes are billed as cached input.
- Stay under 272K input tokens where you can, to avoid long-context rates.
- Pick the smallest model that passes your tests. gpt-6-luna's input price is one-eightieth of gpt-6.2-astra's ($0.10 vs $8).
- Cap output length, since output is the expensive side.
- Use Fast or Ultrafast only where latency matters รขโฌโ they cost 2x and up.
OpenAI API vs Claude API vs Gemini API
Mid-priced models on each official sheet, standard rates per million tokens (checked November 25, 2026)
| Provider | Model | Input | Output |
|---|---|---|---|
| OpenAI | gpt-6.2-sol | $2.00 | $10.00 |
| Anthropic | Claude Sonnet 5.5 | $2.00 | $10.00 |
| Gemini 3.8 Flash (paid tier, through Dec 31, 2026) | $0.75 | $3.75 |
These are not like-for-like quality comparisons, only the official prices of each provider's mid-range option on the same day. Usage mix, caching and output length change the real bill. For the other sheets, see Claude API pricing and Gemini API pricing. For low-cost options from Chinese providers, see Chinese AI models, and for assistants beyond OpenAI, our ChatGPT alternatives guide.
If you want help building a product on the OpenAI API, get in touch.
FAQ
How much does the OpenAI API cost?
It is billed per million tokens, by model. As of November 25, 2026, standard short-context rates are $8 / $40 for gpt-6.2-astra, $2 / $10 for gpt-6.2-sol, $1 / $5 for gpt-6.1-terra and $0.10 / $0.50 for gpt-6-luna (input / output). The older gpt-6-astra is still listed at $10 / $50.
Is OpenAI pricing for the API the same as ChatGPT Plus or Pro?
No. ChatGPT Plus ($20/month) and Pro ($100, $200 or $500/month) are app subscriptions. OpenAI says API usage is separate and billed independently.
How do I estimate GPT API costs?
Measure input and output tokens for a typical request, multiply by the official rates for your model and tier, multiply by monthly volume, and add tool fees.
Which OpenAI model is cheapest?
Among the featured GPT-6 models, gpt-6-luna is cheapest at $0.10 input and $0.50 output per million tokens. On the full sheet, older gpt-5-nano is listed at $0.05 / $0.40.
Is the OpenAI API cheaper than the Claude API?
On November 25, 2026, gpt-6.2-sol and Claude Sonnet 5.5 had the same standard rates ($2 / $10), and gpt-6-luna matched Claude Haiku 5.5's short-prompt rate ($0.10 / $0.50). At the top, gpt-6.2-astra ($8 / $40) matches Claude Fable 5.2, while Claude Opus 5.5 is $4 / $20. Compare the models you would actually use.
What is OpenAI's Batch API discount?
Batch (and Flex) pricing is half of standard pricing on the official sheet รขโฌโ for example, gpt-6.2-sol drops to $1 / $5. The GPT-6.2 models have Batch but no Flex rate.
Rates were checked against OpenAI's official pricing page and models page on November 25, 2026.
Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes โ full credit and traffic to the original publisher.