OpenAI API pricing
As of December 4, 2026, the OpenAI API prices run from $0.15 to $180.00 per million output tokens across 63 models, as listed on OpenRouter. gpt-oss-20b is the cheapest paid model at $0.035 input and $0.15 output per million tokens, and GPT-5.5 Pro the most expensive at $30.00 input and $180.00 output.
GPT-6.2 Astra ranks first among OpenAI models in our Vibe Coding Index, at 83.8 on 4 benchmarks. 18 of 63 OpenAI models have any benchmark score. Cost per solved task is known for 19 of 63 models.
| Model | Input $/Mtok | Output $/Mtok | Context | Evidence | Index | Cost per solved task |
|---|---|---|---|---|---|---|
| GPT-6.2 Astra | $8.00 | $40.00 | 1.05M | 83.8 | No run cost | |
| GPT-6.2 Astra Pro | $8.00 | $40.00 | 1.05M | Not benchmarked | No run cost | |
| GPT-6.2 Sol | $2.00 | $10.00 | 1.05M | 80.7 | No run cost | |
| GPT-6.2 Sol Pro | $2.00 | $10.00 | 1.05M | Not benchmarked | No run cost | |
| GPT-6.1 Terra | $1.00 | $5.00 | 1.05M | 74.3 | No run cost | |
| GPT-6.1 Terra Pro | $1.00 | $5.00 | 1.05M | Not benchmarked | No run cost | |
| GPT-6.1 Sol | $2.00 | $10.00 | 1.05M | 76.6 | No run cost | |
| GPT-6.1 Sol Pro | $2.00 | $10.00 | 1.05M | Not benchmarked | No run cost | |
| GPT-6 Luna | $0.10 | $0.50 | 1.05M | 51.1 | No run cost | |
| GPT-6 Luna Pro | $0.10 | $0.50 | 1.05M | Not benchmarked | No run cost | |
| GPT-6 Sol | $2.00 | $10.00 | 1.05M | 67.5 | No run cost | |
| GPT-6 Sol Pro | $2.00 | $10.00 | 1.05M | Not benchmarked | No run cost | |
| GPT-6 Astra | $10.00 | $50.00 | 1.05M | 81.0 | No run cost | |
| GPT-6 Astra Pro | $10.00 | $50.00 | 1.05M | Not benchmarked | No run cost | |
| GPT-5.6 Luna | $0.20 | $1.20 | 1.05M | 48.6 | $0.04 | |
| GPT-5.6 Luna Pro | $0.20 | $1.20 | 1.05M | Not benchmarked | No run cost | |
| GPT-5.6 Sol | $5.00 | $30.00 | 1.05M | 67.6 | $1.20 | |
| GPT-5.6 Sol Pro | $5.00 | $30.00 | 1.05M | Not benchmarked | No run cost | |
| GPT-5.6 Terra | $2.00 | $12.00 | 1.05M | 60.8 | $0.42 | |
| GPT-5.6 Terra Pro | $2.00 | $12.00 | 1.05M | Not benchmarked | No run cost | |
| GPT Chat Latest | $5.00 | $30.00 | 400K | Not benchmarked | No run cost | |
| GPT-5.5 | $5.00 | $30.00 | 1.05M | 66.9 | $1.65 | |
| GPT-5.5 Pro | $30.00 | $180.00 | 1.05M | Not benchmarked | No run cost | |
| GPT-5.4 Image 2 | $8.00 | $15.00 | 272K | Not benchmarked | No run cost | |
| GPT-5.4 Mini | $0.75 | $4.50 | 400K | 32.1 | $0.70 | |
| GPT-5.4 Nano | $0.20 | $1.25 | 400K | Not enough data | $0.14 | |
| GPT-5.4 | $2.50 | $15.00 | 1.05M | 61.9 | $1.02 | |
| GPT-5.4 Pro | $30.00 | $180.00 | 1.05M | Not benchmarked | No run cost | |
| GPT-5.3-Codex | $1.75 | $14.00 | 400K | 58.6 | $0.59 | |
| GPT Audio | $2.50 | $10.00 | 128K | Not benchmarked | No run cost | |
| GPT Audio Mini | $0.60 | $2.40 | 128K | Not benchmarked | No run cost | |
| GPT-5.2-Codex | $1.75 | $14.00 | 400K | 51.4 | $0.43 | |
| GPT-5.2 | $1.75 | $14.00 | 400K | 58.0 | $1.91 | |
| GPT-5.2 Chat | $1.75 | $14.00 | 128K | Not benchmarked | No run cost | |
| GPT-5.2 Pro | $21.00 | $168.00 | 400K | Not benchmarked | No run cost | |
| GPT-5.1-Codex-Max | $1.25 | $10.00 | 400K | Not benchmarked | No run cost | |
| GPT-5.1 | $1.25 | $10.00 | 400K | 53.2 | $1.02 | |
| GPT-5.1-Codex | $1.25 | $10.00 | 400K | Not enough data | $0.892 | |
| GPT-5.1-Codex-Mini | $0.25 | $2.00 | 400K | Not enough data | No run cost | |
| gpt-oss-safeguard-20b | $0.12 | $0.28 | 131K | Not benchmarked | No run cost | |
| GPT-5 Image | $10.00 | $10.00 | 400K | Not benchmarked | No run cost | |
| GPT-5 Pro | $15.00 | $120.00 | 400K | Not benchmarked | No run cost | |
| GPT-5 | $1.25 | $10.00 | 400K | 53.8 | $0.39 | |
| GPT-5 Mini | $0.25 | $2.00 | 400K | Not enough data | $0.08 | |
| GPT-5 Nano | $0.05 | $0.40 | 400K | Not benchmarked | $0.109 | |
| gpt-oss-120b | $0.10 | $0.50 | 131K | Not enough data | $0.51 | |
| gpt-oss-20b | $0.035 | $0.15 | 131K | Not benchmarked | No run cost | |
| o3 Pro | $20.00 | $80.00 | 200K | Not benchmarked | No run cost | |
| o3 | $2.00 | $8.00 | 200K | Not benchmarked | $0.571 | |
| GPT-4.1 | $2.00 | $8.00 | 1.05M | Not benchmarked | $0.37 | |
| GPT-4.1 Mini | $0.40 | $1.60 | 1.05M | Not benchmarked | $1.818 | |
| GPT-4.1 Nano | $0.10 | $0.40 | 1.05M | Not benchmarked | No run cost | |
| GPT-4o (2024-11-20) | $2.50 | $10.00 | 128K | Not benchmarked | No run cost | |
| GPT-4o (2024-08-06) | $2.50 | $10.00 | 128K | Not benchmarked | No run cost | |
| GPT-4o-mini | $0.15 | $0.60 | 128K | Not benchmarked | No run cost | |
| GPT-4o-mini (2024-07-18) | $0.15 | $0.60 | 128K | Not benchmarked | No run cost | |
| GPT-4o | $2.50 | $10.00 | 128K | Not benchmarked | No run cost | |
| GPT-4o (2024-05-13) | $5.00 | $15.00 | 128K | Not benchmarked | No run cost | |
| GPT-3.5 Turbo (older v0613) | $1.00 | $2.00 | 4K | Not benchmarked | No run cost | |
| GPT-3.5 Turbo 16k | $3.00 | $4.00 | 16K | Not benchmarked | No run cost | |
| GPT-4 | $30.00 | $60.00 | 8K | Not benchmarked | No run cost | |
| circuit-sparsity | Not published | Not published | Not published | Not benchmarked | No run cost | |
| gpt-oss-safeguard-120b | Not published | Not published | Not published | Not benchmarked | No run cost |
| Model | Released | Retired | Last input $/Mtok | Last output $/Mtok |
|---|---|---|---|---|
| GPT-5 Image Mini | October 16, 2025 | Unlisted December 1, 2026 | $2.50 | $2.00 |
| o4 Mini | April 16, 2025 | Unlisted October 28, 2026 | $1.10 | $4.40 |
| o4 Mini High | April 16, 2025 | Unlisted October 28, 2026 | $1.10 | $4.40 |
| o1-pro | March 19, 2025 | Unlisted October 28, 2026 | $150.00 | $600.00 |
| o3 Mini High | February 12, 2025 | Unlisted October 28, 2026 | $1.10 | $4.40 |
| o3 Mini | January 31, 2025 | Unlisted October 28, 2026 | $1.10 | $4.40 |
| o1 | December 17, 2024 | Unlisted October 28, 2026 | $15.00 | $60.00 |
| o1-mini | September 12, 2024 | October 27, 2025 | $1.10 | $4.40 |
| GPT-4 Turbo | April 9, 2024 | Unlisted October 28, 2026 | $10.00 | $30.00 |
| GPT-3.5 Turbo Instruct | September 28, 2023 | Unlisted October 24, 2026 | $1.50 | $2.00 |
| GPT-3.5 Turbo | May 28, 2023 | Unlisted October 24, 2026 | $0.50 | $1.50 |
Which OpenAI model to pay for
OpenAI's GPT-6 family spans a 100x price range on the API. On October 21, 2026, OpenAI listed GPT-6 Luna at $0.10 input and $0.50 output per million tokens, GPT-6 Sol and GPT-6.1 Sol at $2 and $10, and GPT-6 Astra at $10 and $50.
OpenAI GPT-6 models charge a higher rate for prompts over 272,000 tokens: GPT-6 Astra goes to $20 input and $75 output, GPT-6.1 Sol to $4 and $15, and GPT-6 Luna to $0.20 and $0.75 per million tokens. All three have a 1.05 million token context window and up to 128,000 output tokens.
| Model | API model ID | Input | Output | Prompt over 272K |
|---|---|---|---|---|
| GPT-6 Astra | gpt-6-astra | $10 | $50 | $20 / $75 |
| GPT-6.1 Sol | gpt-6.1-sol | $2 | $10 | $4 / $15 |
| GPT-6 Sol | gpt-6-sol | $2 | $10 | $4 / $15 |
| GPT-6 Luna | gpt-6-luna | $0.10 | $0.50 | $0.20 / $0.75 |
OpenAI prompt caching: cached input from 0.05x
OpenAI prompt caching is on by default and needs at least 1,024 tokens of prompt. On GPT-5.6 and newer models a cache write costs 1.25x the input price for the default 30 minute cache and 2.5x for a 12 hour cache, and a cache read costs 0.1x the input price, or 0.05x on GPT-6.1 Sol.
OpenAI prompt caching on models older than GPT-5.6 has no write charge: cached input is simply billed at the lower cached input price, up to 95% off. The 2.5x price for the 12 hour cache took effect on October 20, 2026.
Batch, Flex, Fast and Ultrafast processing
The OpenAI Batch API halves the price of input and output for requests that can wait up to 24 hours. A batch holds up to 50,000 requests in a file of up to 200 MB.
OpenAI Flex processing costs the same as Batch, 50% of the standard price, on selected models. Fast processing, called Priority until July 30, 2026, costs 2x the standard price on GPT-6 and GPT-5.6 models, and Ultrafast costs 6x: $60 input and $300 output per million tokens on GPT-6 Astra.
OpenAI adds 10% for data residency on models released from March 5, 2026, and another 10% for FedRAMP. Web search costs $10 per 1,000 calls plus tokens, and file search costs $2.50 per 1,000 calls plus $0.10 per GB a day of storage after the first free GB.
ChatGPT subscription or OpenAI API: which is cheaper?
A ChatGPT plan and the OpenAI API are billed separately: OpenAI states that "API token prices are separate from subscription usage". ChatGPT Go costs $8 a month, Plus $20, Pro starts at $100 with tiers at $100, $200 and $500, and Business costs $25 per user a month or $20 billed yearly.
Codex, OpenAI's coding agent, is included in every ChatGPT plan from Free to Enterprise and shares usage with ChatGPT. Signing in to the Codex CLI, SDK or IDE extension with an API key switches it to API billing at the rates above, without the cloud features.
For a rough break even, $20 buys 2 million GPT-6 Sol output tokens on the API. A person who works inside ChatGPT or Codex every day gets more per dollar from Plus; software that calls a model for other people needs the API.
| Plan | Price | Codex |
|---|---|---|
| Free | $0 | Quick tasks on GPT-6 Luna |
| Go | $8 a month | Light coding |
| Plus | $20 a month | Web, CLI, IDE and iOS |
| Pro | $100, $200 or $500 a month | Yes; Ultrafast only on $500 |
| Business | $25 per user a month, or $20 billed yearly | Yes |
| Enterprise and Edu | Contact sales | Yes |
Is the OpenAI API free?
The OpenAI API is paid per token from prepaid credit; OpenAI's pricing pages list no free credit amount, checked on October 21, 2026. New accounts start in the Free usage tier, which requires an allowed country and caps spend at $100 a month.
How to start with the OpenAI API
OpenAI API usage tiers rise with total credit bought. Build starts after $5 in purchases with a $500 monthly limit, Launch after $100 with $5,000 a month, and Grow after $500 with $200,000 a month. OpenAI moves an account up as soon as it passes the threshold, with no waiting period.
OpenAI models retiring in 2026 and 2027
- October 23, 2026: o4-mini, o1, o1-pro, o3-mini, GPT-4, GPT-4 Turbo, gpt-3.5-turbo-0125, gpt-4o-2024-05-13 and gpt-4.1-nano. OpenAI names GPT-5.6 Terra, Sol and Luna as replacements.
- December 11, 2026: gpt-5-2025-08-07, gpt-5-mini, gpt-5-nano, gpt-5-pro, o3-2025-04-16 and o3-pro.
- January 14, 2027: gpt-4o-2024-08-06, gpt-4o-2024-11-20, gpt-4o-mini, gpt-4.1 and gpt-4.1-mini, replaced by GPT-6 Luna.
- April 1, 2027: gpt-5.3-codex, gpt-5.1 (replaced by GPT-6 Sol) and gpt-5.4-nano (replaced by GPT-6 Luna).
OpenAI API price changes in 2026
- July 30, 2026: GPT-5.6 Luna price cut by 80% and GPT-5.6 Terra by 20%; Priority processing renamed Fast.
- August 21, 2026: GPT-5.6 Sol cut to $4 input and $20 output per million tokens, a promotion running at least until November 21, 2026.
- September 3, 2026: GPT-6 Astra launched at $10 and $50.
- September 22, 2026: GPT-6 Sol and GPT-6 Luna launched at $2 and $10, and $0.10 and $0.50.
- September 29, 2026: GPT-6.1 Sol launched at $2 and $10 with a cache read of $0.10, half of GPT-6 Sol's $0.20.
Sources
Price changes
- GPT-5.6 Sol Pro December 1, 2026: $20.00 to $30.00 output, $4.00 to $5.00 input
- GPT-5.6 Sol December 1, 2026: $20.00 to $30.00 output, $4.00 to $5.00 input
OpenAI API pricing questions
- How much does the ChatGPT API cost?
- The OpenAI API charges per token, with input and output priced separately. On December 4, 2026, gpt-oss-20b cost $0.035 input and $0.15 output per million tokens and GPT-5.5 Pro cost $30.00 input and $180.00 output, as listed on OpenRouter.
- Which OpenAI model is best for coding?
- GPT-6.2 Astra ranks first among OpenAI models in our Vibe Coding Index, at 83.8 on 4 benchmarks. The index combines public coding benchmarks. We do not run our own.
- What does a working OpenAI answer cost?
- GPT-5.6 Luna costs $0.04 per solved SWE-bench task, the lowest known for OpenAI. Cost per solved task is known for 19 of 63 models.
- Has OpenAI changed its API prices?
- We have no recorded change. Price tracking started on October 15, 2026, and a change appears on this page the day a snapshot shows one.
- Is this the price of the OpenAI subscription?
- No. These are API prices, billed per token. Consumer and team subscriptions are billed per seat and are not in our data.
- Is the ChatGPT API cheaper than a ChatGPT Plus subscription?
- For one person working in ChatGPT, usually not: $20 a month buys 2 million GPT-6 Sol output tokens on the API, and Plus includes ChatGPT and Codex within its limits. The API is the only option for software that serves other users.
- Is the OpenAI API cheaper than the Claude API?
- At the same tier the list prices match: on October 21, 2026, GPT-6 Sol and Claude Sonnet 5.5 both cost $2 input and $10 output per million tokens, and GPT-6 Luna and Claude Haiku 5.5 both cost $0.10 and $0.50. GPT-6 Astra at $10 and $50 costs more than Claude Opus 5.5 at $4 and $20.
- What does Fast mode cost on the OpenAI API?
- Fast processing costs 2x the standard price on GPT-6 and GPT-5.6 models, for example $20 output per million tokens on GPT-6 Sol. Ultrafast costs 6x.