OpenAI API Pricing 2026: Every Model, Tier and Tool Cost
OpenAI API pricing at a glance (November 2026)
OpenAI bills the API per million tokens, with separate rates for input, cached input and output. The table below is the Standard tier for the current flagship models, taken from OpenAI's pricing page on November 25, 2026. "Short context" means a request with up to 272K input tokens.
|
Model |
Input / 1M |
Cached input / 1M |
Output / 1M |
Long context (>272K) input / output |
|---|---|---|---|---|
|
gpt-6.2-astra |
$8.00 |
$0.40 |
$40.00 |
$16.00 / $60.00 |
|
gpt-6.2-sol |
$2.00 |
$0.10 |
$10.00 |
$4.00 / $15.00 |
|
gpt-6-astra |
$10.00 |
$1.00 |
$50.00 |
$20.00 / $75.00 |
|
gpt-6.1-sol |
$2.00 |
$0.10 |
$10.00 |
$4.00 / $15.00 |
|
gpt-6.1-terra |
$1.00 |
$0.05 |
$5.00 |
$2.00 / $7.50 |
|
gpt-6-luna |
$0.10 |
$0.01 |
$0.50 |
$0.20 / $0.75 |
|
gpt-5.6-sol |
$4.00 |
$0.40 |
$20.00 |
$8.00 / $30.00 |
|
gpt-5.5 |
$5.00 |
$0.50 |
$30.00 |
$10.00 / $45.00 |
|
gpt-5.4 |
$2.50 |
$0.25 |
$15.00 |
$5.00 / $22.50 |
Three things stand out. Output costs five times input on every current model, so long answers drive the bill. Cached input on the GPT-6.2 models is 5% of the normal input rate. And the newer models are not always more expensive: gpt-6.2-sol costs half of gpt-5.6-sol for both input and output.
Prices change often, and OpenAI notes promotions with end dates (for example, GPT-5.6 Sol's promotional pricing runs until November 30, 2026), so check the live page before you sign off a budget.
Processing tiers: Batch, Flex, Fast, Ultrafast and background
The same model has different prices depending on how fast you need the answer:
|
Tier |
Price vs Standard |
What you trade |
|---|---|---|
|
Batch |
50% off (gpt-6.2-sol: $1.00 in / $5.00 out) |
Results within the batch window, not in real time |
|
Flex (beta) |
About 50% off on the models that still offer it |
Slower, may be queued; OpenAI is winding the beta down and adding it to no new models |
|
Background, 2-hour window |
30% off (GPT-6.2 Astra and Sol, GPT-6.1 Terra, GPT-6 Luna) |
Eligible background requests completed within 2 hours |
|
Background, 8-hour window |
40% off (same models) |
Completion within 8 hours |
|
Fast |
2x (gpt-6.2-sol: $4.00 in / $20.00 out) |
Lower latency; this was called Priority processing until July 30, 2026 |
|
Ultrafast |
6x (3x for GPT-6.2 Astra and Sol until February 28, 2027) |
Lowest latency |
If a job does not need an answer in seconds, such as nightly classification, embeddings backfills or evaluation runs, Batch or a background window is the single biggest saving available.
Prompt caching and cache writes
When the start of a prompt (system instructions, tool definitions, a long document) repeats across requests, the repeated part is billed at the cached input rate. The pricing page also lists cache write prices for storing a prefix with 30-minute or 12-hour retention: for gpt-6.2-sol that is $2.50 and $5.00 per million tokens, 1.25x and 2.5x the input rate. Writes cost more than normal input, so caching pays off only when a prefix is reused many times within its retention window.
To get cache hits, keep the static part of the prompt first and identical byte for byte, and put the variable part (the user's question) at the end.
Tools, embeddings and other line items
|
Item |
Price |
|---|---|
|
Web search |
$10.00 per 1,000 calls, plus search content tokens at the model's rates |
|
File search |
$2.50 per 1,000 tool calls; storage $0.10 per GB per day after 1 GB free |
|
Hosted Shell / Code Interpreter containers |
From $0.03 (1 GB) per 20-minute session |
|
text-embedding-3-small / -large |
$0.02 / $0.13 per 1M tokens |
|
omni-moderation-latest |
Free |
|
Data residency (regional processing) |
+10% for models released on or after March 5, 2026 |
Image, realtime audio and transcription models have their own tables on the same page. Fine-tuning is closed to new users; existing fine-tuned models stay available until their base models are deprecated. OpenAI models bought through Amazon Bedrock or Microsoft Azure are billed by those clouds at their own prices.
A worked cost example
A support assistant handles 100,000 requests a month. Each request sends 2,000 input tokens, of which 1,500 are a fixed system prompt and tool definitions, and gets back 400 output tokens. On gpt-6.2-sol at Standard rates:
|
Line |
Tokens per month |
Rate |
Cost |
|---|---|---|---|
|
Uncached input |
50M |
$2.00 |
$100 |
|
Cached input |
150M |
$0.10 |
$15 |
|
Output |
40M |
$10.00 |
$400 |
|
Total |
|
|
$515 |
Without cache hits, the same traffic costs $800 ($400 input plus $400 output), so caching saves about a third, minus cache-write charges, which are small when one prefix serves thousands of requests. Output is now 78% of the bill, so the next lever is shorter answers: a max_output_tokens cap or a "reply in under 150 words" instruction. Moving the same workload to gpt-6.2-astra would multiply every line by four.
For more ways to cut spend, the levers in our Claude API cost optimization guide (caching, batching, model routing, output limits) apply to OpenAI as well.
How to keep the bill predictable
- Set project budgets and alerts in the OpenAI dashboard, and use a separate API key per app so one runaway job is easy to find.
- Route by difficulty. Send simple classification or extraction to
gpt-6-lunaorgpt-6.1-terraand reserve Astra models for hard reasoning. - Watch reasoning effort. Reasoning tokens are billed as output, so a high
reasoning_efforton simple tasks inflates the output line. - Stay under 272K input tokens where you can; long-context requests pay double for input.
- Log
usagefrom every response (input, cached and output tokens) so you can reconcile against the invoice.
Comparing OpenAI with other vendors on rate tables alone can mislead; our LLM API pricing comparison explains the variables a price list leaves out.
FAQ
How much does the OpenAI API cost?
It depends on the model. In November 2026, gpt-6.2-sol costs $2.00 per million input tokens and $10.00 per million output tokens, gpt-6.2-astra costs $8.00 and $40.00, and gpt-6-luna costs $0.10 and $0.50, all at Standard rates.
Is the OpenAI API free?
Not in general. The API is pay-as-you-go and every model call is billed per token; only the moderation endpoint is free. The exception is API credits for ChatGPT subscribers: eligible Pro and Business plans can link an API organization and receive monthly credits, which expire at the end of each billing cycle.
What is the cheapest OpenAI model?
On the current flagship list, gpt-6-luna is the cheapest text model at $0.10 input and $0.50 output per million tokens, and Batch or Flex processing can halve that again.
How does Batch pricing work?
Batch requests are processed asynchronously and cost 50% of Standard for both input and output. They suit workloads that can wait, such as offline evaluation or bulk tagging.
Does a ChatGPT subscription include API usage?
Not on every plan. Eligible ChatGPT Pro plans include $100, $200 or $500 of monthly API credits by tier, and Business plans $20 per Standard seat or $100 per Premium seat (capped at $500 per workspace), once you link an API organization you own. When those credits run out, requests fail with HTTP 429 credit_balance_exhausted unless you have purchased credit.
The short version
For most production text workloads in late 2026, gpt-6.2-sol at $2 input and $10 output per million tokens is the default price point, with gpt-6.2-astra four times higher and gpt-6-luna twenty times lower. Output dominates the bill, cached input is 95% cheaper on GPT-6.2, Batch halves everything, and Fast doubles it. Recheck the live pricing page before committing a budget. To start sending requests, see our OpenAI API examples.