softwareestimator.com

OpenAI API pricing

Prices synced November 22, 2026 from OpenRouter

OpenAI's API costs $0.10–$10 per million input tokens and $0.50–$50 per million output tokens across its 20 current models (November 2026). The cheapest is GPT-6 Luna Pro at $0.10/$0.50; the most expensive is GPT-6 Astra Pro at $10/$50. On the newest, GPT-6.2 Astra Pro, a month of daily AI coding comes to roughly $47–$1,699.

Current models

Model Input /1M Output /1M Cache read Context Coding month* Released
GPT-6.2 Astra Pro $8 $40 $0.40 1.1M $47–$1,699 Nov 2026
GPT-6.2 Astra $8 $40 $0.40 1.1M $47–$1,699 Nov 2026
GPT-6.2 Sol Pro $2 $10 $0.10 1.1M $12–$425 Nov 2026
GPT-6.2 Sol $2 $10 $0.10 1.1M $12–$425 Nov 2026
GPT-6.1 Terra Pro $1 $5 $0.05 1.1M $6–$212 Oct 2026
GPT-6.1 Terra $1 $5 $0.05 1.1M $6–$212 Oct 2026
GPT-6.1 Sol Pro $2 $10 $0.10 1.1M $12–$425 Sep 2026
GPT-6.1 Sol $2 $10 $0.10 1.1M $12–$425 Sep 2026
GPT-6 Luna Pro $0.10 $0.50 $0.01 1.1M $0.67–$22 Sep 2026
GPT-6 Luna $0.10 $0.50 $0.01 1.1M $0.67–$22 Sep 2026
GPT-6 Sol Pro $2 $10 $0.20 1.1M $13–$434 Sep 2026
GPT-6 Sol $2 $10 $0.20 1.1M $13–$434 Sep 2026
GPT-6 Astra $10 $50 $1 1.1M $67–$2,168 Sep 2026
GPT-6 Astra Pro $10 $50 $1 1.1M $67–$2,168 Sep 2026
GPT-5.6 Luna Pro $0.20 $1.20 $0.02 1.1M $1–$48 Jul 2026
GPT-5.6 Luna $0.20 $1.20 $0.02 1.1M $1–$48 Jul 2026
GPT-5.6 Terra Pro $2 $12 $0.20 1.1M $15–$482 Jul 2026
GPT-5.6 Terra $2 $12 $0.20 1.1M $15–$482 Jul 2026
GPT-5.6 Sol Pro $4 $20 $0.40 1.1M $27–$867 Jul 2026
GPT-5.6 Sol $4 $20 $0.40 1.1M $27–$867 Jul 2026

Batch prices

Model Batch input Batch output vs standard
GPT-6.2 Astra Pro $4 $20 50% off
GPT-6.2 Astra $4 $20 50% off
GPT-6.2 Sol Pro $1 $5 50% off
GPT-6.2 Sol $1 $5 50% off
GPT-6.1 Terra Pro $0.50 $2.50 50% off
GPT-6.1 Terra $0.50 $2.50 50% off
GPT-6.1 Sol Pro $1 $5 50% off
GPT-6.1 Sol $1 $5 50% off
GPT-6 Luna Pro $0.05 $0.25 50% off
GPT-6 Luna $0.05 $0.25 50% off
GPT-6 Sol Pro $1 $5 50% off
GPT-6 Sol $1 $5 50% off
GPT-6 Astra $5 $25 50% off
GPT-6 Astra Pro $5 $25 50% off
GPT-5.6 Luna Pro $0.10 $0.60 50% off
GPT-5.6 Luna $0.10 $0.60 50% off
GPT-5.6 Terra Pro $1 $6 50% off
GPT-5.6 Terra $1 $6 50% off
GPT-5.6 Sol Pro $2 $10 50% off
GPT-5.6 Sol $2 $10 50% off

Older models

Released over six months ago or scheduled for retirement. Still callable, priced as listed.

Model Input /1M Output /1M Cache read Context Coding month* Released
GPT Chat Latest $5 $30 $0.50 400k $36–$1,204 May 2026
GPT-5.5 Pro $30 $180 — 1.1M $690–$9,600 Apr 2026
GPT-5.5 $5 $30 $0.50 1.1M $36–$1,204 Apr 2026
GPT-5.4 Image 2 $8 $15 $2 272k $59–$1,240 Apr 2026
GPT-5.4 Nano $0.20 $1.25 $0.02 400k $1–$49 Mar 2026
GPT-5.4 Mini $0.75 $4.50 $0.075 400k $5–$181 Mar 2026
GPT-5.4 Pro $30 $180 — 1.1M $690–$9,600 Mar 2026
GPT-5.4 $2.50 $15 $0.25 1.1M $18–$602 Mar 2026
GPT-5.3-Codex $1.75 $14 $0.175 400k $15–$505 Feb 2026
GPT Audio $2.50 $10 — 128k $55–$680 Jan 2026
GPT Audio Mini $0.60 $2.40 — 128k $13–$163 Jan 2026
GPT-5.2-Codex $1.75 $14 $0.175 400k $15–$505 Jan 2026
GPT-5.2 Chat $1.75 $14 $0.175 128k $15–$505 Dec 2025
GPT-5.2 Pro $21 $168 — 400k $508–$7,728 Dec 2025
GPT-5.2 $1.75 $14 $0.175 400k $15–$505 Dec 2025
GPT-5.1-Codex-Max $1.25 $10 $0.125 400k $11–$361 Dec 2025
GPT-5.1 $1.25 $10 $0.125 400k $11–$361 Nov 2025
GPT-5.1-Codex $1.25 $10 $0.13 400k $11–$361 Nov 2025
GPT-5.1-Codex-Mini $0.25 $2 $0.03 400k $2–$73 Nov 2025
gpt-oss-safeguard-20b $0.075 $0.30 $0.0375 131k $0.98–$17 Oct 2025
GPT-5 Image Mini $2.50 $2 $0.25 400k $10–$290 Oct 2025
GPT-5 Image $10 $10 $1.25 400k $47–$1,230 Oct 2025
GPT-5 Pro $15 $120 — 400k $363–$5,520 Oct 2025
GPT-5 $1.25 $10 $0.125 400k $11–$361 Aug 2025
GPT-5 Mini $0.25 $2 $0.025 400k $2–$72 Aug 2025
GPT-5 Nano $0.05 $0.40 $0.005 400k $0.42–$14 Aug 2025
gpt-oss-120b $0.09 $0.36 — 131k $2–$24 Aug 2025
gpt-oss-20b $0.075 $0.30 $0.0375 131k $0.98–$17 Aug 2025
o3 Pro $20 $80 — 200k $436–$5,440 Jun 2025
o3 $2 $8 $0.50 200k $17–$412 Apr 2025
GPT-4.1 $2 $8 $0.50 1M $17–$412 Apr 2025
GPT-4.1 Mini $0.40 $1.60 $0.10 1M $3–$82 Apr 2025
GPT-4.1 Nano $0.10 $0.40 $0.03 1M $0.96–$21 Apr 2025
GPT-4o (2024-11-20) $2.50 $10 $1.25 128k $33–$570 Nov 2024
GPT-4o (2024-08-06) $2.50 $10 $1.25 128k $33–$570 Aug 2024
GPT-4o-mini $0.15 $0.60 $0.075 128k $2–$34 Jul 2024
GPT-4o-mini (2024-07-18) $0.15 $0.60 $0.075 128k $2–$34 Jul 2024
GPT-4o $2.50 $10 $1.25 128k $33–$570 May 2024
GPT-4o (2024-05-13) $5 $15 — 128k $106–$1,240 May 2024
GPT-3.5 Turbo (older v0613) $1 $2 — 4k $21–$224 Jan 2024
GPT-3.5 Turbo 16k $3 $4 — 16k $61–$624 Aug 2023
GPT-4 $30 $60 — 8k $618–$6,720 May 2023

Frequently asked questions

How much does the OpenAI API cost?

OpenAI's API costs $0.10–$10 per million input tokens and $0.50–$50 per million output tokens across its 20 current models (November 2026). The cheapest is GPT-6 Luna Pro at $0.10/$0.50; the most expensive is GPT-6 Astra Pro at $10/$50. On the newest, GPT-6.2 Astra Pro, a month of daily AI coding comes to roughly $47–$1,699.

Does OpenAI offer cheaper batch pricing?

Yes. 20 of 20 current OpenAI models have a batch tier, typically around half the normal price, for jobs that don't need an instant reply.

Does OpenAI discount cached input?

20 of 20 current models list a cache-read price. In agentic coding most input is re-read context, so the cache price matters more than the headline input price.

Other providers

Coding-month ranges assume 20M–200M tokens of agentic use; see the methodology. Prices are OpenRouter list prices from openrouter.ai/models, which normally match OpenAI's own. To price a whole build, run the estimator.