AI Token Price
OpenAI

6 current models · 14 previous · 1 retired

OpenAI API pricing

OpenAI API pricing: GPT-6 Astra $10.00 / $50.00, GPT-6.1 Terra $1.00 / $5.00, GPT-6 Luna $0.10 / $0.50 and GPT-6.1 Sol $2.00 / $10.00 per 1M input / output tokens, plus 2 more current models below. Checked 13 Oct – 2 Nov 2026 against OpenAI pricing.

Cheapest workhorse model elsewhere: MiniMax M3 at $0.30 / $1.20, against $1.00 / $5.00 for GPT-6.1 Terra. Compare the two

Current OpenAI models

Current OpenAI models and prices per million tokens
Batch API model ID
$10.00 $50.00 $1.00 1.05M 3 Sep 2026 50% off gpt-6-astra
$1.00 $5.00 $0.050 1.05M 26 Oct 2026 50% off gpt-6.1-terra
$2.00 $10.00 $0.10 1.05M 29 Sep 2026 50% off gpt-6.1-sol
$0.10 $0.50 $0.010 1.05M 22 Sep 2026 50% off gpt-6-luna
$0.030 $0.15 — 128K 5 Aug 2025 — gpt-oss-120b
$0.018 $0.090 — 128K 5 Aug 2025 — gpt-oss-20b
Previous versions still available 14 models
Previous OpenAI models still available
Model Input / 1M Output / 1M Cached input Context Released Batch API model ID
$2.00 $8.00 $0.50 200K 16 Apr 2025 50% off o3
$4.00 $20.00 $0.40 1.05M 9 Jul 2026 50% off gpt-5.6-sol
$5.00 $30.00 $0.50 1.05M 23 Apr 2026 50% off gpt-5.5
$2.00 $10.00 $0.20 1.05M 22 Sep 2026 50% off gpt-6-sol
$2.00 $12.00 $0.20 1.05M 9 Jul 2026 50% off gpt-5.6-terra
$2.50 $15.00 $0.25 1.05M 5 Mar 2026 50% off gpt-5.4
$1.75 $14.00 $0.18 400K 11 Dec 2025 50% off gpt-5.2
$2.50 $10.00 $1.25 128K 13 May 2024 50% off gpt-4o
$0.20 $1.20 $0.020 1.05M 9 Jul 2026 50% off gpt-5.6-luna
$0.75 $4.50 $0.075 — Mar 2026 50% off gpt-5.4-mini
$0.20 $1.25 $0.020 — Mar 2026 50% off gpt-5.4-nano
$0.25 $2.00 $0.025 400K 7 Aug 2025 50% off gpt-5-mini
$0.050 $0.40 $0.005 400K 7 Aug 2025 50% off gpt-5-nano
$1.10 $4.40 $0.28 200K 16 Apr 2025 50% off o4-mini

What a month costs on OpenAI models

Monthly cost of three example workloads on current OpenAI models, at list prices
ModelChat app10M input, 2M output tokensSupport bot50M input (70% cached), 5M outputCoding agent750M input (85% cached), 8M output
GPT-6 Astra$200$435$2,163
GPT-6.1 Terra$20.00$41.75$184
GPT-6.1 Sol$40.00$83.50$369
GPT-6 Luna$2.00$4.35$21.63

List prices checked 13 Oct – 2 Nov 2026, general-purpose models, prompts under any long-prompt threshold, no batch discount. Cached input is billed at each model's cache-read price; cache-write charges aren't included. Price your own traffic · Agent cost per task

Recent OpenAI price changes

All changes
  • OpenAI
    OpenAI launched GPT-6.1 Terra at $1 / $5 per 1M tokens, with cached input at $0.05: half the price of GPT-6.1 Sol. (GPT-6.1 Terra) Source
  • OpenAI
    GPT-6.1 Sol replaced GPT-6 Sol at the same $2 / $10 per 1M tokens, with cached input cut from $0.20 to $0.10. (GPT-6.1 Sol) Source
  • OpenAI
    OpenAI launched GPT-6 Sol at $2 / $10 and GPT-6 Luna at $0.10 / $0.50. (GPT-6 Sol, GPT-6 Luna) Source
  • OpenAI
    OpenAI launched GPT-6 Astra at $10 / $50, its most expensive standard model. (GPT-6 Astra) Source
  • OpenAI
    ▼ 20%OpenAI cut GPT-5.6 Terra to $2 / $12 (from $2.50 / $15) and GPT-5.6 Luna to $0.20 / $1.20 (from $1 / $6). $2.50 / $15 → $2 / $12 (GPT-5.6 Terra, GPT-5.6 Luna) Source

Coming up

  • OpenAI
    GPT-5.6 Sol's promotional $4 / $20 price is guaranteed until at least this date. (GPT-5.6 Sol) Source
  • OpenAI
    OpenAI shuts down the o3-2025-04-16 snapshot. (o3) Source

How OpenAI API pricing works

OpenAI bills its API per token, separately for input and output, with a lower rate for cached input. The current models are the four sizes of the GPT-6 line: GPT-6 Astra, GPT-6.1 Sol, GPT-6.1 Terra and GPT-6 Luna, all with a 1.05M-token context window. Their launch history and how to choose between them are on the GPT-6 pricing and launch history page; this page covers how OpenAI bills them. OpenAI's open-weight models, gpt-oss-120b and gpt-oss-20b, are sold by other hosts; we list the cheapest.

Standard, Batch, Flex, Fast and Ultrafast

The same model costs different amounts depending on how quickly you need the answer:

ProcessingPriceUse it for
StandardList priceMost apps
Batch and Flex50% lessWork that can wait: evaluations, data processing, overnight jobs
Fast2×Faster replies (called Priority processing until 30 July 2026)
Ultrafast6×The fastest replies, on GPT-6 Astra and GPT-6.1 Sol only

For a chat assistant handling 100M input and 20M output tokens a month, GPT-6.1 Sol costs $400 at standard rates and $200 through Batch. Regional processing (data residency) and FedRAMP endpoints add 10% for models released on or after 5 March 2026, which includes the whole GPT-6 line.

Cached input and cache writes

When the start of a prompt matches one sent recently, OpenAI bills those tokens at the cached rate automatically: $1.00 per 1M on Astra (a tenth of input), $0.10 on GPT-6.1 Sol (a twentieth) and $0.01 on Luna. Storing tokens in the cache costs extra: 1.25× the input price for a cache that lasts 30 minutes, or 2.5× for one that lasts 12 hours.

The 12-hour option suits prompts you reuse all day but not every few minutes, such as a large knowledge base behind a low-traffic assistant. On GPT-6.1 Sol a 30-minute write pays for itself the first time the cache is read; a 12-hour write after two reads.

For a coding agent doing 400 tasks a month (about 750M input tokens, 85% of it cached, and 8M output), GPT-6.1 Sol costs $369 a month, against $1,580 with no caching, before cache-write charges. The table above shows the same workload on every current OpenAI model.

The 272,000-token threshold

Prompts over 272,000 tokens are billed at twice the input and cache prices and one and a half times the output price, and the higher rate applies to the whole request, not just the tokens over the line. So a slightly longer prompt can cost twice as much: on GPT-6.1 Sol, a 270,000-token prompt with a 2,000-token answer costs about $0.56, while a 275,000-token prompt with the same answer costs about $1.13. If your prompts are close to the threshold, trimming them below it halves the bill.

Is the OpenAI API free?

Not in general: OpenAI's pricing page lists no free allowance for its GPT models, and you need a positive account balance to make requests. ChatGPT has a free plan, but it doesn't include API access.

The exception is data sharing. Some organisations that let OpenAI use their API inputs and outputs get complimentary tokens every day: up to 1M a day shared across GPT-6.1 Sol, GPT-6 Astra, GPT-6 Sol, GPT-6 Luna and several older models on the Launch and Grow plans (250,000 on Build), and up to 10M a day on a group of smaller models including GPT-5.6 Terra and Luna (2.5M on Build). Use beyond that is billed normally, and your data-sharing settings page shows whether you qualify. Shared traffic may be used to train OpenAI's models, so it doesn't suit confidential work; read OpenAI's terms first.

ChatGPT plans or the API?

ChatGPT plans (Go at $8, Plus at $20, and Pro at $100, $200 or $500 a month) cover ChatGPT and Codex within usage limits. API calls from your own code are billed separately per token, but since 28 October 2026 paid Pro plans include the same amount in monthly API credits as their price ($100, $200 or $500), and Business plans include $20 per Standard seat or $100 per Premium seat, up to $500 a workspace. You claim the credits by linking an API organisation you own; unused credits expire at the end of the billing cycle. Codex can also run with an API key, in which case it's billed at API rates instead of your plan's allowance.

For one heavy user, a plan is usually cheaper; for anything you build for others, you need the API. See Codex pricing for how the plans' coding allowances compare, or work out your own break-even with the subscription vs API calculator.

OpenAI models on other clouds

Amazon Bedrock now lists GPT-6.1 Sol, GPT-6.1 Terra, GPT-6 Astra, GPT-6 Sol and GPT-6 Luna, with its own Standard, Priority, Flex and Batch tiers and per-region prices. Bedrock sets those prices itself, so compare them with OpenAI's rates above before choosing where to buy. Amazon Bedrock pricing.

Which OpenAI model, and which rival?

  • GPT-6.1 Sol costs the same per token as Claude Sonnet 5.5, including cached input, for prompts under 272,000 tokens, so for most production work the choice comes down to quality on your tasks.
  • GPT-6 Astra at $10 / $50 is OpenAI's most expensive standard model: compare it with Claude Opus 5.5 before paying five times Sol's price.
  • GPT-6 Luna is one of the cheapest models from a major lab; its closest rival is Claude Haiku 5.5.
  • gpt-oss-120b costs a few cents per million tokens through the cheapest hosts, if you can choose your host or run it yourself.

Other charges

  • Web search costs $10 per 1,000 calls, plus the search results the model reads, billed at its normal token rates.
  • Previous models stay available at their own prices: GPT-6 Sol at $2 / $10 with $0.20 cached input, and GPT-5.6 Sol at a promotional $4 / $20 until at least 21 November 2026.
  • Retired snapshots: OpenAI lists shutdown dates for older models on its deprecations page; the ones that affect models we track are under "Coming up" above.

Sources: OpenAI API pricing, OpenAI data sharing and complimentary tokens, OpenAI deprecations, API credits for ChatGPT subscribers, Codex pricing. API prices and terms checked 2 November 2026; ChatGPT plan prices carry their own check date on the Codex plans page.

OpenAI model IDs

API model IDs, context windows and release dates for current OpenAI models
ModelAPI model IDContextMax outputReleased
GPT-6.1 Terragpt-6.1-terra1.05M128K26 Oct 2026
GPT-6.1 Solgpt-6.1-sol1.05M128K29 Sep 2026
GPT-6 Lunagpt-6-luna1.05M—22 Sep 2026
GPT-6 Astragpt-6-astra1.05M—3 Sep 2026
gpt-oss-120bgpt-oss-120b128K—5 Aug 2025
gpt-oss-20bgpt-oss-20b128K—5 Aug 2025

Compared with other providers

OpenAI models against the cheapest current model of the same tier from other providers, by blended price
TierOpenAICheapest elsewhereOpenAI costs
FrontierGPT-6 Astra$10.00 / $50.00DeepSeek V4 Pro$1.32 / $3.9610× more
WorkhorseGPT-6.1 Terra$1.00 / $5.00MiniMax M3$0.30 / $1.203.8× more
SmallGPT-6 Luna$0.10 / $0.50Ministral 3 3B$0.10 / $0.102.0× more

Blended price per 1M tokens (3 input : 1 output), current general-purpose models only. Price isn't quality: compare the models on your own tasks. Compare up to four models

OpenAI model comparisons

Compare up to four

Questions

How much does the OpenAI API cost?

OpenAI API pricing: GPT-6 Astra $10 / $50, GPT-6.1 Terra $1 / $5, GPT-6 Luna $0.10 / $0.50, GPT-6.1 Sol $2 / $10 per 1M input / output tokens, checked 13 Oct – 2 Nov 2026. Every model is billed per token, separately for input and output.

What is the cheapest OpenAI model?

GPT-6 Luna, at $0.10 / $0.50 per 1M input / output tokens. It suits high-volume, simpler work; check its quality on your task before switching.

Does OpenAI charge less for cached input?

Yes. Repeated input served from cache costs $0.05 per 1M on GPT-6.1 Terra, $0.10 per 1M on GPT-6.1 Sol, $0.01 per 1M on GPT-6 Luna, $1 per 1M on GPT-6 Astra.

Is there a batch discount?

Yes. Batch requests, which return within hours instead of seconds, cost 50% less on GPT-6.1 Terra, GPT-6.1 Sol, GPT-6 Luna, GPT-6 Astra.

Do long prompts cost more?

On some models. GPT-6.1 Terra charges 2× input and 1.5× output for prompts over 272K tokens; GPT-6.1 Sol charges 2× input and 1.5× output for prompts over 272K tokens; GPT-6 Luna charges 2× input and 1.5× output for prompts over 272K tokens; GPT-6 Astra charges 2× input and 1.5× output for prompts over 272K tokens. The higher rate applies to the whole request.