LLM Cost Calculator

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

ModelInput / 1MOutput / 1MContext
GPT-4.1 Nano
Cheapest capable OpenAI model; classification & routing
$0.1$0.41,000,000
GPT-5 Mini
Budget path to GPT-5 architecture
$0.25$2128,000
GPT-4.1 Mini
Best mid-tier; 1M context window
$0.4$1.61,000,000
o4-mini
Best-value reasoning model; chain-of-thought built in
$1.1$4.4200,000
GPT-5
Most capable OpenAI model; 90% prompt-cache discount
$1.25$10128,000
GPT-4.1
Recommended production model (replaced GPT-4o); 1M context
$2$81,000,000
o3
Flagship reasoning; use when o4-mini accuracy is insufficient
$2$8200,000

Estimated Monthly Cost (70% input / 30% output split)

Model1M tokens/mo10M tokens/mo100M tokens/mo1B 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.