Provider
OpenAI API pricing: every OpenAI model, per million tokens
The OpenAI API costs from $0.05 (GPT-5 Nano) to $30 (GPT-4) per million input tokens and from $0.30 to $180 per million output tokens. Its newest model, GPT-6.2 Astra, costs $8 input and $40 output and was first listed on 2026-11-17. 21 of 54 of its models charge a higher rate once a prompt passes 272,000 tokens. Prices checked 2026-11-22.
- Models
- 54
- Cheapest input
- $0.05
- Priciest input
- $30
- Largest context
- 1,050,000
- With caching
- 44 of 54
- Open weights
- 3 of 54
Line-up
How much does each OpenAI model cost?
| Model | Input / 1M | Output / 1M | Cached / 1M | Context | Max output | Released |
|---|---|---|---|---|---|---|
| GPT-6.2 Astra | $8 | $40 | $0.40 | 1,050,000 | 128,000 | 2026-11-17 |
| GPT-6.2 Astra Pro | $8 | $40 | $0.40 | 1,050,000 | 128,000 | 2026-11-17 |
| GPT-6.2 Sol | $2 | $10 | $0.10 | 1,050,000 | 128,000 | 2026-11-17 |
| GPT-6.2 Sol Pro | $2 | $10 | $0.10 | 1,050,000 | 128,000 | 2026-11-17 |
| GPT-6.1 Terra | $1 | $5 | $0.05 | 1,050,000 | 128,000 | 2026-10-26 |
| GPT-6.1 Terra Pro | $1 | $5 | $0.05 | 1,050,000 | 128,000 | 2026-10-26 |
| GPT-6.1 Sol | $2 | $10 | $0.10 | 1,050,000 | 128,000 | 2026-09-29 |
| GPT-6 Luna | $0.10 | $0.50 | $0.01 | 1,050,000 | 128,000 | 2026-09-22 |
| GPT-6 Luna Pro | $0.10 | $0.50 | $0.01 | 1,050,000 | 128,000 | 2026-09-22 |
| GPT-6 Sol | $2 | $10 | $0.20 | 1,050,000 | 128,000 | 2026-09-22 |
| GPT-6 Astra | $10 | $50 | $1 | 1,050,000 | 128,000 | 2026-09-04 |
| GPT-6 Astra Pro | $10 | $50 | $1 | 1,050,000 | 128,000 | 2026-09-04 |
| GPT-5.6 Luna | $0.20 | $1.20 | $0.02 | 1,050,000 | 128,000 | 2026-07-09 |
| GPT-5.6 Luna Pro | $0.20 | $1.20 | $0.02 | 1,050,000 | 128,000 | 2026-07-09 |
| GPT-5.6 Sol | $4 | $20 | $0.40 | 1,050,000 | 128,000 | 2026-07-09 |
| GPT-5.6 Terra | $2 | $12 | $0.20 | 1,050,000 | 128,000 | 2026-07-09 |
| GPT-5.6 Terra Pro | $2 | $12 | $0.20 | 1,050,000 | 128,000 | 2026-07-09 |
| GPT Chat Latest | $5 | $30 | $0.50 | 400,000 | 128,000 | 2026-05-05 |
| GPT-5.5 | $5 | $30 | $0.50 | 1,050,000 | 128,000 | 2026-04-24 |
| GPT-5.5 Pro | $30 | $180 | – | 1,050,000 | 128,000 | 2026-04-24 |
| GPT-5.4 Mini | $0.75 | $4.50 | $0.075 | 400,000 | 128,000 | 2026-03-17 |
| GPT-5.4 Nano | $0.20 | $1.25 | $0.02 | 400,000 | 128,000 | 2026-03-17 |
| GPT-5.4 | $2.50 | $15 | $0.25 | 1,050,000 | 128,000 | 2026-03-05 |
| GPT-5.4 Pro | $30 | $180 | – | 1,050,000 | 128,000 | 2026-03-05 |
| GPT-5.3-Codex | $1.75 | $14 | $0.175 | 400,000 | 128,000 | 2026-02-24 |
| GPT-5.2-Codex | $1.75 | $14 | $0.175 | 400,000 | 128,000 | 2026-01-14 |
| GPT-5.2 | $1.75 | $14 | $0.175 | 400,000 | 128,000 | 2025-12-10 |
| GPT-5.2 Chat | $1.75 | $14 | $0.175 | 128,000 | 32,000 | 2025-12-10 |
| GPT-5.2 Pro | $21 | $168 | – | 400,000 | 128,000 | 2025-12-10 |
| GPT-5.1-Codex-Max | $1.25 | $10 | $0.125 | 400,000 | 128,000 | 2025-12-04 |
| GPT-5.1 | $1.25 | $10 | $0.125 | 400,000 | 128,000 | 2025-11-13 |
| GPT-5.1-Codex | $1.25 | $10 | $0.13 | 400,000 | 128,000 | 2025-11-13 |
| GPT-5.1-Codex-Mini | $0.25 | $2 | $0.03 | 400,000 | 128,000 | 2025-11-13 |
| gpt-oss-safeguard-20b | $0.075 | $0.30 | $0.0375 | 131,072 | 65,536 | 2025-10-29 |
| GPT-5 Pro | $15 | $120 | – | 400,000 | 128,000 | 2025-10-06 |
| GPT-5 | $1.25 | $10 | $0.125 | 400,000 | 128,000 | 2025-08-07 |
| GPT-5 Mini | $0.25 | $2 | $0.025 | 400,000 | 128,000 | 2025-08-07 |
| GPT-5 Nano | $0.05 | $0.40 | $0.005 | 400,000 | 128,000 | 2025-08-07 |
| gpt-oss-120b | $0.09 | $0.36 | – | 131,072 | – | 2025-08-05 |
| gpt-oss-20b | $0.075 | $0.30 | $0.0375 | 131,072 | 65,536 | 2025-08-05 |
| o3 Pro | $20 | $80 | – | 200,000 | 100,000 | 2025-06-10 |
| o3 | $2 | $8 | $0.50 | 200,000 | 100,000 | 2025-04-16 |
| GPT-4.1 | $2 | $8 | $0.50 | 1,047,576 | 32,768 | 2025-04-14 |
| GPT-4.1 Mini | $0.40 | $1.60 | $0.10 | 1,047,576 | 32,768 | 2025-04-14 |
| GPT-4.1 Nano | $0.10 | $0.40 | $0.03 | 1,047,576 | – | 2025-04-14 |
| GPT-4o (2024-11-20) | $2.50 | $10 | $1.25 | 128,000 | 16,384 | 2024-11-20 |
| GPT-4o (2024-08-06) | $2.50 | $10 | $1.25 | 128,000 | 16,384 | 2024-08-06 |
| GPT-4o-mini | $0.15 | $0.60 | $0.075 | 128,000 | 16,384 | 2024-07-18 |
| GPT-4o-mini (2024-07-18) | $0.15 | $0.60 | $0.075 | 128,000 | 16,384 | 2024-07-18 |
| GPT-4o | $2.50 | $10 | $1.25 | 128,000 | 16,384 | 2024-05-13 |
| GPT-4o (2024-05-13) | $5 | $15 | – | 128,000 | 4,096 | 2024-05-13 |
| GPT-3.5 Turbo (older v0613) | $1 | $2 | – | 4,095 | – | 2024-01-25 |
| GPT-3.5 Turbo 16k | $3 | $4 | – | 16,385 | 4,096 | 2023-08-28 |
| GPT-4 | $30 | $60 | – | 8,191 | 4,096 | 2023-05-28 |
Prices in US dollars per 1M tokens, newest first. Release dates are when our source first listed the model.
Cheapest
gpt-oss-20bOpenAI$0.075 in · $0.30 outLargest context
GPT-5.4OpenAI1,050,000 tokensCheapest
What is the cheapest OpenAI model?
By blended price (three parts input to one part output), the cheapest is gpt-oss-20b at $0.1312 per million tokens, and the most expensive is GPT-5.5 Pro at $67.50: 514× as much. Picking the smallest model that does the job well is usually the biggest saving available, ahead of any discount.
The largest context window is GPT-5.4’s 1,050,000 tokens, with replies of up to 128,000 tokens.
Discounts
Does OpenAI offer prompt caching or batch discounts?
44 of 54 of the line-up has a cached-input price, which helps chatbots and agents that resend the same instructions. 42 of 54 can run through a batch API at a discount, for work that can wait up to a day. 48 of 54 accept images as input.
- 21 of 54 of its models charge a higher rate once a prompt passes 272,000 tokens.
Prompt caching calculator · Batch API calculator · LLM cost calculator
Compare
How do OpenAI prices compare with other providers?
The median OpenAI model costs $4 per million tokens blended. The providers closest to that are Perplexity Sonar ($3.50), Grok ($2.2813) and Claude ($10).
Head to head: Claude Sonnet 5.5 vs GPT-6.1 Sol, Gemini 3.8 Flash vs GPT-6 Luna, Gemini 3.8 Flash vs GPT-6.1 Sol.
History
How have OpenAI API prices changed?
gpt-oss-20b · Price increase, +286% blended
- Input
- from $0.017 to $0.075
- +341%
- Output
- from $0.085 to $0.30
- +253%
- Cached input
- from $0.0085 to $0.0375
- +341%
gpt-oss-20b · Price cut, −5.6% blended
- Input
- from $0.018 to $0.017
- −5.6%
- Output
- from $0.09 to $0.085
- −5.6%
- Cached input
- from $0.009 to $0.0085
- −5.6%
gpt-oss-120b · Price cut, −40% blended
- Input
- from $0.15 to $0.09
- −40%
- Output
- from $0.60 to $0.36
- −40%
gpt-oss-20b · Price cut, −73% blended
- Input
- from $0.075 to $0.018
- −76%
- Output
- from $0.30 to $0.09
- −70%
- Cached input
- from $0.0375 to $0.009
- −76%
gpt-oss-20b · Price increase, +139% blended
- Input
- from $0.03 to $0.075
- +150%
- Output
- from $0.13 to $0.30
- +131%
- Cached input
- from $0.03 to $0.0375
- +25%
The latest 5 price moves. Every change is in the AI pricing changes log.
FAQ
OpenAI API questions
How much does the OpenAI API cost?
OpenAI’s 54 models range from $0.05 to $30 per million input tokens and from $0.30 to $180 per million output tokens. The newest, GPT-6.2 Astra, costs $8 and $40. Estimate your own bill in the LLM cost calculator.
What is the cheapest OpenAI model?
By blended price (three parts input to one part output) it is gpt-oss-20b, at $0.075 input and $0.30 output per million tokens. The most expensive is GPT-5.5 Pro, at $30 and $180.
Which OpenAI model has the largest context window?
GPT-5.4, with 1,050,000 tokens per request and up to 128,000 tokens per reply. The window is shared between your prompt and the reply.
Does OpenAI offer prompt caching or batch discounts?
In our data, 44 of 54 of OpenAI’s models have a published cached-input price and 42 of 54 have a published batch price. Both can cut costs substantially for repeated prompts or work that can wait.
Is the OpenAI API cheaper than a ChatGPT Plus subscription?
It depends on volume. ChatGPT Plus costs $20 a month. At GPT-6.2 Astra’s blended price of $16 per million tokens, that money buys about 1 million tokens of API use. Light users usually pay less on the API; heavy daily users often get more from the plan. Compare both in the subscription vs API calculator.
Keep exploring