Platforms · 15 min

OpenAI API pricing in 2026: every model, Batch, caching and three worked monthly bills

OpenAI API pricing, checked 30 November 2026: GPT-6.2 Astra $8/$40, Sol $2/$10, Luna $0.10/$0.50 per million tokens. Batch, caching and three bills.

Feature graphic: OpenAI API pricing in 2026: every model, Batch, caching and three worked monthly bills

OpenAI API pricing is per token, and the model you pick sets most of the bill. On OpenAI's API pricing page, checked on 30 November 2026, the four current flagship models cost, per million tokens: GPT-6.2 Astra $8 input and $40 output, GPT-6.2 Sol $2 and $10, GPT-6.1 Terra $1 and $5, and GPT-6 Luna $0.10 and $0.50. Cached input costs a twentieth of the input rate on Astra, Sol and Terra and a tenth on Luna. The Batch API halves token prices in exchange for a 24-hour turnaround. Fast mode, the new name for priority processing, doubles them on the newest models. This guide lists every current text model, explains caching, Batch, Flex, Fast mode and the built-in tool fees, and works through three monthly bills.

The four flagship models

OpenAI's models page recommends Astra for complex reasoning and coding, Sol to balance intelligence and cost, and Luna for cost-sensitive, high-volume work. Terra is described as a fast, efficient model for visual reasoning, computer use and natural writing. All four are reasoning models with a 1,050,000-token context window and 128,000 maximum output tokens. Prices below are Standard processing for prompts up to 272,000 input tokens, from OpenAI's pricing page and the API pricing cards, checked on 30 November 2026, in US dollars per million tokens.

ModelInputCached inputCache write (30 min)OutputOpenAI's description
GPT-6.2 Astra$8.00$0.40$10.00$40.00Most capable, for the hardest projects
GPT-6.2 Sol$2.00$0.10$2.50$10.00Go-to model for everyday work and agents at scale
GPT-6.1 Terra$1.00$0.05$1.25$5.00Fast and efficient; visual reasoning, computer use, writing
GPT-6 Luna$0.10$0.01$0.125$0.50Most efficient, for focused, high-volume tasks

Above 272,000 input tokens the long-context rate applies: input doubles and output rises by half. Astra $16 and $60, Sol $4 and $15, Terra $2 and $7.50, Luna $0.20 and $0.75 (pricing page, checked 30 November 2026). Keep prompts under that line unless the task needs the whole document.

Every other text model still on the price list

Older models stay available at their own prices, which matters if your code still names one. These are Standard and Batch rates per million tokens from OpenAI's pricing page, checked on 30 November 2026.

ModelInputCached inputOutputBatch input / output
GPT-6.1 Sol$2.00$0.10$10.00$1.00 / $5.00
GPT-6 Astra$10.00$1.00$50.00$5.00 / $25.00
GPT-6 Sol$2.00$0.20$10.00$1.00 / $5.00
GPT-5.6 Sol$4.00$0.40$20.00$2.00 / $10.00
GPT-5.6 Terra$2.00$0.20$12.00$1.00 / $6.00
GPT-5.6 Luna$0.20$0.02$1.20$0.10 / $0.60
GPT-5.5$5.00$0.50$30.00$2.50 / $15.00
GPT-5.5 Pro$30.00Not offered$180.00$15.00 / $90.00
GPT-5.4$2.50$0.25$15.00$1.25 / $7.50
GPT-5.2$1.75$0.175$14.00$0.875 / $7.00
GPT-5 and GPT-5.1$1.25$0.125$10.00$0.625 / $5.00
GPT-4.1$2.00$0.50$8.00$1.00 / $4.00
GPT-4o$2.50$1.25$10.00$1.25 / $5.00
o3$2.00$0.50$8.00$1.00 / $4.00

The pricing page notes that GPT-5.6 Sol's promotional pricing runs until 30 November 2026, the day we checked, so its rate may change. The Pro models (GPT-5.5 Pro, GPT-5.4 Pro at the same $30 and $180) spend more compute per answer and have no cached-input rate.

GPT mini and nano pricing

There is no mini or nano version of the GPT-6 family. Luna fills that role. The last mini and nano models are still listed, at these rates per million tokens (pricing page, checked 30 November 2026):

ModelInputCached inputOutputBatch input / output
GPT-6 Luna (for comparison)$0.10$0.01$0.50$0.05 / $0.25
GPT-5.4 mini$0.75$0.075$4.50$0.375 / $2.25
GPT-5.4 nano$0.20$0.02$1.25$0.10 / $0.625
GPT-5 mini$0.25$0.025$2.00$0.125 / $1.00
GPT-5 nano$0.05$0.005$0.40$0.025 / $0.20
GPT-4.1 mini$0.40$0.10$1.60$0.20 / $0.80
GPT-4o mini$0.15$0.075$0.60$0.075 / $0.30

Luna is cheaper than GPT-5.4 mini on both input and output and has a newer knowledge cutoff (May 2026 against August 2025, per the model pages). GPT-5 nano is the only listed text model with cheaper input than Luna.

Reasoning tokens are billed as output

Every current flagship model reasons before it answers. OpenAI's reasoning guide says reasoning tokens are not visible through the API but are billed as output tokens. A reply that shows 300 words may have used several thousand output tokens to think. The reasoning.effort setting controls this, with values from none to max depending on the model; GPT-6.1 Sol, GPT-6 Sol and GPT-6 Luna default to medium, and GPT-6.2 Astra and Sol reject none. Set max_output_tokens to cap what one request can spend, and measure real output token counts before you trust any estimate, including ours.

Discounts and surcharges: caching, Batch, Flex, background and Fast mode

  • Cached input. OpenAI's prompt caching guide says that from GPT-5.6 onwards, writing a prefix to the cache costs 1.25x the input rate for the default 30-minute lifetime, or 2.5x for a 12-hour lifetime. Reads cost 0.05x on GPT-6.2 Astra, GPT-6.2 Sol, GPT-6.1 Sol and GPT-6.1 Terra and 0.1x on most other recent models. A prefix must be at least 1,024 tokens to be cached. Older models charge nothing extra for writes. One trap: on GPT-6.2 models, top-level instructions are billed at the uncached rate on every request, so put reusable instructions in the first developer message instead.
  • Batch API. The Batch guide gives a 50% discount, a separate rate limit and completion within 24 hours. Batch prices are on the pricing page for every flagship model.
  • Flex processing. Flex charges Batch rates for normal API calls that may run slowly or return a 429 Resource Unavailable error, which is not charged. The Flex guide says it is being wound down: it is unavailable on GPT-6.2 Astra and Sol and will not be added to new models.
  • Background completion windows. Flex's replacement. In the background mode guide, a request that can wait 2 hours costs 30% below Standard, and one that can wait 8 hours costs 40% below. It is in public beta on GPT-6.2 Astra, GPT-6.2 Sol, GPT-6.1 Terra and GPT-6 Luna.
  • Fast mode (called priority processing until 30 July 2026) runs up to 2.5x faster, per the Fast mode guide, and on the GPT-6 and GPT-5.6 models costs twice Standard: GPT-6.2 Sol is $4 input and $20 output. Older models have their own Fast rates on the pricing page. Ultrafast on GPT-6.2 Astra and Sol costs 3x Standard until 28 February 2027 and 6x from 1 March 2027 (pricing page, checked 30 November 2026).
  • Data residency. Regional processing endpoints add 10% for models released on or after 5 March 2026, and FedRAMP endpoints add 10% too.

Built-in tools, images, audio and fine-tuning

Tools carry their own fees on top of the tokens they use, which are billed at the model's rates. From OpenAI's pricing page, checked on 30 November 2026:

ItemPrice
Web search$10 per 1,000 calls, plus search content tokens at model rates
Web search preview (non-reasoning models)$25 per 1,000 calls; search content tokens free
File search$2.50 per 1,000 calls (Responses API); storage $0.10 per GB per day, first 1 GB free
Hosted Shell and Code Interpreter$0.03 (1 GB), $0.12 (4 GB), $0.48 (16 GB) or $1.92 (64 GB) per 20-minute container session
GPT-Image-2.6 Sunburst or FlareImage input $8, image output $30, text input $5 per million tokens
GPT-Realtime-2.1Audio input $32, audio output $64 per million tokens
GPT-Realtime-2.1 miniAudio input $10, audio output $20 per million tokens
GPT-Live-1.1 voice sessions$0.05 a minute active, $0.02 a minute on standby
GPT-Transcribeabout $0.0045 a minute
text-embedding-3-small / large$0.02 / $0.13 per million tokens
omni-moderationFree

Fine-tuning is closed to new users. Existing users can keep training GPT-4.1 and GPT-4o ($25 per million training tokens) and their mini versions for now, and fine-tuned models stay available until their base models are retired. OpenAI models bought through Amazon Bedrock or Microsoft Azure are billed by those providers at their prices, not these.

Three worked monthly bills

These are our arithmetic on the rates above, checked on 30 November 2026. Every volume is an assumption, labelled as one. Your real token counts will differ, so treat the method as the useful part.

1. A customer support agent on GPT-6.2 Sol

Assumptions: 20,000 conversations a month, 6 model requests each (120,000 requests). Each request carries a 4,000-token stable prefix (instructions, policies, tool definitions), 2,000 tokens of conversation and 1,500 tokens of retrieved help-centre text, so 7,500 input tokens, and returns 400 output tokens including reasoning. One file search call per conversation and a 2 GB knowledge base.

LineArithmeticMonthly cost
Input, no caching120,000 x 7,500 = 900M tokens x $2$1,800.00
Output120,000 x 400 = 48M tokens x $10$480.00
File search calls20,000 x $2.50 per 1,000$50.00
File storage1 GB above the free GB x $0.10 x 30 days$3.00
Total without caching$2,333.00

Now cache the 4,000-token prefix with an explicit breakpoint, so only that part is written to the cache. Assume it is rewritten once every 30 minutes (1,440 writes a month) and read on every other request.

LineArithmeticMonthly cost
Cache writes1,440 x 4,000 = 5.76M tokens x $2.50$14.40
Cache reads118,560 x 4,000 = 474.24M tokens x $0.10$47.42
Uncached input120,000 x 3,500 = 420M tokens x $2$840.00
Output and toolsAs above$533.00
Total with caching$1,434.82

Caching cuts the bill by about 39%. Running the same traffic on GPT-6 Luna with no caching would be $90 input, $24 output and $53 in tool fees, about $167 a month, but only if Luna resolves tickets as well on your own test set. Our SaaS support automation playbook covers how to measure that.

2. Document extraction on GPT-6.1 Terra, with Batch and caching

Assumptions: 50,000 documents a month (invoices or forms), each sent as 3,000 tokens of text behind a 1,500-token stable prefix (instructions, JSON schema, two examples), returning 500 output tokens. Nobody waits on the result, so it can run overnight. We picked Terra because OpenAI positions it for visual reasoning; test Luna as well.

OptionArithmeticMonthly cost
Standard, no caching225M input x $1 + 25M output x $5$350.00
Standard, prefix cached1,000 writes x 1,500 tokens x $1.25 ($1.88) + 73.5M reads x $0.05 ($3.68) + 150M x $1 + $125 output$280.55
Background, 8-hour window$350 x 0.6$210.00
Batch API, no caching$350 x 0.5$175.00
Batch API, prefix cachedBatch rates are half of every Standard rate, including cache reads and writesabout $140.28
GPT-6 Luna, Standard, no caching225M x $0.10 + 25M x $0.50$35.00

Batch plus caching cuts the Terra bill by about 60%. Two caveats. Cache hits inside a batch are not guaranteed, so treat the last Terra row as a best case. And if the prefix were under 1,024 tokens it could not be cached at all; the caching guide suggests lengthening a short shared prefix with useful examples when the reuse pays for the extra tokens.

3. A coding agent on GPT-6.2 Astra or Sol

Assumptions: 400 agent tasks a month, 40 requests per task (16,000 requests). Each request has an 80,000-token context, of which 72,000 are read from cache and 8,000 are new tokens written to the 30-minute cache, and produces 2,000 output tokens including reasoning. Each task uses one 20-minute, 4 GB container and 5 web searches.

LineGPT-6.2 AstraGPT-6.2 Sol
Cache reads per request72,000 x $0.40 = $0.028872,000 x $0.10 = $0.0072
Cache writes per request8,000 x $10 = $0.088,000 x $2.50 = $0.02
Output per request2,000 x $40 = $0.082,000 x $10 = $0.02
Per request$0.1888$0.0472
16,000 requests$3,020.80$755.20
Containers (400 x $0.12)$48.00$48.00
Web search calls (2,000 x $10 per 1,000)$20.00$20.00
Monthly total$3,088.80$823.20

Search content tokens are extra, at model rates. Without caching, the same Astra workload would be 80,000 x $8 = $0.64 of input per request, or $11,520 a month in model tokens alone. In agent loops that resend a long, growing context, caching is the largest lever you have. A common split is Sol for most steps and Astra only for planning or final review.

Which model for which job

This is our starting recommendation, based on OpenAI's own model descriptions and the prices above (checked 30 November 2026 on the pricing page). Run your own evaluation before committing.

JobStart withWhy
Hard coding, long agent runs, final reviewGPT-6.2 Astra ($8 / $40)OpenAI's most capable model; use it where mistakes cost more than tokens
Support agents, everyday coding, agents at scaleGPT-6.2 Sol ($2 / $10)OpenAI's default for everyday work at a quarter of Astra's price
Reading documents and screenshots, computer use, writingGPT-6.1 Terra ($1 / $5)Positioned for visual reasoning and natural writing
Classification, routing, simple extraction, subagentsGPT-6 Luna ($0.10 / $0.50)Lowest-cost current model for high-volume tasks
Overnight or bulk jobsAny of the above on Batch50% off with a 24-hour turnaround
Live voiceGPT-Live-1.1 ($0.05 a minute) or GPT-Realtime-2.1 miniPriced per minute or per audio token
Search over your own documentstext-embedding-3-small ($0.02)Embeddings are a small share of most bills

The API is not ChatGPT

A ChatGPT subscription does not pay for API calls. ChatGPT's own pricing documentation says API-key usage is billed at separate API pricing, not from a ChatGPT allowance. On that page and chatgpt.com/pricing, checked on 30 November 2026, individual plans in the US are Free ($0), Go ($8 a month), Plus ($20) and Pro from $100, with Pro tiers at $100, $200 and $500. ChatGPT Business is $20 a seat a month billed annually or $25 monthly, and includes up to $500 a month in API credits for the workspace, subject to eligibility. Enterprise is priced on request. Choose ChatGPT for people chatting with a model. Choose the API when your own product or workflow calls the model, and you pay only for tokens and tools used.

Keeping the bill predictable

  • Set limits. Use project spend limits and max_output_tokens so one runaway loop cannot spend a month's budget in a night.
  • Cache deliberately. Put stable instructions, tool definitions and reference text first, and keep anything that changes after the last breakpoint.
  • Route by difficulty. Send easy steps to Luna or Terra and reserve Astra for the steps that need it.
  • Move anything that can wait to Batch or an 8-hour background window.
  • Re-check prices monthly. In 2026 OpenAI renamed priority processing, started winding down Flex and added cache-write charges. Our platform price tracker records changes like these.

The model bill is usually the smaller part of what an AI feature costs. Building, testing, monitoring and changing it costs more, as our breakdown of what an AI agent costs shows. If you are comparing providers, read our Claude API pricing guide and Qwen API pricing guide next to this one. When you want an agent built and run in production, our AI agent development service covers model choice, cost limits and the evaluation set that tells you which model is good enough.

Platforms · FAQ

Questions this raises

Short answers to the questions this article is written to settle.

How much does the OpenAI API cost?

It is pay as you go, per million tokens. Checked on OpenAI's pricing page on 30 November 2026: GPT-6.2 Astra is $8 input and $40 output, GPT-6.2 Sol $2 and $10, GPT-6.1 Terra $1 and $5, and GPT-6 Luna $0.10 and $0.50. Cached input, the Batch API and background completion windows lower those rates; Fast mode doubles them. Tools such as web search and file search have their own per-call fees.

What is the cheapest OpenAI model?

Among current models, GPT-6 Luna at $0.10 per million input tokens and $0.50 per million output tokens, checked on 30 November 2026. On the Batch API it is half that. The older GPT-5 nano has cheaper input ($0.05) but is an older model. Embedding models are cheaper still but do a different job.

How much does GPT mini cost?

Checked on 30 November 2026, GPT-5.4 mini is $0.75 per million input tokens and $4.50 per million output tokens, GPT-5 mini is $0.25 and $2, and GPT-4o mini is $0.15 and $0.60. The GPT-6 family has no mini model; GPT-6 Luna fills that role at $0.10 and $0.50.

How much does the OpenAI Batch API save?

OpenAI's Batch guide gives a 50% discount on token prices in exchange for completion within 24 hours, and Batch jobs have their own rate limit. For example, GPT-6.2 Sol drops from $2 and $10 to $1 and $5 per million tokens. If a job can wait two or eight hours instead, background completion windows take 30% or 40% off Standard rates on the newest models.

How does OpenAI prompt caching pricing work?

On GPT-5.6 and later, writing a prefix of at least 1,024 tokens to the cache costs 1.25 times the input rate for a 30-minute lifetime, or 2.5 times for 12 hours. Reading it back costs 0.05 times the input rate on GPT-6.2 Astra, GPT-6.2 Sol, GPT-6.1 Sol and GPT-6.1 Terra, and 0.1 times on most other recent models. Older models charge nothing extra for cache writes.

Are reasoning tokens billed?

Yes. OpenAI's reasoning guide says reasoning tokens are not visible through the API but are billed as output tokens. Lower the reasoning effort setting for simple tasks and set max_output_tokens to cap what a single request can spend.

Is ChatGPT Plus the same as the OpenAI API?

No. ChatGPT plans (Free, Go at $8, Plus at $20, Pro from $100 a month, checked 30 November 2026) pay for using ChatGPT. API usage is billed separately per token. ChatGPT Business includes up to $500 a month in API credits for the workspace, subject to eligibility, but individual plans do not cover API calls.

What is OpenAI priority processing now called?

Fast mode. OpenAI renamed priority processing to Fast mode on 30 July 2026. It runs up to 2.5 times faster and, on the GPT-6 models, costs twice the Standard rate, so GPT-6.2 Sol is $4 input and $20 output per million tokens. Ultrafast on GPT-6.2 models costs three times Standard until 28 February 2027 and six times from 1 March 2027.

Keep reading

Related insights

The next articles on the same decision.

Platforms

Claude API pricing in 2026: every model, caching, batch and three worked monthly bills

Claude API pricing, checked November 2026: Fable 5.2 $8/$40, Opus 5.5 $4/$20, Sonnet 5.5 $2/$10, Haiku 5.5 $…

Platforms

Qwen API pricing in 2026: every model, the free quota and three worked monthly bills

Qwen API pricing, checked November 2026: Max $1.50/$4.50, Plus $0.40/$1.60, Flash $0.15/$0.47 per million to…

AI Agents

How much does an AI agent cost in 2026? Build and running costs

AI agent cost, checked 30 October 2026: from $8,000 to about $150,000 to build, plus tokens and $3,000 to $2…

From our case studies

The same kind of work, with the numbers.

A published case study for the service this article leads to: what it cost, how long it took and what it changed.

Direct-to-consumer home goods brand on Shopify Plus, $12M annual revenue

A confidence-gated AI support agent now resolves 64% of tickets autonomously, cutting support costs 62% — $217,200 saved in year one.

$217,200
Annual savings
3,149/month (64%)
Tickets resolved by AI
4.2 hours → 6 minutes
First response time

Investment: $92,000 (Year 1 total) · Timeline: 10 weeks (2-week assessment + 8-week build)

Read the case study
Gigabit Agents

We build production AI agents for one flat fee per agent.

Agents start at $1,490, built, connected to the systems your team already uses, and deployed.