Updated June 2026 · Official OpenAI pricing

Free OpenAI API Cost Calculator

Estimate your GPT-4o, o1, GPT-4o mini, and DALL·E 3 costs instantly. Enter your token usage and request volume — get exact monthly and annual costs. No signup, no data sent anywhere.

🔤 OpenAI API Cost Estimator

Select your model, enter token counts and request volume — results update live.

Estimated cost
$0
— per month
Input price / output price
Cost per request
Input token cost
Output token cost
Total tokens / period
Batch API cost (50% off)

2026 OpenAI API Pricing

All prices in USD per million tokens, pay-as-you-go, June 2026.

ModelInput / 1M tokensOutput / 1M tokensContext windowBest for
GPT-4o$2.50$10.00128KGeneral flagship tasks
GPT-4o miniBEST VALUE$0.15$0.60128KHigh-volume, simple tasks
o1$15.00$60.00200KComplex reasoning
o1-mini$3.00$12.00128KSTEM reasoning, cheaper than o1
GPT-4 Turbo$10.00$30.00128KLegacy — migrate to GPT-4o
ℹ Batch API discount

50% off all models via the Batch API — requests processed asynchronously within 24h. Ideal for document processing, content generation, analytics. See the Batch row in the calculator above.

✦ Image pricing (DALL·E 3)

$0.040 / 1024px standard · $0.080 / 1024px HD · $0.120 / 1792px HD. Compare vs Stable Diffusion →

Which OpenAI Model Is Right for You?

Match your use case to the cheapest model that meets your quality bar.

GPT-4o mini

$0.15 / $0.60 per 1M
BEST VALUE

Classification, extraction, chat, summarization, simple Q&A. 16× cheaper than GPT-4o.

GPT-4o

$2.50 / $10.00 per 1M

Complex analysis, code generation, nuanced writing, multimodal tasks.

o1

$15.00 / $60.00 per 1M

Hard math, multi-step reasoning, research. Use sparingly — premium priced.

o1-mini

$3.00 / $12.00 per 1M

STEM reasoning at lower cost than o1. Good for coding and math.

Frequently Asked Questions

How much does the OpenAI API cost? +

GPT-4o: $2.50/M input, $10.00/M output. GPT-4o mini: $0.15/M input, $0.60/M output. o1: $15.00/M input, $60.00/M output. DALL·E 3 standard: $0.040/image. All prices are pay-as-you-go USD (June 2026).

How do I calculate my OpenAI API monthly bill? +

Monthly cost = (avg input tokens × input price/1M + avg output tokens × output price/1M) × monthly requests. The calculator above runs this formula live. Log your actual token usage via the OpenAI usage dashboard to get accurate input values.

Is GPT-4o mini cheaper than GPT-4o? +

Yes — 16× cheaper on both input and output. GPT-4o mini costs $0.15/$0.60 per million tokens vs GPT-4o's $2.50/$10.00. For classification, extraction, chat, and summarization tasks, GPT-4o mini typically delivers comparable quality.

How does the OpenAI Batch API reduce costs? +

The Batch API processes requests asynchronously with up to 24h turnaround at exactly 50% of standard pricing. Same model quality, same API — just not real-time. Any workload that doesn't need immediate response (document processing, content generation, overnight analytics) qualifies.

How can I reduce my OpenAI API costs? +

Top 5 strategies: (1) Use GPT-4o mini for simpler tasks — 16× cheaper. (2) Use Batch API for async workloads — 50% discount. (3) Trim your system prompt — every saved token is billed on every request. (4) Set max_tokens explicitly to prevent runaway output costs. (5) Cache responses for repeated queries. Full 7-strategy guide →

More Cost Calculators

Weekly AI infra cost tips

Pricing changes, optimization strategies, new calculators. No spam.