OpenAI API Pricing
Complete pricing breakdown for all 31 OpenAI models — GPT-5.6 Sol, GPT-5.5, o3 Pro, GPT-4.1, and more
All OpenAI Models (23 Active)
Pricing per 1M tokens, as of Jul 2026. Sorted by input price (lowest to highest). 3 deprecated models excluded.
| Model | Tier | Input (per 1M tokens) | Output (per 1M tokens) | Context Window |
|---|---|---|---|---|
| GPT-5 nano | Budget | $0.05 | $0.40 | 128K |
| GPT-oss 20B | Budget | $0.08 | $0.35 | 128K |
| GPT-4.1 nano Oct 23 | Budget | $0.10 | $0.40 | 1M |
| GPT-oss 120B | Budget | $0.15 | $0.60 | 128K |
| GPT-5.4 nano | Budget | $0.20 | $1.25 | 400K |
| GPT-5 mini Dec 11 | Budget | $0.25 | $2.00 | 272K |
| GPT-4.1 mini | Budget | $0.40 | $1.60 | 1M |
| GPT Audio Mini | Budget | $0.60 | $2.40 | 128K |
| GPT-5.4 mini | Budget | $0.75 | $4.50 | 400K |
| GPT-5.6 Luna | Mid | $1.00 | $6.00 | 1.05M |
| o3-mini Oct 23 | Mid | $1.10 | $4.40 | 200K |
| o4-mini Oct 23 | Mid | $1.10 | $4.40 | 200K |
| GPT-5 Dec 11 | Mid | $1.25 | $10.00 | 272K |
| GPT-5.1 | Mid | $1.25 | $10.00 | 272K |
| GPT-5.3 Codex | Mid | $1.75 | $14.00 | 400K |
| GPT-5.2 | Mid | $1.75 | $14.00 | 400K |
| GPT-4.1 | Mid | $2.00 | $8.00 | 1M |
| o3 Dec 11 | Mid | $2.00 | $8.00 | 200K |
| GPT-5.6 Terra | Mid | $2.50 | $15.00 | 1.05M |
| GPT-5.4 | Mid | $2.50 | $15.00 | 400K |
| GPT Audio | Mid | $2.50 | $10.00 | 128K |
| GPT-5.6 Sol | Premium | $5.00 | $30.00 | 1.05M |
| GPT-5.5 | Premium | $5.00 | $30.00 | 1.05M |
| GPT-5 Pro | Premium | $15.00 | $120.00 | 272K |
| o3 Pro Dec 11 | Premium | $20.00 | $80.00 | 200K |
| GPT-5.2 Pro | Premium | $21.00 | $168.00 | 400K |
| GPT-5.5 Pro | Premium | $30.00 | $180.00 | 1.05M |
| GPT-5.4 Pro | Premium | $30.00 | $180.00 | 400K |
● Oct 23 / Dec 11 = sunset date. These models will be removed on that date. 3 deprecated models (GPT-4o, GPT-4o mini, o4 Mini Deep Research) excluded.
Which OpenAI Model Should You Use?
Match your use case to the right model and tier.
Chatbots & Customer Support
Fast, modern, and extremely cheap at $0.20/$1.25 per 1M tokens. 400K context handles long conversations. Best budget option for most conversational tasks.
Content Generation & Marketing
Excellent balance of quality and cost at $2.50/$15.00. Produces high-quality long-form content, blog posts, and marketing copy with strong reasoning. 400K context.
Data Analysis & Summarization
Modern 1.05M context at $0.20/$1.20. Ideal for analyzing large documents, summarizing reports, and processing structured data that doesn'''t fit in smaller windows.
Code Generation & Debugging
Purpose-built for code at $1.75/$14.00. 400K context handles multi-file codebases, reviews, and refactoring. Strongest OpenAI model for programming tasks.
Complex Reasoning & Research
OpenAI'''s most capable general model at $5.00/$30.00. Best for multi-step reasoning, complex analysis, and tasks requiring the highest accuracy. 1.05M context.
Bulk Processing & ETL
Cheapest OpenAI model at $0.08/$0.35. Open-weight, 128K context. Perfect for classification, extraction, and high-volume lightweight processing at minimal cost.
OpenAI Cost Calculator
Estimate your monthly spend for any OpenAI model.
Monthly Cost Estimate
Based on published OpenAI API pricing. Actual costs may vary.
OpenAI vs Competitors
How do OpenAI's prices compare to Anthropic and Google for equivalent model tiers?
| Tier | OpenAI | Input / Output | Anthropic | Input / Output | Input / Output | |
|---|---|---|---|---|---|---|
| Budget | GPT-5.4 nano | $0.20 / $1.25 | Claude Haiku 4.5 | $1.00 / $5.00 | Gemini 3.5 Flash-Lite | $0.30 / $2.50 |
| Mid-Range | GPT-5.4 | $2.50 / $15.00 | Claude Sonnet 5 | $2.00 / $10.00 | Gemini 2.5 Pro | $1.25 / $10.00 |
| Premium | GPT-5.5 | $5.00 / $30.00 | Claude Opus 5 | $5.00 / $25.00 | Gemini 3.1 Pro | $2.00 / $12.00 |
Prices per 1M tokens as of Jul 2026. Google Gemini models have larger context windows (up to 1M tokens) but different capability profiles.
See how OpenAI models stack up against Anthropic, Google, and more
Compare OpenAI vs Other Providers →Related Reading
Deep dives on OpenAI pricing, comparisons, and model reviews.
DeepSeek V4 Pro vs GPT-5.4
DeepSeek V4 Pro ($0.44/$0.87) vs GPT-5.4 ($2.50/$15). 82% cheaper input, 94% cheaper output. Is the quality gap worth 6x the price?
ComparisonFable 5 vs GPT-5.5: Premium API Showdown
Fable 5 ($10/$50) vs GPT-5.5 ($5/$30) — which premium AI API justifies its price? Real pricing and use-case breakdown.
Pricing GuideGPT-5.6 API Pricing: Sol, Terra, Luna Costs Compared
GPT-5.6 Sol ($5/$30), Terra ($2/$12), Luna ($0.20/$1.20) — full pricing breakdown with competitor comparisons and real cost scenarios.
Pricing GuideOpenAI API Pricing Guide: Every Model Explained
A complete walkthrough of OpenAI's pricing tiers, hidden costs, and strategies to optimize your spend across GPT-5, GPT-4o, and more.
ComparisonOpenAI vs Gemini: Which Is Cheaper in 2026?
We compare OpenAI and Google Gemini pricing model-by-model to find the most cost-effective option for your specific workload.
ComparisonOpenAI vs Anthropic vs Google: Full Pricing Breakdown
A three-way comparison of the major LLM API providers. We analyze pricing, performance, and cost-per-quality across all tiers.
First LookGPT-5 First Look: Is It Worth the Premium Price?
GPT-5 costs 4x more than GPT-4o. We benchmark its capabilities to see where the extra spend is justified — and where it isn't.
PricingOpenAI GPT-oss Pricing: Open-Source Models at $0.08/1M
GPT-oss 120B and 20B pricing breakdown. How do OpenAI's open-weight models compare to Llama and DeepSeek?
PricingCheapest GPT-5 API: Complete Cost Breakdown
All 6 GPT-5 family models ranked by price. Find the cheapest option from $0.08 to $30 per million tokens.
GuidesOpenAI API Alternatives: 7 Cheaper Options
Looking to switch from OpenAI? Compare 7 alternatives that save 60-97% on your API bill.
ComparisonGPT-oss vs Llama 4: Open-Source Showdown
OpenAI's GPT-oss vs Meta's Llama 4: Which open-source LLM API gives you the best price-to-performance ratio?
GuideBest AI API for Production in 2026
Ranked: best AI APIs by reliability, cost, context, and speed. GPT-5, Claude, Gemini, DeepSeek compared.
Guide7 AI API Pricing Mistakes That Cost Developers Thousands
Avoid these 7 common mistakes that cause developers to overpay by 3-10x on OpenAI, Anthropic, and Google APIs.
TeamsTeam AI API Cost Management
Planning costs for a team? Model your engineering team's usage, compare providers, and generate budget reports for finance.
Stop guessing — get exact OpenAI costs
No signup required to 93-model comparison, migration code snippets, PDF reports, price alerts, and cost monitoring. ✅ All tools free.
Free Tools →Calculate Your OpenAI Costs
Enter your usage, pick a model, and see exactly what you'll spend per month.
Try the APIpulse Calculator🔔 Track OpenAI price changes
Get alerted when GPT-5.5, GPT-5.4 mini, or any OpenAI model changes price.
Set Up Free OpenAI Alerts →Get notified when API prices change
No spam. Only pricing updates and new features. Unsubscribe anytime.
Related Tools
- Personal Cost Dashboard — Track your AI spending over time, set budget alerts, export CSV reports
- AI API Cost Optimization Playbook — 12 proven strategies to cut your API bill with real savings calculations
- Multi-Model Comparison — Compare up to 6 models side-by-side with visual cost bars and annual savings