OpenAI API Pricing 2026: Per-Token Costs for GPT-4o, o1, and Mini

About 9; min

ChatGPT costs $20/month. The OpenAI API costs $2.50 per million input tokens. Sounds cheap until you process 10 million tokens and get a $25 bill for a single day. We decoded OpenAI’s per-token pricing, calculated real costs for common use cases, and compared every model so you know exactly what you’ll pay before your first API call.

All pricing verified March 2026 from openai.com.

OpenAI API Model Pricing

Model Input (per 1M tokens) Output (per 1M tokens) Best for
GPT-4o mini $0.15 $0.60 Cheapest, simple tasks
GPT-4o $2.50 $10.00 Balanced quality + cost
GPT-4 Turbo $10.00 $30.00 Legacy, complex tasks
o1 $15.00 $60.00 Reasoning, math, science
o1-mini $3.00 $12.00 Reasoning (budget)

1 million tokens ≈ 750,000 words. A typical API call (500 input + 400 output tokens) on GPT-4o costs about $0.005 — half a cent.

Real-World Cost Calculations

Use case Model Daily volume Monthly cost
Customer support chatbot GPT-4o mini 1,000 conversations ~$27/mo
Content generation (blog posts) GPT-4o 10 articles/day ~$75/mo
Code review assistant GPT-4o 500 reviews/day ~$200/mo
Document summarization GPT-4o mini 100 docs/day ~$15/mo
Complex reasoning tasks o1-mini 100 queries/day ~$150/mo
Customer support chatbot: real monthly cost
$27/month for 1,000 daily conversations
Average conversation: 500 input + 300 output tokens
GPT-4o mini: (500 × $0.15 + 300 × $0.60) / 1,000,000 × 1,000 × 30
= $0.000255 per conversation × 30,000/month = ~$27/month
vs. one human agent: $3,000-5,000/month. AI handles 70% of questions.

Cost-Saving Features

  • Batch API (50% off) — submit requests asynchronously, get results within 24 hours. Perfect for non-urgent tasks like content generation and data processing. Half the cost of real-time.
  • Prompt caching (90% off input) — cache repeated system prompts. If every API call starts with the same 2,000-token system prompt, cached calls cost 90% less on input tokens.
  • GPT-4o mini for simple tasks — at $0.15/1M input tokens, mini is 17x cheaper than GPT-4o. For classification, extraction, and simple Q&A, mini’s quality is sufficient.

OpenAI vs Competitors

Provider Equivalent model Input/1M Output/1M
OpenAI GPT-4o $2.50 $10.00
Anthropic Claude Sonnet Similar to GPT-4o $3.00 $15.00
Google Gemini 2.5 Pro Similar to GPT-4o $1.25 $10.00
OpenAI GPT-4o mini $0.15 $0.60
Anthropic Claude Haiku Similar to mini $1.00 $5.00
Google Gemini Flash-Lite Similar to mini $0.10 $0.40

OpenAI’s GPT-4o mini ($0.15 input) is the cheapest OpenAI option. But Google’s Gemini Flash-Lite ($0.10) is even cheaper. For premium models, Google Gemini 2.5 Pro ($1.25 input) undercuts both OpenAI ($2.50) and Anthropic ($3.00) on input.

API vs ChatGPT Plus: Which Is Cheaper?

Usage level API cost (GPT-4o) ChatGPT Plus Winner
Light (50 queries/day) ~$8/mo $20/mo API
Moderate (200 queries/day) ~$30/mo $20/mo ChatGPT Plus
Heavy (1,000 queries/day) ~$150/mo $20/mo ChatGPT Plus

For personal use, ChatGPT Plus at $20/mo is almost always cheaper than the API. The API makes sense for: building products, automating workflows, and processing data at scale where ChatGPT’s interface doesn’t work.

Who Should Pick What

Our Verdict

Building an AI product: OpenAI API with GPT-4o mini for simple features, GPT-4o for complex ones. Use Batch API for non-urgent processing to cut costs 50%.

Customer support bot: GPT-4o mini. ~$27/month for 1,000 daily conversations. 17x cheaper than GPT-4o with sufficient quality for FAQ-style support.

Personal AI use: ChatGPT Plus ($20/mo). Cheaper than API for individual use. Don’t build API integrations for personal queries.

Cheapest possible API: Google Gemini Flash-Lite ($0.10/1M input). Even cheaper than GPT-4o mini. Good enough for classification and extraction tasks.

Complex reasoning: o1-mini ($3/$12). Cheaper than full o1 ($15/$60) with strong reasoning for math, code analysis, and scientific tasks.

Frequently Asked Questions

What is a token?

~4 characters or ~0.75 words. “Hello world” is 2 tokens. A 1,000-word blog post is ~1,333 tokens. API pricing is based on total tokens processed (input + output).

Is the API hard to set up?

Basic setup takes 10 minutes with Python or JavaScript. OpenAI’s documentation is excellent. A simple chatbot can be built in 50 lines of code.

All pricing verified March 2026 from openai.com/api/pricing.