OpenAI API Pricing 2026: Complete Guide to GPT-5, GPT-4.1, o3, and o4 Costs
The complete guide to OpenAI API pricing in 2026. Current prices for GPT-5, GPT-5-mini, GPT-4.1, o3, o4-mini, and all OpenAI models with cost examples.
OpenAI's pricing changes frequently, and keeping up with the latest costs for GPT-5, GPT-4.1, o3, o4, and other models can be challenging. Here's everything you need to know about OpenAI API pricing in 2026.
This guide covers current pricing for all OpenAI models, helps you estimate costs for your use case, and shows you how to track spending in production.
OpenAI API Pricing Overview (January 2026)
OpenAI charges per token—small units of text (roughly 4 characters or 0.75 words). Prices differ for input tokens (what you send) and output tokens (what the model generates).
GPT-5 Series (Latest)
| Model | Input (per 1M tokens) | Output (per 1M tokens) |
|---|---|---|
| GPT-5.2 | $1.75 | $14.00 |
| GPT-5.2-pro | $21.00 | $168.00 |
| GPT-5.1 | $1.25 | $10.00 |
| GPT-5 | $1.25 | $10.00 |
| GPT-5-pro | $15.00 | $120.00 |
| GPT-5-mini | $0.25 | $2.00 |
| GPT-5-nano | $0.05 | $0.40 |
GPT-5.2 is OpenAI's latest flagship—even faster and more capable than GPT-5, with improved reasoning and multimodal abilities.
GPT-5-mini and GPT-5-nano offer exceptional value for simpler tasks at a fraction of the cost.
GPT-4.1 Series
| Model | Input (per 1M tokens) | Output (per 1M tokens) |
|---|---|---|
| GPT-4.1 | $2.00 | $8.00 |
| GPT-4.1-mini | $0.40 | $1.60 |
| GPT-4.1-nano | $0.10 | $0.40 |
GPT-4o Series
| Model | Input (per 1M tokens) | Output (per 1M tokens) |
|---|---|---|
| GPT-4o | $2.50 | $10.00 |
| GPT-4o-mini | $0.15 | $0.60 |
Reasoning Models (o-Series)
| Model | Input (per 1M tokens) | Output (per 1M tokens) |
|---|---|---|
| o4-mini | $1.10 | $4.40 |
| o3 | $2.00 | $8.00 |
| o3-pro | $20.00 | $80.00 |
| o3-mini | $1.10 | $4.40 |
| o1 | $15.00 | $60.00 |
| o1-pro | $150.00 | $600.00 |
| o1-mini | $1.10 | $4.40 |
The o-series models are designed for complex reasoning tasks—math, coding, and multi-step problem solving. They're more expensive because they "think" before responding.
Legacy Models
| Model | Input (per 1M tokens) | Output (per 1M tokens) |
|---|---|---|
| GPT-4 Turbo | $10.00 | $30.00 |
| GPT-4 | $30.00 | $60.00 |
| GPT-3.5 Turbo | $0.50 | $1.50 |
These models are still available but mostly superseded. GPT-4o is cheaper and better than GPT-4 Turbo. GPT-4o-mini is cheaper and often better than GPT-3.5 Turbo.
Real Cost Examples
Let's calculate costs for common use cases:
Customer Support Chatbot
Average conversation: 500 input tokens, 300 output tokens
Daily volume: 1,000 conversations
Monthly cost with GPT-4o: $165
Monthly cost with GPT-4o-mini: $10
Document Summarization
Average document: 4,000 input tokens, 500 output tokens
Daily volume: 500 documents
Code Generation
Average request: 800 input tokens, 1,200 output tokens
Daily volume: 200 requests
How to Reduce OpenAI API Costs
- Use GPT-4o-mini for simple tasks — Classification, extraction, and basic Q&A work well with the smaller model
- Optimize prompts — Shorter prompts = fewer tokens = lower costs
- Cache responses — Don't pay twice for the same query
- Set spending limits — OpenAI's dashboard lets you set monthly caps
- Track costs by feature — Know which parts of your app cost the most
Tracking OpenAI Costs in Production
OpenAI's dashboard shows total usage, but not which features drive costs. To optimize effectively, you need per-feature tracking.
import { Orbit } from '@with-orbit/sdk';
import OpenAI from 'openai';
const orbit = new Orbit({ apiKey: process.env.ORBIT_API_KEY });
// Track costs by feature
const chatClient = orbit.wrapOpenAI(new OpenAI(), {
feature: 'customer-chat'
});
const summaryClient = orbit.wrapOpenAI(new OpenAI(), {
feature: 'doc-summary'
});Now you can see exactly how much each feature costs and optimize where it matters.
Track OpenAI Costs with Orbit
Orbit gives you real-time visibility into OpenAI API costs. See spending by feature, model, and environment—all with a one-line SDK integration.
- Real-time cost tracking
- Per-feature cost breakdown
- Free tier: 10,000 events/month
Related Articles
AI API Cost Control: How to Track and Reduce LLM Spend
Learn how to control AI API costs with practical strategies. Monitor spending, set budgets, and reduce LLM costs without sacrificing quality.
AI Observability: What You Need to Know in 2026
Everything about AI observability and LLM monitoring. Learn what metrics to track, how to debug AI systems, and best practices for production.
Track LLM Costs: A Complete Guide for Developers
The definitive guide to tracking LLM costs in your applications. Monitor token usage, track API spending, and optimize your AI budget.