Provider pricing hub
OpenAI API Pricing (July 2026)
The OpenAI API costs $5/$30 per million input/output tokens for the flagship GPT-5.6 Sol, $2.50/$15 for GPT-5.6 Terra, and $1/$6 for GPT-5.6 Luna. GPT-5.5 matches Sol at $5/$30. Cached input bills at 10% of standard rates; the Batch API halves everything.
OpenAI runs the widest price ladder of any provider — from $0.05 per million input tokens (GPT-5 nano) to $30/$180 (GPT-5.5 Pro), a 600x spread. The table below lists every OpenAI model in BenchLM's pricing registry, synced automatically from OpenAI's live pricing page and launch announcements, with cached-input and Batch API rates alongside the headline numbers. The GPT-5.6 family (Sol, Terra, Luna) went GA on July 9, 2026 with a 1M-token context window on all three tiers.
For how the models perform per dollar, see the OpenAI model rankings, price-vs-performance view, and the OpenAI pricing deep dive.
Every OpenAI API price per 1M tokens
| Model | Input $/M | Cached input $/M | Output $/M | Batch input $/M | Batch output $/M | Context |
|---|---|---|---|---|---|---|
| o1-pro | $150 | $15 | $600 | $75 | $300 | 200K |
| GPT-5.4 Pro | $30 | $3 | $180 | $15 | $90 | 1.05M |
| GPT-5.5 Pro | $30 | $3 | $180 | $15 | $90 | 1M |
| GPT-5.2 Pro | $25 | $2.5 | $150 | $12.5 | $75 | 400K |
| o3-pro | $20 | $2 | $80 | $10 | $40 | 200K |
| o1 | $15 | $1.5 | $60 | $7.5 | $30 | 200K |
| o1-preview | $15 | $1.5 | $60 | $7.5 | $30 | 200K |
| GPT-4 Turbo | $10 | $1 | $30 | $5 | $15 | 128K |
| GPT-5.5 | $5 | $0.5 | $30 | $2.5 | $15 | 1M |
| GPT-5.6 Sol | $5 | $0.5 | $30 | $2.5 | $15 | 1M |
| GPT-5.4 | $2.5 | $0.25 | $15 | $1.25 | $7.5 | 1.05M |
| GPT-5.6 Terra | $2.5 | $0.25 | $15 | $1.25 | $7.5 | 1M |
| GPT-4o | $2.5 | $0.25 | $10 | $1.25 | $5 | 128K |
| GPT-4.1 | $2 | $0.2 | $8 | $1 | $4 | 1M |
| o3 | $2 | $0.2 | $8 | $1 | $4 | 200K |
| GPT-5.2 | $1.75 | $0.175 | $14 | $0.875 | $7 | 400K |
| GPT-5.2-Codex | $1.75 | $0.175 | $14 | $0.875 | $7 | 400K |
| GPT-5.3 Codex | $1.75 | $0.175 | $14 | $0.875 | $7 | 400K |
| GPT-5.3 Instant | $1.75 | $0.175 | $14 | $0.875 | $7 | 128K |
| GPT-5.2 Instant | $1.5 | $0.15 | $6 | $0.75 | $3 | 128K |
| GPT-5 (high) | $1.25 | $0.125 | $10 | $0.625 | $5 | 400K |
| GPT-5.1 | $1.25 | $0.125 | $10 | $0.625 | $5 | 400K |
| GPT-5.1-Codex-Max | $1.25 | $0.125 | $10 | $0.625 | $5 | 400K |
| o3-mini | $1.1 | $0.11 | $4.4 | $0.55 | $2.2 | 200K |
| o4-mini | $1.1 | $0.11 | $4.4 | $0.55 | $2.2 | 200K |
| GPT-5.6 Luna | $1 | $0.1 | $6 | $0.5 | $3 | 1M |
| GPT-5.4 mini | $0.75 | $0.075 | $4.5 | $0.375 | $2.25 | 400K |
| GPT-4.1 mini | $0.4 | $0.04 | $1.6 | $0.2 | $0.8 | 1M |
| GPT-5 mini | $0.25 | $0.025 | $2 | $0.125 | $1 | 128K |
| GPT-5.4 nano | $0.2 | $0.02 | $1.25 | $0.1 | $0.625 | 400K |
| GPT-4o mini | $0.15 | $0.015 | $0.6 | $0.075 | $0.3 | 128K |
| GPT-4.1 nano | $0.1 | $0.01 | $0.4 | $0.05 | $0.2 | 1M |
| GPT-5 nano | $0.05 | $0.005 | $0.4 | $0.025 | $0.2 | 400K |
| GPT-OSS 120B | $0 | $0 | $0 | $0 | $0 | 128K |
| GPT-OSS 20B | $0 | $0 | $0 | $0 | $0 | 128K |
Cached input shown at OpenAI's documented 10% cache-read rate where no explicit price is listed (GPT-5.6 bills cache writes at 1.25x with a 30-minute minimum cache life). Batch columns apply OpenAI's flat 50% Batch API discount. Data-residency surcharges (10% on post-March-2026 models) are not included.
Estimate your monthly OpenAI API bill
| Model | Est. monthly cost |
|---|---|
| o1-pro | $2,700 |
| GPT-5.4 Pro | $660 |
| GPT-5.5 Pro | $660 |
| GPT-5.2 Pro | $550 |
| o3-pro | $360 |
| o1 | $270 |
| o1-preview | $270 |
| GPT-4 Turbo | $160 |
Estimates use OpenAI's standard per-token rates from the table above. For task-level presets and cross-provider comparison, use the full AI cost calculator.
Cached input and Batch API: how to pay half or less
Cached input is automatic: repeated prompt prefixes (system prompts, tool definitions, shared context) bill at 10% of the standard input rate — $0.50/M instead of $5/M on GPT-5.6 Sol. On GPT-5.6 the accounting got more predictable: cache writes cost 1.25x standard input and cached content persists for at least 30 minutes, so any prefix reused more than once nets out cheaper.
The Batch API takes a flat 50% off input and output for asynchronous jobs, and GPT-5.5 additionally offers Flex at half rate and Priority at 2.5x. Stacked, a cached and batched Sol workload can run at roughly a quarter of list price. Model your own mix with the cost calculator or the estimator above.
Which OpenAI model should you pay for?
Start cheap and escalate on measured quality gaps. GPT-5.6 Luna ($1/$6) and the GPT-5.4 nano/mini tiers cover classification, extraction, and routing. GPT-5.6 Terra ($2.50/$15) is the production default — the same price point GPT-5.4 held, with the newer family's capabilities. GPT-5.6 Sol and GPT-5.5 ($5/$30) are the flagship tier for frontier coding, reasoning, and agentic work. GPT-5.5 Pro ($30/$180) is a 6x jump that only makes sense when you have evaluation results proving the flagship tier falls short.
Older families stay useful: OpenAI keeps GPT-5.1 ($1.25/$10) and the GPT-5.4 family on the live price sheet, and if your evals pass on them there is no reason to pay 2026-flagship rates.
OpenAI vs Claude and Gemini pricing
The flagship tier has converged: GPT-5.6 Sol and GPT-5.5 at $5/$30 sit beside Claude Opus 4.8 at $5/$25 — identical input, Anthropic 17% cheaper on output. Mid-tier, GPT-5.6 Terra ($2.50/$15) undercuts Claude Sonnet 5's standard $3/$15 (though Sonnet's $2/$10 intro pricing flips that through August 31). Gemini 3.1 Pro at $2/$12 remains the price aggressor at the frontier, and at the very top Claude Fable 5 ($10/$50) costs a third of GPT-5.5 Pro ($30/$180).
With prices this close, benchmarks decide it: see the table above next to the Claude API pricing hub, or the head-to-head Opus 4.8 vs GPT-5.6 Sol comparison on the compare hub.
OpenAI API pricing FAQ
How much does the OpenAI API cost?
Current OpenAI API pricing runs from $0.05 per million input tokens (GPT-5 nano) to $30/$180 (GPT-5.5 Pro). The current flagships are GPT-5.6 Sol and GPT-5.5 at $5/$30 per million input/output tokens, with GPT-5.6 Terra at $2.50/$15 and Luna at $1/$6.
Does an OpenAI API key cost money?
The API key itself is free — you pay only for the tokens you use, billed per million input and output tokens at the rates in the table above. There is no standing free tier; new accounts may receive trial credits, and costs scale directly with usage from there.
How much does the ChatGPT API cost?
"ChatGPT API" refers to the same OpenAI API used to access GPT models programmatically — the ChatGPT consumer subscription ($20/month Plus) is separate. API access to the models behind ChatGPT bills per token: GPT-5.6 Sol at $5/$30, Terra at $2.50/$15, and Luna at $1/$6 per million tokens.
What is GPT API pricing for older models like GPT-5.4 and GPT-5.1?
OpenAI keeps earlier families on the live price sheet: GPT-5.4 at $2.50/$15 (mini $0.75/$4.50, nano $0.20/$1.25) and GPT-5.1 at $1.25/$10, all with 10% cached-input rates and 50% Batch discounts. They remain the best value when your workload doesn't need the newest capabilities.