OpenAI API Pricing (October 2026)
OpenAI's current API tiers cost $10/$50 per million input/output tokens for GPT-6 Astra, $2/$10 for GPT-6.1 Sol, and $0.10/$0.50 for GPT-6 Luna. Cached input is $1, $0.10, and $0.01 per million on those three, and the Batch API halves standard rates. GPT-5.6 Sol stays on the price sheet at a promotional $4/$20 through at least November 21, 2026.
Current OpenAI token pricing runs from $0.10 per million input tokens (GPT-6 Luna) to $30/$180 (GPT-5.5 Pro), a 300x spread on input. The table below lists every OpenAI model in our pricing registry, maintained from OpenAI's pricing and model pages, with cached-input and Batch API rates alongside the headline numbers. GPT-6 Astra launched on September 3, 2026 and GPT-6.1 Sol on September 29; Astra, Sol, and Luna all list a 1.05M-token context window. GPT-6.1 Sol keeps GPT-6 Sol's $2/$10 rate and cuts cached input from $0.20 to $0.10.
For how the models perform per dollar, see the OpenAI model rankings and the price-vs-performance view.
OpenAI model pricing per 1M tokens
| Model | API model ID | Input $/M | Cached input $/M | Output $/M | Batch input $/M | Batch output $/M | Context | Price source |
|---|---|---|---|---|---|---|---|---|
| GPT-6 Astra | gpt-6-astraCurrent | $10 | $1 | $50 | $5 | $25 | 1.05M | OpenAI GPT-6 Astra model documentation |
| GPT-6.1 Sol | gpt-6.1-solCurrent | $2 | $0.1 | $10 | $1 | $5 | 1.05M | OpenAI GPT-6.1 Sol model documentation |
| GPT-6 Luna | gpt-6-lunaCurrent | $0.1 | $0.01 | $0.5 | $0.05 | $0.25 | 1.05M | OpenAI GPT-6 Luna model documentation |
| GPT-6 Sol | gpt-6-solCurrent | $2 | $0.2 | $10 | $1 | $5 | 1.05M | OpenAI GPT-6 Sol model documentation |
| GPT-5.6 Sol | gpt-5.6-solCurrent | $4 | $0.4 | $20 | $2 | $10 | 1.05M | OpenAI pricing |
| GPT-5.6 Terra | gpt-5.6-terraCurrent | $2 | $0.2 | $12 | $1 | $6 | 1.05M | OpenAI pricing |
| GPT-5.6 Luna | gpt-5.6-lunaCurrent | $0.2 | $0.02 | $1.2 | $0.1 | $0.6 | 1.05M | OpenAI pricing |
| GPT-5.5 | gpt-5.5Current | $5 | $0.5 | $30 | $2.5 | $15 | 1M | OpenAI pricing |
| GPT-5.4 | gpt-5.4Current | $2.5 | $0.25 | $15 | $1.25 | $7.5 | 1.05M | OpenAI pricing |
| GPT-5.4 mini | gpt-5.4-miniCurrent | $0.75 | $0.075 | $4.5 | $0.375 | $2.25 | 400K | OpenAI pricing |
| GPT-5.4 nano | gpt-5.4-nanoCurrent | $0.2 | $0.02 | $1.25 | $0.1 | $0.625 | 400K | OpenAI pricing |
| GPT-5.5 Pro | gpt-5.5-proCurrent | $30 | — | $180 | $15 | $90 | 1M | OpenAI pricing |
| o1-pro | — | $150 | — | $600 | $75 | $300 | 200K | — |
| GPT-5.4 Pro | gpt-5.4-proCurrent | $30 | — | $180 | $15 | $90 | 1.05M | OpenAI pricing |
| GPT-5.2 Pro | gpt-5.2-proDeprecated | $21 | — | $168 | $10.5 | $84 | 400K | OpenAI GPT-5.2 Pro model documentation |
| o3-pro | — | $20 | — | $80 | $10 | $40 | 200K | — |
| o1 | — | $15 | — | $60 | $7.5 | $30 | 200K | — |
| GPT-4 Turbo | — | $10 | — | $30 | $5 | $15 | 128K | — |
| GPT Realtime 2 | gpt-realtime-2Current | $4 | $0.4 | $24 | $2 | $12 | 128K | OpenAI model documentation |
| GPT Realtime 2.1 | gpt-realtime-2.1Current | $4 | $0.4 | $24 | $2 | $12 | 128K | OpenAI model documentation |
| GPT Realtime | gpt-realtimeCurrent | $4 | $0.4 | $16 | $2 | $8 | 32K | OpenAI model documentation |
| GPT Realtime 1.5 | gpt-realtime-1.5Current | $4 | $0.4 | $16 | $2 | $8 | 32K | OpenAI model documentation |
| GPT Audio 1.5 | gpt-audio-1.5Current | $2.5 | — | $10 | $1.25 | $5 | 128K | OpenAI model documentation |
| GPT-4o | — | $2.5 | — | $10 | $1.25 | $5 | 128K | — |
| GPT-4o Audio | gpt-4o-audio-previewCurrent | $2.5 | — | $10 | $1.25 | $5 | 128K | OpenAI model documentation |
| GPT-4.1 | — | $2 | — | $8 | $1 | $4 | 1M | — |
| o3 | — | $2 | — | $8 | $1 | $4 | 200K | — |
| GPT-5.2 | — | $1.75 | — | $14 | $0.875 | $7 | 400K | — |
| GPT-5.2-Codex | — | $1.75 | — | $14 | $0.875 | $7 | 400K | — |
| GPT-5.3 Codex | — | $1.75 | — | $14 | $0.875 | $7 | 400K | — |
| GPT-5.3 Instant | — | $1.75 | — | $14 | $0.875 | $7 | 128K | — |
| GPT-5.2 Instant | — | $1.5 | — | $6 | $0.75 | $3 | 128K | — |
| GPT-5 (high) | — | $1.25 | — | $10 | $0.625 | $5 | 400K | — |
| GPT-5.1 | — | $1.25 | — | $10 | $0.625 | $5 | 400K | — |
| GPT-5.1-Codex | gpt-5.1-codexDeprecated | $1.25 | $0.125 | $10 | $0.625 | $5 | 400K | OpenAI GPT-5.1-Codex model documentation |
| GPT-5.1-Codex-Max | — | $1.25 | $0.125 | $10 | $0.625 | $5 | 400K | OpenAI GPT-5.1-Codex-Max model documentation |
| o3-mini | — | $1.1 | — | $4.4 | $0.55 | $2.2 | 200K | — |
| o4-mini | — | $1.1 | — | $4.4 | $0.55 | $2.2 | 200K | — |
| GPT-4o mini TTS | gpt-4o-mini-ttsCurrent | $0.6 | — | $12 | $0.3 | $6 | 2K | OpenAI GPT-4o mini TTS model documentation |
| GPT Realtime 2.1 Mini | gpt-realtime-2.1-miniCurrent | $0.6 | $0.06 | $2.4 | $0.3 | $1.2 | 128K | OpenAI model documentation |
| GPT Realtime mini | gpt-realtime-miniCurrent | $0.6 | $0.06 | $2.4 | $0.3 | $1.2 | 32K | OpenAI model documentation |
| GPT-4.1 mini | — | $0.4 | — | $1.6 | $0.2 | $0.8 | 1M | — |
| GPT-5 mini | — | $0.25 | — | $2 | $0.125 | $1 | 128K | — |
| GPT-4o mini | — | $0.15 | — | $0.6 | $0.075 | $0.3 | 128K | — |
| GPT-4o mini Audio | gpt-4o-mini-audio-previewCurrent | $0.15 | — | $0.6 | $0.075 | $0.3 | 128K | OpenAI model documentation |
| GPT-4.1 nano | — | $0.1 | — | $0.4 | $0.05 | $0.2 | 1M | — |
| GPT-5 nano | — | $0.05 | — | $0.4 | $0.025 | $0.2 | 400K | — |
Cached input is shown only where OpenAI explicitly publishes a rate. GPT-6.1 Sol lists cache reads at 5% of standard input; GPT-6 Astra, GPT-6 Luna, and the GPT-5.4 to 5.6 tiers list 10%. Cache writes on the GPT-6 tiers cost 1.25x standard input. Batch columns apply OpenAI's published 50% Batch rates. Regional-processing uplifts are not included.
OpenAI API pricing calculator
| Model | Est. monthly cost |
|---|---|
| GPT-6 Astra | $200 |
| GPT-6.1 Sol | $40 |
| GPT-6 Luna | $2 |
| GPT-6 Sol | $40 |
| GPT-5.6 Sol | $80 |
| GPT-5.6 Terra | $44 |
| GPT-5.6 Luna | $4.4 |
| GPT-5.5 | $110 |
Estimates use OpenAI's standard per-token rates from the table above. For token-level presets and cross-provider comparison, use the full LLM API pricing calculator.
Short-context and long-context OpenAI token pricing
The headline rates apply to short-context requests. On the GPT-6 tiers, a prompt above 272K input tokens bills the whole request at 2x input and cache rates and 1.5x output: GPT-6 Astra rises from $10/$50 to $20/$75 per million input/output tokens, GPT-6.1 Sol from $2/$10 to $4/$15, and GPT-6 Luna from $0.10/$0.50 to $0.20/$0.75.
GPT-5.6 Sol has its own long-context tier ($8/$30 above 272K input tokens), and GPT-5.4 also lists higher long-context rates. The calculator above uses short-context rates, so long prompts need the higher meter applied before a budget is approved. OpenAI also lists a 10% regional-processing uplift where regional processing is available.
Cached input and Batch API: how to pay half or less
Cached input is automatic: repeated prompt prefixes (system prompts, tool definitions, shared context) bill at the cached rate, $1 per million instead of $10 on GPT-6 Astra. Cache writes on the GPT-6 tiers cost 1.25x standard input, so a prefix that is read back even once costs less than sending it twice uncached. GPT-6.1 Sol's cached rate is 5% of its input price, half GPT-6 Sol's.
The Batch API takes 50% off input and output for asynchronous jobs. On the GPT-6 tiers, Flex is also billed at half the standard rate and Fast mode at 2x. Model your own mix with the LLM API pricing calculator or the estimator above.
OpenAI API pricing is separate from ChatGPT plans
An OpenAI API key has no monthly subscription fee. Usage is billed from the token, tool, storage, and processing meters attached to the API account. ChatGPT Free, Go, Plus, Pro, Business, and Enterprise are separate products with per-user or plan pricing; paying for ChatGPT does not create a pool of API credits.
Use this page for application and agent workloads billed through an API key. For the consumer-plan decision, see the current ChatGPT Plus analysis. For hosted OpenAI models with Azure routing and residency controls, compare the Azure LLM pricing table.
Which OpenAI model should you pay for?
Start cheap and move up when your own evals show a quality gap. GPT-6 Luna ($0.10/$0.50) covers classification, extraction, and routing. GPT-6.1 Sol ($2/$10) costs 20x Luna on both rates and is the middle tier. GPT-6 Astra ($10/$50) is the flagship at 5x Sol, for the coding, reasoning, and agentic work where Sol falls short in testing. GPT-5.5 Pro ($30/$180) costs about 3x as much as Astra on input and 3.6x as much as Astra on output, so it only makes sense when evaluation results show Astra isn't enough.
The older tiers no longer save money: GPT-5.6 Sol's promotional $4/$20 and GPT-5.4's $2.50/$15.00 both cost more than GPT-6.1 Sol. Staying on them is a choice about behavior you've already validated, not about price.
OpenAI vs Claude and Gemini pricing
GPT-6 Astra lists $10/$50 per million input/output tokens and GPT-6.1 Sol lists $2/$10. Claude Fable 5.1 lists the same rates as Astra. Claude Sonnet 5 matches Sol. Gemini 3.1 Pro lists $2/$12 on prompts up to 200K tokens, the same input rate and about 20% more than Sol on output. GPT-5.6 Sol's promotional $4/$20 matches Claude Opus 5.5.
With prices this close, benchmarks decide it: see the table above next to the Claude API pricing hub, or pick any pair on the compare hub. GPT-6 Astra compared with Google's Gemini 3.8 Flash puts the benchmark scores beside the rates.
OpenAI API pricing FAQ
How much does the OpenAI API cost?
Current OpenAI API pricing runs from $0.10 per million input tokens (GPT-6 Luna) to $30/$180 (GPT-5.5 Pro). The flagship, GPT-6 Astra, costs $10/$50 per million input/output tokens, with GPT-6.1 Sol at $2/$10 and GPT-6 Luna at $0.10/$0.50.
Does an OpenAI API key cost money?
The API key itself is free — you pay only for the tokens you use, billed per million input and output tokens at the rates in the table above. There is no standing free tier; new accounts may receive trial credits, and costs scale directly with usage from there.
How much does the ChatGPT API cost?
"ChatGPT API" refers to the same OpenAI API used to access GPT models programmatically — the ChatGPT consumer subscription ($20/month Plus) is separate. API access bills per token at the rates in the table: GPT-6 Astra at $10/$50, GPT-6.1 Sol at $2/$10, and GPT-6 Luna at $0.10/$0.50 per million input/output tokens.
What is GPT API pricing for older models like GPT-5.4 and GPT-5.1?
OpenAI still publishes rates for earlier families: GPT-5.4 at $2.50/$15.00 (mini $0.75/$4.50, nano $0.20/$1.25) and GPT-5.1 at $1.25/$10. The GPT-5.4 tiers list cached input at 10% and take the 50% Batch discount. Check them against GPT-6.1 Sol at $2/$10 before assuming an older model is the cheaper choice.