Skip to main content

OpenAI API Pricing Calculator

Use this OpenAI API pricing calculator to compare GPT-5, Codex, o3, and reasoning model costs. Codex Mini starts at $1.50/1M input and $6.00/1M output, while GPT-5.3 Codex costs $1.75/1M input and $14.00/1M output for deeper repo work.

31Models
$0.05Starting from
Try OpenAI

OpenAI pricing quick answer

Use this OpenAI API pricing calculator to estimate GPT-5, Codex, and ChatGPT-style API workloads. Codex Mini starts at $1.50/1M input and $6.00/1M output, while GPT-5.3 Codex costs $1.75/1M input and $14.00/1M output for deeper repo work and stronger agentic coding.

$0.05
Cheapest Input Price
GPT-5 nano
$10.796774
Average Input Price
per 1M tokens
$150.00
Most Expensive
o1 Pro

OpenAI Recommendation

Use the OpenAI API pricing calculator on this page to budget GPT-5, Codex, and o-series usage. Start with Codex Mini at $1.50/1M input and $6.00/1M output, then move to GPT-5.3 Codex at $1.75/1M input and $14.00/1M output when code quality and deeper repo work matter more than absolute token savings. Choose GPT-5 nano for budget-heavy workloads, and step up to o1 Pro when quality matters more than token cost.

OpenAI Models & Pricing

ModelInput PriceOutput PriceContext WindowMax OutputCategoryCapabilities
GPT-5.5 Instant
Latest Instant-class ChatGPT model with stronger factuality, clearer answers, and improved personalization via the chat-latest API alias.
Released: 5/5/2026
$5.00
per 1M tokens
$30.00
per 1M tokens
1,050,000
tokens
128,000
tokens
flagship
textvisioncodereasoning
GPT-5.5
OpenAI frontier model for complex reasoning, coding, and professional work.
Released: 4/24/2026
$5.00
per 1M tokens
$30.00
per 1M tokens
1,050,000
tokens
128,000
tokens
flagship
textvisioncodereasoning
GPT-5.5 Pro
Higher-compute GPT-5.5 variant for tougher problems requiring smarter, more precise responses.
Released: 4/24/2026
$30.00
per 1M tokens
$180.00
per 1M tokens
1,050,000
tokens
128,000
tokens
reasoning
textvisioncodereasoning
GPT-5.4
Our most capable model for professional work
Released: 3/6/2026
$2.50
per 1M tokens
$15.00
per 1M tokens
1,050,000
tokens
131,072
tokens
flagship
textvisioncodereasoning
GPT-5.4 Pro
The smartest and most precise GPT-5.4 variant for the most demanding tasks
Released: 3/6/2026
$30.00
per 1M tokens
$180.00
per 1M tokens
1,050,000
tokens
131,072
tokens
reasoning
textvisioncodereasoning
GPT-5.4 mini
Fast and affordable GPT-5.4 variant for well-defined tasks
Released: 3/6/2026
$0.75
per 1M tokens
$4.50
per 1M tokens
1,050,000
tokens
65,536
tokens
efficient
textvisioncode
GPT-5.4 nano
Ultra-fast and cheapest GPT-5.4 variant for simple tasks
Released: 3/6/2026
$0.20
per 1M tokens
$1.25
per 1M tokens
128,000
tokens
8,192
tokens
efficient
text
GPT-5.3 Codex
Optimized for terminal execution, code review, and token efficiency. 77.3% Terminal-Bench, 2-4x fewer tokens per task
Released: 3/1/2026
$1.75
per 1M tokens
$14.00
per 1M tokens
256,000
tokens
32,768
tokens
coding
textcode
Codex Mini
Efficient coding-optimized model powering the OpenAI Codex app
Released: 2/2/2026
$1.50
per 1M tokens
$6.00
per 1M tokens
200,000
tokens
32,768
tokens
efficient
textcodereasoning
GPT-5.2
The best model for coding and agentic tasks across industries
Released: 12/11/2025
$1.75
per 1M tokens
$14.00
per 1M tokens
1,000,000
tokens
131,072
tokens
flagship
textvisionaudiocodereasoning
GPT-5.2 pro
The smartest and most precise model
Released: 12/11/2025
$21.00
per 1M tokens
$168.00
per 1M tokens
1,000,000
tokens
131,072
tokens
reasoning
textvisionaudiocodereasoning
GPT-5.1
Previous flagship with strong all-round performance
Released: 11/12/2025
$1.25
per 1M tokens
$10.00
per 1M tokens
1,000,000
tokens
131,072
tokens
flagship
textvisionaudiocodereasoning
GPT-5
Frontier model with advanced capabilities
Released: 8/7/2025
$1.25
per 1M tokens
$10.00
per 1M tokens
1,000,000
tokens
131,072
tokens
flagship
textvisionaudiocode
GPT-5 Pro
Most powerful GPT-5 variant for the most complex tasks, using scaled parallel compute for highest quality answers
Released: 8/7/2025
$15.00
per 1M tokens
$120.00
per 1M tokens
200,000
tokens
100,000
tokens
flagship
textvisioncodereasoning
GPT-5 mini
A faster, cheaper version of GPT-5 for well-defined tasks
Released: 8/7/2025
$0.25
per 1M tokens
$2.00
per 1M tokens
500,000
tokens
65,536
tokens
efficient
textvisioncode
GPT-5 nano
Ultra-fast and cheapest OpenAI model for simple tasks
Released: 8/7/2025
$0.05
per 1M tokens
$0.40
per 1M tokens
128,000
tokens
8,192
tokens
efficient
text
o4-mini Deep Research
Faster, more affordable deep research model for complex research tasks
Released: 6/26/2025
$2.00
per 1M tokens
$8.00
per 1M tokens
200,000
tokens
32,768
tokens
reasoning
textreasoningcode
o3 Deep Research
Powerful deep research model built on o3 for complex multi-step research tasks
Released: 6/26/2025
$10.00
per 1M tokens
$40.00
per 1M tokens
200,000
tokens
32,768
tokens
reasoning
textreasoningvisioncode
o3-pro
Premium reasoning model for the most demanding tasks
Released: 6/10/2025
$20.00
per 1M tokens
$80.00
per 1M tokens
1,000,000
tokens
131,072
tokens
reasoning
textreasoningcode
o3
Advanced reasoning model for complex problem-solving
Released: 4/16/2025
$2.00
per 1M tokens
$8.00
per 1M tokens
1,000,000
tokens
131,072
tokens
reasoning
textreasoningvisioncode
o4-mini
Latest efficient reasoning model
Released: 4/16/2025
$1.10
per 1M tokens
$4.40
per 1M tokens
2,000,000
tokens
131,072
tokens
reasoning
textreasoningcode
GPT-4.1
Fine-tunable model with strong reasoning capabilities
Released: 4/14/2025
$2.00
per 1M tokens
$8.00
per 1M tokens
200,000
tokens
32,768
tokens
flagship
textvisioncode
GPT-4.1 mini
Efficient version of GPT-4.1 with reduced costs
Released: 4/14/2025
$0.40
per 1M tokens
$1.60
per 1M tokens
200,000
tokens
16,384
tokens
efficient
textvisioncode
GPT-4.1 nano
Ultra-fast and affordable fine-tunable model
Released: 4/14/2025
$0.10
per 1M tokens
$0.40
per 1M tokens
128,000
tokens
8,192
tokens
efficient
text
o3-mini
Efficient reasoning model for production workloads
Released: 1/31/2025
$1.10
per 1M tokens
$4.40
per 1M tokens
500,000
tokens
65,536
tokens
reasoning
textreasoningcode
o1 Pro
Most powerful o1 reasoning model with extended compute for the hardest problems
Released: 12/17/2024
$150.00
per 1M tokens
$600.00
per 1M tokens
200,000
tokens
100,000
tokens
flagship
textvisioncodereasoning
o1
Original reasoning model for complex problem-solving
Released: 9/12/2024
$15.00
per 1M tokens
$60.00
per 1M tokens
200,000
tokens
65,536
tokens
reasoning
textreasoning
o1-mini
Compact reasoning model optimized for STEM tasks
Released: 9/12/2024
$1.10
per 1M tokens
$4.40
per 1M tokens
128,000
tokens
65,536
tokens
reasoning
textreasoning
GPT-4o mini
Efficient and affordable model with multimodal capabilities
Released: 7/18/2024
$0.15
per 1M tokens
$0.60
per 1M tokens
128,000
tokens
16,384
tokens
efficient
textvision
GPT-4o
Multimodal model with vision and audio capabilities
Released: 5/13/2024
$2.50
per 1M tokens
$10.00
per 1M tokens
128,000
tokens
16,384
tokens
flagship
textvisionaudio
GPT-4 Turbo
High-performance model with vision capabilities and large context
Released: 4/9/2024
$10.00
per 1M tokens
$30.00
per 1M tokens
128,000
tokens
4,096
tokens
flagship
textvisioncode

Calculate OpenAI Costs

Use our calculator to estimate costs for any OpenAI model based on your usage patterns.

Compare OpenAI Models

OpenAI Pricing FAQ

How much does the OpenAI API cost?

OpenAI API pricing on this page ranges from lower-cost GPT and Codex options up to premium reasoning models. For coding-specific routes, Codex Mini starts at $1.50 per million input tokens and $6.00 per million output tokens, while GPT-5.3 Codex costs $1.75 input and $14.00 output per million tokens.

Is there a ChatGPT or OpenAI pricing calculator?

Yes. This page includes an OpenAI API pricing calculator so you can estimate prompt cost, completion cost, cost per request, and monthly spend for GPT-5, Codex, o-series, and other OpenAI models without doing the token math by hand.

Which OpenAI model should I use for coding?

Start with Codex Mini when you want the lowest-cost OpenAI coding route for code review and lightweight edits. Step up to GPT-5.3 Codex when you need stronger coding quality or longer agentic sessions, and use the broader GPT-5 family when coding is only one part of a multimodal workflow.

What OpenAI models are on this page?

This page compares 31 OpenAI models including Codex Mini, GPT-5.3 Codex, GPT-5.5, GPT-5.4, GPT-5.2, GPT-5, and OpenAI reasoning models. The full table shows pricing, context window, and capabilities in one place.

How does OpenAI pricing compare to other providers?

Codex Mini starts at $1.50/1M input tokens, which keeps OpenAI competitive for coding-focused workloads. Use the comparison links on this page to stack OpenAI against Claude, Gemini, DeepSeek, and other providers on direct token cost, context window, and model tier.

About OpenAI

Leading AI research company with powerful language models