Back to blog
Guide
January 27, 20268 min read

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)

ModelInput (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.

Cost Saving Tip
GPT-5-nano is 35x cheaper than GPT-5.2 for input. Perfect for classification, extraction, and basic Q&A where you don't need maximum intelligence.

GPT-4.1 Series

ModelInput (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

ModelInput (per 1M tokens)Output (per 1M tokens)
GPT-4o$2.50$10.00
GPT-4o-mini$0.15$0.60

Reasoning Models (o-Series)

ModelInput (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.

Watch Out for Hidden Costs
Reasoning models generate internal "thinking" tokens that you pay for but don't see in the output. A simple query can use 10x more tokens than expected.

Legacy Models

ModelInput (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

$5.50/day
Using GPT-4o
$0.33/day
Using GPT-4o-mini

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

$7.50/day
Using GPT-4o
$0.45/day
Using GPT-4o-mini

Code Generation

Average request: 800 input tokens, 1,200 output tokens
Daily volume: 200 requests

$2.80/day
Using GPT-4o
$0.17/day
Using GPT-4o-mini

How to Reduce OpenAI API Costs

  1. Use GPT-4o-mini for simple tasks — Classification, extraction, and basic Q&A work well with the smaller model
  2. Optimize prompts — Shorter prompts = fewer tokens = lower costs
  3. Cache responses — Don't pay twice for the same query
  4. Set spending limits — OpenAI's dashboard lets you set monthly caps
  5. 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
Start tracking OpenAI costs