Skip to content
AI Dev Toolkit.
Esc
  • Loading…

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

Filter and sort OpenAI models in the comparison table

Line-up

How much does each OpenAI model cost?

ModelInput / 1MOutput / 1MCached / 1MContextMax outputReleased
GPT-6.2 Astra$8$40$0.401,050,000128,0002026-11-17
GPT-6.2 Astra Pro$8$40$0.401,050,000128,0002026-11-17
GPT-6.2 Sol$2$10$0.101,050,000128,0002026-11-17
GPT-6.2 Sol Pro$2$10$0.101,050,000128,0002026-11-17
GPT-6.1 Terra$1$5$0.051,050,000128,0002026-10-26
GPT-6.1 Terra Pro$1$5$0.051,050,000128,0002026-10-26
GPT-6.1 Sol$2$10$0.101,050,000128,0002026-09-29
GPT-6 Luna$0.10$0.50$0.011,050,000128,0002026-09-22
GPT-6 Luna Pro$0.10$0.50$0.011,050,000128,0002026-09-22
GPT-6 Sol$2$10$0.201,050,000128,0002026-09-22
GPT-6 Astra$10$50$11,050,000128,0002026-09-04
GPT-6 Astra Pro$10$50$11,050,000128,0002026-09-04
GPT-5.6 Luna$0.20$1.20$0.021,050,000128,0002026-07-09
GPT-5.6 Luna Pro$0.20$1.20$0.021,050,000128,0002026-07-09
GPT-5.6 Sol$4$20$0.401,050,000128,0002026-07-09
GPT-5.6 Terra$2$12$0.201,050,000128,0002026-07-09
GPT-5.6 Terra Pro$2$12$0.201,050,000128,0002026-07-09
GPT Chat Latest$5$30$0.50400,000128,0002026-05-05
GPT-5.5$5$30$0.501,050,000128,0002026-04-24
GPT-5.5 Pro$30$180–1,050,000128,0002026-04-24
GPT-5.4 Mini$0.75$4.50$0.075400,000128,0002026-03-17
GPT-5.4 Nano$0.20$1.25$0.02400,000128,0002026-03-17
GPT-5.4$2.50$15$0.251,050,000128,0002026-03-05
GPT-5.4 Pro$30$180–1,050,000128,0002026-03-05
GPT-5.3-Codex$1.75$14$0.175400,000128,0002026-02-24
GPT-5.2-Codex$1.75$14$0.175400,000128,0002026-01-14
GPT-5.2$1.75$14$0.175400,000128,0002025-12-10
GPT-5.2 Chat$1.75$14$0.175128,00032,0002025-12-10
GPT-5.2 Pro$21$168–400,000128,0002025-12-10
GPT-5.1-Codex-Max$1.25$10$0.125400,000128,0002025-12-04
GPT-5.1$1.25$10$0.125400,000128,0002025-11-13
GPT-5.1-Codex$1.25$10$0.13400,000128,0002025-11-13
GPT-5.1-Codex-Mini$0.25$2$0.03400,000128,0002025-11-13
gpt-oss-safeguard-20b$0.075$0.30$0.0375131,07265,5362025-10-29
GPT-5 Pro$15$120–400,000128,0002025-10-06
GPT-5$1.25$10$0.125400,000128,0002025-08-07
GPT-5 Mini$0.25$2$0.025400,000128,0002025-08-07
GPT-5 Nano$0.05$0.40$0.005400,000128,0002025-08-07
gpt-oss-120b$0.09$0.36–131,072–2025-08-05
gpt-oss-20b$0.075$0.30$0.0375131,07265,5362025-08-05
o3 Pro$20$80–200,000100,0002025-06-10
o3$2$8$0.50200,000100,0002025-04-16
GPT-4.1$2$8$0.501,047,57632,7682025-04-14
GPT-4.1 Mini$0.40$1.60$0.101,047,57632,7682025-04-14
GPT-4.1 Nano$0.10$0.40$0.031,047,576–2025-04-14
GPT-4o (2024-11-20)$2.50$10$1.25128,00016,3842024-11-20
GPT-4o (2024-08-06)$2.50$10$1.25128,00016,3842024-08-06
GPT-4o-mini$0.15$0.60$0.075128,00016,3842024-07-18
GPT-4o-mini (2024-07-18)$0.15$0.60$0.075128,00016,3842024-07-18
GPT-4o$2.50$10$1.25128,00016,3842024-05-13
GPT-4o (2024-05-13)$5$15–128,0004,0962024-05-13
GPT-3.5 Turbo (older v0613)$1$2–4,095–2024-01-25
GPT-3.5 Turbo 16k$3$4–16,3854,0962023-08-28
GPT-4$30$60–8,1914,0962023-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 out

Largest context

GPT-5.4OpenAI1,050,000 tokens

Newest

GPT-6.2 AstraOpenAI2026-11-17

Cheapest

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?

  1. 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%
  2. 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%
  3. gpt-oss-120b · Price cut, −40% blended

    Input
    from $0.15 to $0.09
    −40%
    Output
    from $0.60 to $0.36
    −40%
  4. 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%
  5. 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.

Prices checked · Page updated

Sources: OpenRouter models API and LiteLLM model prices and context windows, checked daily. Not affiliated with OpenAI. Confirm critical numbers on the provider’s pricing page. See our methodology.

Keep exploring