OpenAI API Monthly Cost Calculator: GPT-4o, mini & o3
Estimate your monthly OpenAI API bill instantly. Enter model, tokens per request, and daily volume — see cost per day, Batch API 50% savings, and side-by-side comparison with Claude and Gemini.
See step-by-step calculation
When to use this calculator
- Estimating monthly API budget before launching an AI-powered product
- Comparing cost impact of upgrading from GPT-4o-mini to GPT-4o or o3
- Calculating Batch API savings for offline or asynchronous workloads
- Projecting costs as daily request volume scales up over time
- Benchmarking OpenAI pricing against Claude Sonnet and Gemini 2.5 Pro
- Planning infrastructure spend for a SaaS product with embedded AI features
OpenAI API & Competitor Pricing — June 2026 ($/1M tokens)
| Provider & Model | Input ($/1M tokens) | Output ($/1M tokens) | Batch API (50% off input) | Batch API (50% off output) |
|---|---|---|---|---|
| OpenAI GPT-4o | $2.50 | $10.00 | $1.25 | $5.00 |
| OpenAI GPT-4o mini | $0.15 | $0.60 | $0.075 | $0.30 |
| OpenAI o3 | $2.00 | $8.00 | $1.00 | $4.00 |
| Anthropic Claude Sonnet | $3.00 | $15.00 | — | — |
| Google Gemini 2.5 Pro (≤200K ctx) | $1.25 | $10.00 | — | — |
Fuente: OpenAI, Anthropic, Google DeepMind (2026). Batch API discount (50%) applies only to OpenAI models for asynchronous requests. Competitor models do not offer Batch API pricing via this calculator.
How it works
OpenAI API Pricing in 2026
OpenAI charges per token — roughly 4 characters per token in English. Pricing varies by model and is billed separately for input (your prompt + context) and output (the model's completion). The Batch API cuts all rates by 50% for non-urgent, asynchronous requests.
Pricing Table (June 2026)
| Model | Input ($/1M tokens) | Output ($/1M tokens) | Best for |
|---|---|---|---|
| GPT-4o | $2.50 | $10.00 | General tasks, vision, function calling |
| GPT-4o mini | $0.15 | $0.60 | High-volume, cost-sensitive workloads |
| o3 | $2.00 | $8.00 | Complex reasoning, coding, math |
Cost Formula
daily_input_cost = (input_tokens × requests_per_day / 1,000,000) × input_price
daily_output_cost = (output_tokens × requests_per_day / 1,000,000) × output_price
cost_per_day = (daily_input_cost + daily_output_cost) × discount_factor
cost_per_month = cost_per_day × 30.44discount_factor = 0.50 with Batch API, 1.0 otherwise. One month = 30.44 days (Gregorian average).
Worked Example
Model: GPT-4o, 500 input + 500 output tokens, 1,000 requests/day, no Batch API:
daily_input = (500 × 1,000 / 1,000,000) × $2.50 = $1.25
daily_output = (500 × 1,000 / 1,000,000) × $10.00 = $5.00
cost_per_day = $1.25 + $5.00 = $6.25
cost_per_month = $6.25 × 30.44 ≈ $190.25With Batch API enabled: $3.125/day → $95.13/month.
Common Workloads: Cost Reference
| Workload | Tokens (in/out) | Req/day | GPT-4o/mo | GPT-4o-mini/mo |
|---|---|---|---|---|
| Simple classifier | 200 / 50 | 5,000 | ~$152 | ~$9 |
| Chatbot turn | 500 / 300 | 2,000 | ~$259 | ~$16 |
| RAG answer | 2,000 / 500 | 500 | ~$152 | ~$9 |
| Long-form summary | 4,000 / 800 | 100 | ~$55 | ~$3 |
| Code review | 1,500 / 1,000 | 200 | ~$84 | ~$5 |
Competitor Comparison (same workload, June 2026)
| Provider & Model | Input ($/1M) | Output ($/1M) |
|---|---|---|
| OpenAI GPT-4o | $2.50 | $10.00 |
| OpenAI GPT-4o mini | $0.15 | $0.60 |
| OpenAI o3 | $2.00 | $8.00 |
| Anthropic Claude Sonnet | $3.00 | $15.00 |
| Google Gemini 2.5 Pro (≤200K) | $1.25 | $10.00 |
Limitations
Frequently asked questions
What does GPT-4o actually cost per request?
How does the OpenAI Batch API work and when should I use it?
How is o3 priced compared to GPT-4o in 2026?
What is a token and how do I estimate how many I use?
Does this calculator include image, audio, or embedding costs?
How accurate is the monthly estimate?
Is GPT-4o-mini good enough to replace GPT-4o for most apps?
Does OpenAI offer Prompt Caching and how does it affect cost?
How does OpenAI pricing compare to Claude and Gemini in 2026?
What if my prompt changes every request (no caching opportunity)?
Sources & references
- OpenAI API Pricing — OpenAI (2026)
- OpenAI Batch API Documentation — OpenAI (2026)
- Anthropic Claude API Pricing — Anthropic (2026)
- Google Gemini API Pricing — Google DeepMind (2026)
- OpenAI Tokenizer (tiktoken) — OpenAI (2026)
Methodology & trust
Calculadora de tecnología revisada por el equipo editorial de Hacé Cuentas, contrastada con OpenAI API Pricing, según nuestra política editorial y metodología.
Última revisión: June 20, 2026. Los parámetros se verifican periódicamente con las fuentes citadas.
Calculations run 100% in your browser. We do not store or transmit your data.
Indicative results. For critical decisions, consult a professional.
Rodríguez, M. (2026). OpenAI API Monthly Cost Calculator: GPT-4o, mini & o3. Hacé Cuentas. https://hacecuentas.com/openai-api-monthly-cost-estimator
Contenido bajo licencia CC-BY 4.0 — reutilizable citando la fuente con enlace a Hacé Cuentas.