OpenAI API Pricing 2025
The most widely-used LLM API. GPT-4.1 is the recommended production model (replaced GPT-4o) with a 1M token context window. GPT-5 is the new flagship.
Get OpenAI API access →OpenAI Model Pricing
Prices in USD per 1M tokens
| Model | Input / 1M | Output / 1M | Context |
|---|---|---|---|
GPT-4.1 Nano Cheapest capable OpenAI model; classification & routing | $0.1 | $0.4 | 1,000,000 |
GPT-5 Mini Budget path to GPT-5 architecture | $0.25 | $2 | 128,000 |
GPT-4.1 Mini Best mid-tier; 1M context window | $0.4 | $1.6 | 1,000,000 |
o4-mini Best-value reasoning model; chain-of-thought built in | $1.1 | $4.4 | 200,000 |
GPT-5 Most capable OpenAI model; 90% prompt-cache discount | $1.25 | $10 | 128,000 |
GPT-4.1 Recommended production model (replaced GPT-4o); 1M context | $2 | $8 | 1,000,000 |
o3 Flagship reasoning; use when o4-mini accuracy is insufficient | $2 | $8 | 200,000 |
Estimated Monthly Cost (70% input / 30% output split)
| Model | 1M tokens/mo | 10M tokens/mo | 100M tokens/mo | 1B tokens/mo |
|---|---|---|---|---|
| GPT-4.1 Nano | $0.190 | $1.90 | $19.00 | $190 |
| GPT-5 Mini | $0.775 | $7.75 | $77.50 | $775 |
| GPT-4.1 Mini | $0.760 | $7.60 | $76.00 | $760 |
| o4-mini | $2.09 | $20.90 | $209 | $2,090 |
| GPT-5 | $3.88 | $38.75 | $388 | $3,875 |
| GPT-4.1 | $3.80 | $38.00 | $380 | $3,800 |
| o3 | $3.80 | $38.00 | $380 | $3,800 |
Frequently Asked Questions
How much does OpenAI LLM API cost?
OpenAI offers 7 models ranging from $0.100/1M to $2.00/1M input tokens. The most widely-used LLM API. GPT-4.1 is the recommended production model (replaced GPT-4o) with a 1M token context window. GPT-5 is the new flagship.
Is OpenAI cheaper than self-hosting?
For low-volume workloads (under 100M tokens/month), cloud APIs like OpenAI are almost always cheaper than purchasing and maintaining GPU hardware. Use our calculator to find the exact break-even point for your usage.