OpenAI API Pricing (2026): Every Model + Cost Calculator
Short answer: OpenAI API pricing is pay per token, with no monthly fee. As of November 2026, GPT-6 Astra costs $10 per million input tokens and $50 per million output, GPT-6.1 Sol $2 and $10, GPT-6.1 Terra $1 and $5, and GPT-6 Luna $0.10 and $0.50. Cached input is up to 95% cheaper and the Batch API halves every rate.
TL;DR
- Formula: cost = input tokens × input price ÷ 1M + output tokens × output price ÷ 1M.
- Default pick: GPT-6.1 Sol ($2 / $10). A 1,500-token prompt with a 500-token reply costs $0.008.
- Cheapest: GPT-6 Luna ($0.10 / $0.50), 20 times cheaper than Sol.
- Discounts: cached input (Sol: $0.10), Batch and Flex (50% off). Fast mode costs about double.
- Gotchas: reasoning tokens bill as output, and prompts over 272K tokens cost about 2x on input.
- Audio: Whisper is $0.006 a minute.
All prices below are USD, Standard tier, from OpenAI’s API pricing page, checked on 14 November 2026.
How much does each OpenAI API model cost per token?
OpenAI’s four current flagship models are GPT-6 Astra, GPT-6.1 Sol, GPT-6.1 Terra and GPT-6 Luna, and on all four, output tokens cost five times as much as input tokens. OpenAI token pricing is quoted per million tokens (1M), and one token is roughly four characters of English text.
| Model | Input ($/1M) | Cached input ($/1M) | Output ($/1M) | Best for |
|---|---|---|---|---|
| GPT-6 Astra | $10.00 | $1.00 | $50.00 | Hardest reasoning and coding |
| GPT-6.1 Sol | $2.00 | $0.10 | $10.00 | Near-Astra quality, everyday default |
| GPT-6.1 Terra | $1.00 | $0.05 | $5.00 | Fast work, writing, computer use |
| GPT-6 Luna | $0.10 | $0.01 | $0.50 | High-volume classification, extraction |
| GPT-6 Sol (previous) | $2.00 | $0.20 | $10.00 | Superseded by GPT-6.1 Sol |
OpenAI’s models page describes Astra as its “most capable model for the most demanding work” and recommends it if you are unsure where to start. In practice most teams start on Sol and only move a task to Astra when Sol gets it wrong, because Astra costs five times as much. All four flagships list a 1.05M-token context window.
Note that GPT-6 Sol and GPT-6.1 Sol have the same headline price, but 6.1 halves the cached input rate. If you are still pinned to gpt-6-sol, switching is a free saving on any prompt with a long reused prefix.
What do older GPT models cost (GPT-5, GPT-4o, o3)?
Older models are still on the price list, and a few are cheaper on paper: gpt-5-nano ($0.05 / $0.40) undercuts GPT-6 Luna on both input and output, though it is a previous generation. Here are the ones people still search for, as of November 2026:
| Model | Input ($/1M) | Cached input ($/1M) | Output ($/1M) |
|---|---|---|---|
| GPT-5.6 Sol | $4.00 | $0.40 | $20.00 |
| GPT-5.5 | $5.00 | $0.50 | $30.00 |
| GPT-5.4 | $2.50 | $0.25 | $15.00 |
| GPT-5.4 mini | $0.75 | $0.075 | $4.50 |
| GPT-5.4 nano | $0.20 | $0.02 | $1.25 |
| GPT-5 | $1.25 | $0.125 | $10.00 |
| GPT-5 mini | $0.25 | $0.025 | $2.00 |
| GPT-5 nano | $0.05 | $0.005 | $0.40 |
| GPT-4.1 | $2.00 | $0.50 | $8.00 |
| GPT-4o | $2.50 | $1.25 | $10.00 |
| GPT-4o mini | $0.15 | $0.075 | $0.60 |
| o3 | $2.00 | $0.50 | $8.00 |
The “pro” variants are in a different bracket: gpt-5.5-pro and gpt-5.4-pro are $30 input and $180 output per million. OpenAI also notes that GPT-5.6 Sol’s current price is a promotion running through 30 November 2026, so check the page before you budget on it.
GPT-3 and GPT-3.5 Turbo no longer appear on the pricing page. If you have an old “gpt3 API cost” estimate, redo it on GPT-6 Luna, which is the closest modern equivalent in price.
What is the ChatGPT API, and is it priced differently?
There is no separate ChatGPT API: “ChatGPT API pricing” means the OpenAI API pricing above. GPT API pricing is per token for whichever model you call, and the ChatGPT app subscriptions (Plus, Pro) do not include API credit.
OpenAI does list a chat-latest model on the API at $5 input and $30 output per million, which tracks the model used in ChatGPT. It costs more than GPT-6.1 Sol, so it only makes sense if you specifically want ChatGPT’s behaviour in your app.
For a side-by-side of the ChatGPT API price against Claude, Gemini and the other providers, see our LLM API pricing comparison.
How do you calculate OpenAI API cost?
Add input cost and output cost: (input tokens × input price ÷ 1,000,000) + (output tokens × output price ÷ 1,000,000). Every request returns a usage object with the exact token counts, so you can check any estimate against reality.
- Count input tokens. Include the system prompt, tool definitions and the whole conversation history, not just the latest message. Rough rule: 1 token ≈ 4 characters or 0.75 English words. For an exact count, paste text into OpenAI’s tokenizer.
- Estimate output tokens. Summaries run 10% to 30% of the input; code generation is often close to the input length.
- Add reasoning tokens. OpenAI’s reasoning guide says reasoning tokens are not visible but “are billed as output tokens”. Check
output_tokens_details.reasoning_tokensin the response to see how many you paid for. - Split cached input. Tokens served from the prompt cache are billed at the cached rate.
- Apply the tier. Halve for Batch or Flex, roughly double for Fast mode.
Here is the same calculator as a few lines of Python you can paste into a notebook:
PRICES = { # USD per 1M tokens: (input, cached input, output), Nov 2026
"gpt-6-astra": (10.00, 1.00, 50.00),
"gpt-6.1-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),
}
def openai_cost(model, input_tokens, output_tokens, cached_tokens=0, batch=False):
inp, cached, out = PRICES[model]
cost = ((input_tokens - cached_tokens) * inp
+ cached_tokens * cached
+ output_tokens * out) / 1_000_000
return cost / 2 if batch else cost
print(openai_cost("gpt-6.1-sol", 3_000, 1_500)) # 0.021
In a spreadsheet, the same thing is =(A2*2 + B2*10)/1000000 for GPT-6.1 Sol, with input tokens in A2 and output tokens in B2.
How much does a typical OpenAI API request cost?
A typical chat reply (1,500 tokens in, 500 out) costs $0.008 on GPT-6.1 Sol and $0.0004 on GPT-6 Luna. These worked examples use Standard prices with no caching, as of November 2026:
| Task | Input tokens | Output tokens | GPT-6 Luna | GPT-6.1 Terra | GPT-6.1 Sol | GPT-6 Astra |
|---|---|---|---|---|---|---|
| Chat reply | 1,500 | 500 | $0.0004 | $0.004 | $0.008 | $0.04 |
| Code review, one file | 3,000 | 1,500 | $0.001 | $0.011 | $0.021 | $0.105 |
| Summarise a long document | 10,000 | 1,000 | $0.0015 | $0.015 | $0.03 | $0.15 |
| 5-turn debugging chat | 60,000 | 7,500 | $0.010 | $0.098 | $0.195 | $0.975 |
The debugging row shows why chats get expensive. Each turn resends everything before it, so five turns of 3,000 new input tokens and 1,500 output tokens add up to 3,000 + 7,500 + 12,000 + 16,500 + 21,000 = 60,000 input tokens, not 15,000.
What does a production app cost per month?
Take a support bot with 100,000 conversations a month, each sending 2,000 input tokens (1,500 of them a fixed system prompt) and getting 400 output tokens back:
| Setup | Input cost | Output cost | Monthly total |
|---|---|---|---|
| GPT-6.1 Sol, no caching | $400 | $400 | $800 |
| GPT-6.1 Sol, system prompt cached | $115 | $400 | $515 |
| GPT-6.1 Sol, Batch (not real-time) | $200 | $200 | $400 |
| GPT-6 Luna, no caching | $20 | $20 | $40 |
Caching only discounts input, so on output-heavy workloads the model choice matters far more than the cache.
How do prompt caching, Batch and Fast mode change the price?
Prompt caching, Batch and Flex lower the price; Fast mode and long prompts raise it. The table shows each modifier against Standard pricing as of November 2026:
| Modifier | Effect on price | When it applies |
|---|---|---|
| Cached input | GPT-6.1 Sol: $0.10 vs $2.00 (95% off) | Repeated prompt prefix of 1,024+ tokens (GPT-5.6 and later) |
| Batch API | About 50% off input and output | Async jobs, results within 24 hours |
| Flex | Same as Batch for most models | Slower, lower-priority synchronous calls |
| Fast mode (formerly Priority) | About 2x Standard | Lower latency |
| Long context (over 272K input tokens) | About 2x input, 1.5x output | Very large prompts on flagship models |
| Regional processing / FedRAMP | +10% | Data-residency endpoints |
According to OpenAI’s prompt caching guide, caching is on by default for supported models and needs no setup. One change to know: on GPT-5.6 and later, writing to the cache costs 1.25x the normal input rate for the default 30-minute lifetime, or 2.5x for a 12-hour lifetime. A prompt reused a few times inside that window still comes out far cheaper. Put the fixed parts of your prompt (instructions, tool definitions, examples) first and the changing parts last, or the cache never hits.
Priority processing was renamed Fast mode on 30 July 2026, so older guides that mention “Priority” mean the same tier.
How much do Whisper, TTS, images and embeddings cost?
OpenAI Whisper pricing, like the rest of audio and embeddings, is per minute, per character or per token, separate from the chat models. As of November 2026:
| Service | Model | Price |
|---|---|---|
| Speech to text | Whisper | $0.006 per minute ($0.36 per hour) |
| Speech to text | gpt-transcribe | $0.0045 per minute |
| Speech to text | gpt-4o-mini-transcribe | $0.003 per minute |
| Text to speech | tts-1 / tts-1-hd | $15 / $30 per 1M characters |
| Realtime voice | gpt-realtime-2.1 (audio) | $32 input / $64 output per 1M tokens |
| Embeddings | text-embedding-3-small / -large | $0.02 / $0.13 per 1M tokens |
| Image generation | gpt-image-2 (image tokens) | $8 input / $30 output per 1M tokens |
| Web search tool | Responses API | $10 per 1,000 calls, plus content tokens |
| Moderation | omni-moderation-latest | Free |
Image generation is billed in image tokens, so the cost per picture depends on size and quality. OpenAI’s image generation guide has its own calculator for that.
Is the OpenAI API cheaper than ChatGPT Plus?
For most individuals, yes, unless you chat for hours a day. ChatGPT Plus costs $20 a month with no annual option. At $0.008 per typical GPT-6.1 Sol reply, $20 buys about 2,500 replies, roughly 80 a day, and on GPT-6 Luna it buys about 50,000.
The catch is context. Long conversations with pasted files resend everything on each turn, so a heavy coding session can cost dollars on the API, while Plus is flat. Plus also includes the ChatGPT app features (voice, file uploads, memory) that you would have to build yourself on the API. If you mainly code, compare against Codex’s plan limits too; our guide to Codex usage limits covers those.
How does OpenAI API pricing compare to Claude?
At the mid and low tiers the two are now priced identically. As of November 2026, Anthropic’s pricing page lists Claude Sonnet 5.5 at $2 input and $10 output per million, the same as GPT-6.1 Sol, and Claude Haiku 5.5 at $0.10 and $0.50 (for prompts up to 100,000 tokens), the same as GPT-6 Luna.
| Tier | OpenAI | Price ($/1M in / out) | Anthropic | Price ($/1M in / out) |
|---|---|---|---|---|
| Top | GPT-6 Astra | $10 / $50 | Claude Fable 5.2 | $8 / $40 |
| Upper mid | (none) | Claude Opus 5.5 | $4 / $20 | |
| Default | GPT-6.1 Sol | $2 / $10 | Claude Sonnet 5.5 | $2 / $10 |
| Cheapest | GPT-6 Luna | $0.10 / $0.50 | Claude Haiku 5.5 | $0.10 / $0.50 |
With list prices this close, the real difference is how many tokens each model spends to finish your task, which you only learn by measuring. Our Claude vs OpenAI pricing breakdown goes model by model, and the Claude API pricing guide covers Anthropic’s caching rules.
How can you track OpenAI API costs as you spend?
OpenAI’s own Usage dashboard in the platform settings shows spend by model and day, and you can set budget alerts there. It is the source of truth for billing, but you have to open a browser tab to see it.
FavTray is a macOS menu bar app with developer and productivity tools, free with daily limits on some tools, and $4.99 once for Lifetime. Its AI Usage Tracker is free in full: it shows OpenAI API spend (you add your API key once) and Codex cost next to Claude, with today, 7-day and 30-day totals, computed on your Mac with no FavTray server in between. We make FavTray, so weigh our take accordingly. If you want team-level tracing and per-request logs, a hosted tool from our AI usage tracking tools comparison does that better.
For one total across every AI subscription and API, see how to track total AI spending across all tools.
What reduces OpenAI API costs the most?
Choosing a cheaper model for the task is the biggest lever: moving a task from GPT-6.1 Sol to GPT-6 Luna cuts its cost by 95%. After that, in rough order of impact:
- Route by difficulty. Send classification, extraction and formatting to Luna or Terra; keep Sol and Astra for the hard calls.
- Use Batch for anything not real-time. Evals, backfills and nightly summaries get 50% off.
- Order prompts for caching. Static instructions first, user input last.
- Trim history. Summarise old turns or use a sliding window instead of resending the whole chat.
- Cap output. Set
max_output_tokens, but leave room for reasoning: OpenAI suggests reserving at least 25,000 tokens when you start with reasoning models, because a request that hits the cap mid-reasoning still bills you with no answer. - Stay under 272K input tokens where you can, to avoid the long-context rate.
For more, our guide to reducing AI API costs covers techniques that work across providers. If you want spend in your menu bar while you build, FavTray is free to try, and Lifetime is on the pricing page.
Frequently Asked Questions
How much does the OpenAI API cost?
As of November 2026, OpenAI charges per million tokens, with output costing five times input on its current models. GPT-6 Astra is $10 input and $50 output, GPT-6.1 Sol is $2 and $10, GPT-6.1 Terra is $1 and $5, and GPT-6 Luna is $0.10 and $0.50. Cached input is 90% to 95% cheaper, and the Batch API halves the price. There is no monthly fee.
What is the ChatGPT API price per token?
There is no separate ChatGPT API; developers use the OpenAI API and pay per token for the GPT model they pick. As of November 2026, GPT-6.1 Sol costs $0.000002 per input token and $0.00001 per output token ($2 and $10 per million). The cheapest current model, GPT-6 Luna, is $0.0000001 per input token and $0.0000005 per output token.
Is the OpenAI API cheaper than ChatGPT Plus?
For light use, usually yes. ChatGPT Plus is $20 a month. A typical 1,500-token prompt with a 500-token answer costs about $0.008 on GPT-6.1 Sol, so $20 buys roughly 2,500 such replies, or about 80 a day. On GPT-6 Luna the same reply costs $0.0004. Long multi-turn chats resend history every turn, so heavy chat users can spend more on the API.
How do I calculate OpenAI API cost?
Multiply input tokens by the input price and output tokens by the output price, each divided by one million, then add them. For example, 3,000 input and 1,500 output tokens on GPT-6.1 Sol cost (3,000 × $2 + 1,500 × $10) ÷ 1,000,000 = $0.021. Reasoning tokens count as output, and cached input uses the lower cached rate.
How much does OpenAI Whisper cost?
As of November 2026, Whisper costs $0.006 per minute of audio through the OpenAI API, which is $0.36 per hour. gpt-4o-mini-transcribe is half that at $0.003 per minute, and the newer gpt-transcribe is $0.0045 per minute. Text-to-speech is billed separately: tts-1 costs $15 per million characters.
What is the cheapest OpenAI API model?
For text, GPT-6 Luna is the cheapest current model at $0.10 per million input tokens and $0.50 per million output tokens as of November 2026, and Batch or Flex halves that to $0.05 and $0.25. The older gpt-5-nano is slightly cheaper ($0.05 input, $0.40 output) but is a previous generation. For embeddings, text-embedding-3-small costs $0.02 per million tokens.