OpenAI API Pricing Calculator
Explore current OpenAI text model pricing and compare input, output, and context-window tradeoffs before estimating your own usage.
Quick facts
Provider
OpenAI
Current models
25
Cheapest current model
GPT-5 nano
Largest context window
1.05M
Pricing unit
Per 1M tokens
Current model pricing
| Model | Input / 1M | Output / 1M | Context window | Status | API docs |
|---|---|---|---|---|---|
| GPT-5 nano | $0.0500 | $0.4000 | 400,000 | CURRENT | Source |
| GPT-4.1 nano | $0.1000 | $0.4000 | 1,047,576 | CURRENT | Source |
| GPT-4o mini | $0.1500 | $0.6000 | 128,000 | CURRENT | Source |
| GPT-5.4 nano | $0.2000 | $1.2500 | 400,000 | CURRENT | Source |
| GPT-5 mini | $0.2500 | $2.0000 | 400,000 | CURRENT | Source |
| GPT-4.1 mini | $0.4000 | $1.6000 | 1,047,576 | CURRENT | Source |
| GPT-5.4 mini | $0.7500 | $4.5000 | 400,000 | CURRENT | Source |
| o1-mini | $1.1000 | $4.4000 | 128,000 | CURRENT | Source |
| o3-mini | $1.1000 | $4.4000 | 200,000 | CURRENT | Source |
| o4-mini | $1.1000 | $4.4000 | 200,000 | CURRENT | Source |
| GPT-5 | $1.2500 | $10.0000 | 400,000 | CURRENT | Source |
| GPT-5.1 | $1.2500 | $10.0000 | 400,000 | CURRENT | Source |
| GPT-5.2 | $1.7500 | $14.0000 | 400,000 | CURRENT | Source |
| GPT-4.1 | $2.0000 | $8.0000 | 1,047,576 | CURRENT | Source |
| o3 | $2.0000 | $8.0000 | 200,000 | CURRENT | Source |
| GPT-4o | $2.5000 | $10.0000 | 128,000 | CURRENT | Source |
| GPT-5.4 | $2.5000 | $15.0000 | 1,050,000 | CURRENT | Source |
| GPT-5.5 | $5.0000 | $30.0000 | 1,050,000 | CURRENT | Source |
| GPT-5 pro | $15.0000 | $120.0000 | 400,000 | CURRENT | Source |
| o1 | $15.0000 | $60.0000 | 200,000 | CURRENT | Source |
| o3-pro | $20.0000 | $80.0000 | 200,000 | CURRENT | Source |
| GPT-5.2 pro | $21.0000 | $168.0000 | 400,000 | CURRENT | Source |
| GPT-5.4 pro | $30.0000 | $180.0000 | 1,050,000 | CURRENT | Source |
| GPT-5.5 pro | $30.0000 | $180.0000 | 1,050,000 | CURRENT | Source |
| o1-pro | $150.0000 | $600.0000 | 200,000 | CURRENT | Source |
Example costs
| Scenario | Model | Estimated cost |
|---|---|---|
| 1K input + 1K output | GPT-5 nano | $0.0005 |
| 1K input + 1K output | GPT-4.1 nano | $0.0005 |
| 1K input + 1K output | GPT-4o mini | $0.0007 |
| 10K input + 1K output | GPT-5 nano | $0.0009 |
| 10K input + 1K output | GPT-4.1 nano | $0.0014 |
| 10K input + 1K output | GPT-4o mini | $0.0021 |
| 100K input + 5K output | GPT-5 nano | $0.0070 |
| 100K input + 5K output | GPT-4.1 nano | $0.0120 |
| 100K input + 5K output | GPT-4o mini | $0.0180 |
| 1M input + 1M output | GPT-5 nano | $0.4500 |
| 1M input + 1M output | GPT-4.1 nano | $0.5000 |
| 1M input + 1M output | GPT-4o mini | $0.7500 |
When to consider OpenAI
OpenAI is often considered for broad general-purpose use cases including text generation, coding, structured outputs, and tool-augmented workflows.
Calculate your exact OpenAI API cost
Open the calculator with OpenAI models selected and enter your expected input and output tokens.
Open calculatorFAQ
How is OpenAI API pricing calculated?
Costs are based on input and output tokens multiplied by per-1M pricing for the selected model.
What is the cheapest current OpenAI model?
Use the pricing table and quick facts on this page to identify the cheapest current OpenAI option.
Are output tokens more expensive than input tokens?
Often yes, depending on the model. Check input and output columns for each model.
Which OpenAI model has the largest context window?
See the largest context quick fact and context window column in the table.
How can I reduce OpenAI API costs?
Reduce prompt size, cap output length, and choose the lowest-cost model that meets quality needs.
Hosting your AI app?
After comparing API costs, the next cost factor is where your app runs. DigitalOcean can be a simple option for hosting prototypes, API backends, workers, databases, and Laravel apps.
Explore DigitalOcean →This link is an affiliate link. This means that, at zero cost to you, we earn commissions when you shop through the link.