OpenAI API Pricing
Compare all 20 OpenAI models with detailed pricing, capabilities, and performance metrics.
All Models
| Model Name | Category | Input Price | Output Price | Cached Input | Batch Input | Context | Max Output | Multimodal | Fine-tuning |
|---|---|---|---|---|---|---|---|---|---|
GPT-5.4 Latest and most capable OpenAI model with 1M+ context and advanced reasoning. | Flagship | $2.500000 | $15.000000 | $0.250000 | $1.250000 | 1.1M | 128K | Image | |
GPT-5.4 Pro Premium version of GPT-5.4 with extended compute for the hardest tasks. | Flagship | $30.000000 | $180.000000 | — | — | 1.1M | 128K | Image | |
GPT-5.3 Codex Specialized coding model with exceptional software engineering capabilities. | Flagship | $1.750000 | $14.000000 | $0.175000 | — | 400K | 128K | Image | |
GPT-5.2 Highly capable general-purpose model with advanced reasoning. | Flagship | $1.750000 | $14.000000 | $0.175000 | $0.875000 | 400K | 128K | A/V | |
GPT-5.2 Pro Premium GPT-5.2 with extended compute for complex problem-solving. | Flagship | $10.500000 | $84.000000 | — | — | 400K | 128K | A/V | |
GPT-5.1 Strong general-purpose model bridging GPT-5 and GPT-5.2. | Flagship | $1.250000 | $10.000000 | $0.125000 | — | 400K | 128K | Image | |
GPT-5 Powerful general-purpose model with strong reasoning capabilities. | Flagship | $1.250000 | $10.000000 | $0.125000 | $0.625000 | 400K | 128K | A/V | |
GPT-5 Pro Premium GPT-5 with extended compute for difficult reasoning tasks. | Flagship | $15.000000 | $120.000000 | — | — | 400K | 128K | A/V | |
GPT-5 mini Efficient mid-tier model balancing cost and performance. | Mid-Tier | $0.250000 | $2.000000 | $0.025000 | $0.125000 | 400K | 128K | Image | |
GPT-5 nano Smallest and cheapest GPT-5 variant for high-volume tasks. | Budget | $0.050000 | $0.400000 | $0.005000 | $0.025000 | 400K | 128K | Text | |
o3 Advanced reasoning model for complex multi-step problems. | Flagship | $2.000000 | $8.000000 | $0.500000 | $1.000000 | 200K | 100K | Image | |
o3 Pro Most powerful reasoning model with extended compute for difficult tasks. | Flagship | $20.000000 | $80.000000 | — | — | 200K | 100K | Image | |
o4 mini Latest compact reasoning model with image understanding and tool use. | Mid-Tier | $1.100000 | $4.400000 | $0.275000 | $0.550000 | 200K | 100K | Image | |
o3 mini Compact reasoning model with strong math and coding performance. | Mid-Tier | $1.100000 | $4.400000 | $0.550000 | $0.550000 | 200K | 100K | Text | |
o1 Original reasoning model for science, math, and coding tasks. | Flagship | $15.000000 | $60.000000 | $7.500000 | $7.500000 | 200K | 100K | Image | |
GPT-4.1 Flagship GPT-4 generation model with 1M context window and strong coding. | Flagship | $2.000000 | $8.000000 | $0.500000 | $1.000000 | 1.0M | 32.8K | Image | |
GPT-4.1 mini Cost-effective GPT-4.1 variant with 1M context and strong performance. | Mid-Tier | $0.400000 | $1.600000 | $0.100000 | $0.200000 | 1.0M | 32.8K | Image | |
GPT-4.1 nano Ultra-affordable GPT-4.1 variant for high-volume low-complexity tasks. | Budget | $0.100000 | $0.400000 | $0.025000 | $0.050000 | 1.0M | 32.8K | Image | |
GPT-4o Previous generation multimodal model. Still widely used. | Mid-Tier | $2.500000 | $10.000000 | $1.250000 | $1.250000 | 128K | 16.4K | A/V | |
GPT-4o mini Affordable small model with good quality for focused tasks. | Budget | $0.150000 | $0.600000 | $0.075000 | $0.075000 | 128K | 16.4K | Image |
Prices in USD per 1 million tokens. Data last updated 4/2/2026.
Compare OpenAI Models
Use the comparison tool to pit OpenAI models against each other or models from other providers:
Open Pricing ComparisonEstimate Your Costs
Calculate how much you'll spend with OpenAI's models based on your projected token usage.
Go to Cost EstimatorFrequently Asked Questions
How much does OpenAI API cost?
OpenAI offers a range of models with input pricing from $0.050000 to $30.00 per 1 million input tokens. Output pricing varies by model and ranges from $0.400000 to $180.00 per 1 million output tokens. Use the pricing comparison tool to see detailed breakdowns for all models.
Which OpenAI model is cheapest?
The GPT-5 nano is OpenAI's most cost-effective option at $0.050000 per 1M input tokens. It is text-only. Check the pricing table above to compare all available models or use the cost estimator tool for your specific use case.
Does OpenAI offer batch API pricing?
Yes, OpenAI offers batch API pricing for non-time-sensitive requests. Batch pricing is typically 50% cheaper than regular pricing. Models with batch support are marked in the table above. See OpenAI's official pricing page for the latest batch pricing details and availability.