OpenAI API Pricing (2026): GPT-5.6, GPT-5.5, GPT-5.4 and the Full Per-Token Table

OpenAI's API prices the GPT-5.6, GPT-5.5, and GPT-5.4 families. The flagship gpt-5.6-sol costs $5.00/1M input, $0.50/1M cached input, $30.00/1M output. The cheapest listed model, gpt-5-nano, runs $0.05/1M input. Batch halves every rate; Fast mode doubles them. Full per-token table, long-context rates, monthly cost scenarios, the ChatGPT Plus breakeven, and how a router cuts spend 40-70%.

June 18, 2026 ยท 2 min read
OpenAI API Pricing (2026): GPT-5.6, GPT-5.5, GPT-5.4 and the Full Per-Token Table

Last updated: August 21, 2026. Every rate on this page was checked against OpenAI's official pricing docs (developers.openai.com) on that date.

Quick answer

The flagship gpt-5.6-sol costs $5.00/1M input, $0.50/1M cached input, and $30.00/1M output. The mid-tier gpt-5.6-terra is $2.00/$12.00 and the budget gpt-5.6-luna is $0.20/$1.20 per million input/output. The cheapest listed model is gpt-5-nano at $0.05/1M input and $0.40/1M output. Batch halves every rate; Fast mode doubles them; long-context requests past 272K tokens bill roughly double.

OpenAI bills the API per token. As of August 21, 2026, the pricing page leads with the GPT-5.6 series: gpt-5.6-sol at $5.00/1M input, $0.50/1M cached input, and $30.00/1M output, gpt-5.6-terra at $2.00/$12.00, and gpt-5.6-luna at $0.20/$1.20. GPT-5.5 and GPT-5.4 remain listed at unchanged rates, and the older GPT-5, GPT-4o, o3, and o1 models are listed with prices again. Morph's router cuts spend 40-70% by routing each call to the cheapest sufficient model.

$5.00/1M
gpt-5.6-sol input tokens
$30.00/1M
gpt-5.6-sol output tokens
$0.05/1M
gpt-5-nano input (cheapest listed)
90%
Cached input discount

The Current OpenAI API Price Table

The table below is the current OpenAI API lineup as listed on the official pricing page, in USD per million tokens at the Standard tier, short-context rate. Input is the cost to send tokens to the model. Cached input is the discounted rate for a repeated prompt prefix. Output is the cost of generated tokens. All figures verified August 21, 2026.

OpenAI API pricing per 1M tokens (Standard tier, verified Aug 21, 2026)
ModelInputCached inputOutput
gpt-5.6-sol (flagship)$5.00$0.50$30.00
gpt-5.6-terra$2.00$0.20$12.00
gpt-5.6-luna$0.20$0.02$1.20
GPT-5.5$5.00$0.50$30.00
GPT-5.5-pro$30.00n/a$180.00
GPT-5.4$2.50$0.25$15.00
GPT-5.4-mini$0.75$0.075$4.50
GPT-5.4-nano$0.20$0.02$1.25
GPT-5.4-pro$30.00n/a$180.00
Reading the table

gpt-5.6-sol and GPT-5.5 share the same $5.00/$30.00 rate; the 5.6 series is the newer lineup OpenAI presents first. gpt-5.6-terra undercuts GPT-5.4 by 20% on both input and output. The two pro variants (GPT-5.5-pro and GPT-5.4-pro) share the same $30.00/$180.00 rate and target extended-reasoning workloads. gpt-5.6-luna and GPT-5.4-nano tie for the current-generation floor at $0.20/1M input.

The spread across the lineup is wide. gpt-5.6-luna output at $1.20/1M versus GPT-5.5-pro output at $180.00/1M is a 150x difference, and the older gpt-5-nano at $0.40/1M output stretches it to 450x. That spread is the entire argument for matching the model to the task instead of defaulting every call to the flagship.

How OpenAI Token Pricing Works

OpenAI charges per token, not per request. A token is roughly 4 characters of English text, so 1,000 tokens is about 750 words. Every API call has an input token count (your prompt plus conversation history plus any tool schemas) and an output token count (the model's response). You pay for both at different rates.

Output costs more than input on every model, usually 5x to 6x. gpt-5.6-sol charges $5.00/1M input and $30.00/1M output, a 6x ratio. GPT-5.4 charges $2.50/1M input and $15.00/1M output, also 6x. This asymmetry means a read-heavy workload (summarizing a large document, answering questions about code) is far cheaper than a generation-heavy workload (writing new files, producing long completions) at the same total token count.

Two more dimensions multiply on top of the base rate: the processing tier (Batch halves rates, Fast mode doubles them) and context length (requests past the 272K-token boundary bill the higher long-context rate). Both are covered below.

Input tokens

Everything you send: the prompt, conversation history, system prompt, tool schemas, and any pasted context. Charged at the input rate ($5.00/1M for gpt-5.6-sol).

Cached input tokens

A repeated prompt prefix charged at roughly 10% of the input rate ($0.50/1M for gpt-5.6-sol). Applies automatically when the same prefix recurs across calls.

Output tokens

The model's generated response. The most expensive component at 5-6x the input rate ($30.00/1M for gpt-5.6-sol). Trim output to control spend.

Processing Tiers: Batch, Flex, and Fast Mode

Every per-token rate above is the Standard tier. OpenAI sells the same models at three other service tiers that multiply the rate: Batch and Flex at half price, Fast mode at double.

Tier multipliers on the Standard rate
TierMultipliergpt-5.6-sol input/outputFits
Batch0.5x$2.50 / $15.00Async jobs, evals, backfills
Flex0.5x (most models)matches BatchLatency-tolerant online traffic
Standard1x$5.00 / $30.00Default interactive traffic
Fast mode2x$10.00 / $60.00Latency-critical paths

Batch runs requests asynchronously and returns results later, at a flat 50% discount on input and output. Flex matches Batch pricing for most models while staying on the synchronous API. Fast mode is the low-latency tier at 2x Standard; it was renamed from Priority processing on July 30, 2026, and the API accepts both service_tier: "priority" and service_tier: "fast". The spread between Batch and Fast mode on the same model is 4x, so classifying which traffic actually needs low latency is itself a cost lever.

Long-Context Pricing

The flagship rows carry two rates: a short-context rate and a higher long-context rate, with the boundary marked at 272K tokens in OpenAI's table. The long-context rate is roughly double on input and 1.5x on output.

Short-context vs long-context rates (Standard tier, per 1M tokens)
ModelInput (short / long)Cached (short / long)Output (short / long)
gpt-5.6-sol$5.00 / $10.00$0.50 / $1.00$30.00 / $45.00
gpt-5.6-terra$2.00 / $4.00$0.20 / $0.40$12.00 / $18.00
gpt-5.6-luna$0.20 / $0.40$0.02 / $0.04$1.20 / $1.80
GPT-5.5$5.00 / $10.00$0.50 / $1.00$30.00 / $45.00
GPT-5.4$2.50 / $5.00$0.25 / $0.50$15.00 / $22.50

The practical takeaway matches Gemini's 200k tier: keep requests under the boundary where you can. Retrieval, compaction, and summarization that hold a request under 272K tokens avoid a 2x input surcharge on the flagship models.

What Happened to GPT-4o and GPT-5 Pricing

Earlier in 2026, GPT-4o and the original GPT-5 family dropped off OpenAI's main pricing table, and this page said so. That has changed: as of August 21, 2026, OpenAI's pricing docs list them again with their own rates, alongside o3 and o1. If you searched "gpt 4o pricing" or "gpt-5 pricing", these are the current published numbers.

Older models still listed (Standard tier, per 1M tokens)
ModelInputCached inputOutput
gpt-5$1.25$0.125$10.00
gpt-5-mini$0.25$0.025$2.00
gpt-5-nano$0.05$0.005$0.40
gpt-4o$2.50$1.25$10.00
gpt-4o-mini$0.15$0.075$0.60
o3$2.00$0.50$8.00
o1$15.00$7.50$60.00
The sleeper row: gpt-5-nano

gpt-5-nano at $0.05/1M input and $0.40/1M output is the cheapest rate on OpenAI's entire pricing page, 4x cheaper than the current-generation floor (gpt-5.6-luna and GPT-5.4-nano at $0.20/1M input). For high-volume classification and extraction where the older model's quality clears the bar, it is the lowest-cost OpenAI option available.

The equivalence mapping still holds for capability planning: gpt-5.6-sol and GPT-5.5 sit where GPT-5 sat as the flagship, gpt-5.6-terra and GPT-5.4 cover the general-work tier GPT-4o served, and the mini/nano/luna models cover the small-model tier. The difference is that the older models now stay purchasable at lower rates rather than disappearing.

Cached Input Discount

Cached input is the largest discount OpenAI exposes directly in the price table. When the same prompt prefix repeats across calls, OpenAI charges the cached portion at roughly 10% of the normal input rate on the GPT-5.x families. gpt-5.6-sol cached input is $0.50/1M versus $5.00/1M uncached, a 90% reduction on the repeated prefix.

The cache triggers automatically when a request shares a long identical prefix with a recent prior request. The common pattern: a fixed system prompt, a stable tool schema, and a constant document all live at the front of the prompt, and only the user's latest message changes. The stable front is cached; only the variable tail is billed at full input rate.

Cached vs uncached input per 1M tokens
ModelUncached inputCached inputDiscount
gpt-5.6-sol$5.00$0.5090%
gpt-5.6-terra$2.00$0.2090%
GPT-5.5$5.00$0.5090%
GPT-5.4$2.50$0.2590%
GPT-5.4-mini$0.75$0.07590%
GPT-5.4-nano$0.20$0.0290%
gpt-4o (older)$2.50$1.2550%

To capture the discount, structure prompts so the stable content comes first and the variable content comes last. An agent that rebuilds its system prompt on every turn, or interleaves changing context with fixed context, defeats the cache and pays full input rate on everything. Note the generational difference: the 5.x families cache at 90% off, while gpt-4o caches at only 50% off.

Worked Example: A Coding Session

Assume a coding agent session with 100 LLM calls, each consuming 4,000 tokens (3,000 input, 1,000 output on average). The cost depends entirely on which model handles the calls. The table below prices the same workload across the lineup, with no caching applied.

100-call session cost (300K input + 100K output tokens)
ModelInput costOutput costTotal
gpt-5.6-sol$1.50$3.00$4.50
gpt-5.6-terra$0.60$1.20$1.80
GPT-5.4$0.75$1.50$2.25
GPT-5.4-mini$0.225$0.45$0.675
gpt-5.6-luna$0.06$0.12$0.18

The all-flagship session costs $4.50. The all-luna session costs $0.18, a 25x difference. Neither extreme is right for a real workload: luna cannot handle the hard 15% of prompts, and gpt-5.6-sol is wasted on the easy 60%. The cheapest correct answer is to route each call to the model that matches its difficulty.

Routed session: matching model to prompt difficulty
TierModelCallsCost
Easy (60%)gpt-5.6-luna60$0.108
Medium (25%)GPT-5.4-mini25$0.169
Hard (15%)gpt-5.6-sol15$0.675
Routed totalMixed100$0.952

The routed session costs $0.952 versus $4.50 for all-flagship, a 79% reduction, while keeping gpt-5.6-sol on the hard 15% of prompts where quality matters. This is the same arithmetic that makes routing profitable across every provider, applied to OpenAI's current price table.

$4.50
All gpt-5.6-sol, 100 calls
$0.952
Routed, 100 calls
79%
Savings from routing
25x
Flagship vs luna per token

Monthly Cost Scenarios

Per-token rates are abstract until they become a monthly bill. The table prices three usage profiles over a 30-day month, Standard tier, no caching. Light and medium assume 1,000 input + 300 output tokens per request (a short chat or completion). Heavy assumes an agent workload at 3,000 input + 1,000 output tokens per request.

Monthly cost by usage profile (30 days, Standard tier)
Scenariogpt-5.6-terraGPT-5.4GPT-5.4-miniGPT-5.4-nano
Light: 100 req/day (3M in, 0.9M out)$16.80$21.00$6.30$1.73
Medium: 1,000 req/day (30M in, 9M out)$168.00$210.00$63.00$17.25
Heavy: 10,000 req/day (900M in, 300M out)$5,400$6,750$2,025$555

The arithmetic behind the first cell: 3M input tokens at $2.00/1M is $6.00, plus 0.9M output tokens at $12.00/1M is $10.80, totaling $16.80. Every other cell follows the same two multiplications. Caching a stable system prompt cuts the input side by up to 90%, and moving non-interactive volume to Batch halves the whole number.

ChatGPT Plus vs the API

A recurring budgeting question: is ChatGPT Plus at $20/month or pay-per-token API access cheaper? They are different products. Plus covers the ChatGPT app; the API is billed separately per token no matter what you subscribe to. But the comparison still anchors expectations.

At gpt-5.4 rates, a typical interactive request of 1,000 input + 300 output tokens costs $0.007 ($0.0025 input + $0.0045 output). $20 buys roughly 2,850 such requests, about 95 per day for a month. On gpt-5.6-terra the same request costs $0.0056, roughly 3,570 requests. If your usage is occasional, the API is cheaper than a subscription; if you chat heavily every day and want the app experience, Plus wins on price per message. For programmatic access there is no choice to make: only the API serves it.

Calling the API

The OpenAI API is OpenAI-SDK-compatible. You set the model string, send messages, and receive a response with a usage block that reports exact input and output token counts. Use that usage block to verify your cost estimates against real traffic instead of guessing.

OpenAI SDK call with usage accounting

import OpenAI from "openai";

const openai = new OpenAI();

const response = await openai.chat.completions.create({
  model: "gpt-5.6-terra",      // $2.00/1M input, $12.00/1M output
  messages: [
    { role: "system", content: "You are a coding assistant." },
    { role: "user", content: "Rename fetchUsers to loadUsers across the file." },
  ],
});

// The usage block reports exact token counts for cost accounting
const { prompt_tokens, completion_tokens } = response.usage;
const inputCost = (prompt_tokens / 1_000_000) * 2.00;
const outputCost = (completion_tokens / 1_000_000) * 12.00;
console.log("Call cost: $" + (inputCost + outputCost).toFixed(6));

Morph exposes the same OpenAI-compatible surface at https://api.morphllm.com/v1. Point the OpenAI SDK's baseURL at it and your existing code runs unchanged, with the router selecting the cheapest sufficient model behind a single endpoint.

Same SDK, routed through Morph's single endpoint

import OpenAI from "openai";

// Point the OpenAI SDK at Morph's OpenAI-compatible endpoint
const client = new OpenAI({
  apiKey: process.env.MORPH_API_KEY,
  baseURL: "https://api.morphllm.com/v1",
});

const response = await client.chat.completions.create({
  model: "auto",              // router picks the cheapest model that clears the bar
  messages: [
    { role: "user", content: "Add a docstring to the parseConfig function." },
  ],
});
// Easy prompt routes to a small model; hard prompt routes to a frontier model.
// One endpoint, many providers, 40-70% lower spend.

How to Reduce OpenAI API Costs

Four levers move OpenAI API spend, in order of impact. The first three are structural and apply within OpenAI; the fourth works across providers.

1. Route by difficulty

Send the easy 60% of prompts to gpt-5.6-luna at $1.20/1M output instead of gpt-5.6-sol at $30.00/1M, a 25x gap on those calls. Keep the flagship for the hard 15%.

2. Use cached input

Put the stable system prompt and tool schema first so the prefix caches at $0.50/1M instead of $5.00/1M on gpt-5.6-sol, a 90% discount on the repeated portion.

3. Batch what can wait

Evals, backfills, and nightly jobs run at a flat 50% discount on the Batch tier. Trim output tokens too: output costs 5-6x input on every model.

The router lever is the one most teams skip because it sounds like rebuilding their stack. It is not. A router classifies each prompt and returns the cheapest model that clears the quality bar, so the easy work stops hitting the flagship. Morph's router classifies in ~430ms (~$0.001 per classification) and routes across many models through one OpenAI-compatible endpoint at api.morphllm.com, cutting spend 40-70% without touching the rest of your code. See how the LLM router works and the cost calculator.

Same lever, every provider

The routing arithmetic is not OpenAI-specific. The same approach cuts spend on Anthropic and Google traffic, and a single router can span providers. Compare the Anthropic API pricing table to see the parallel structure: a flagship, a mid-tier at half the price, and a cheap small model for the bulk of the work.

Frequently Asked Questions

How much does the OpenAI API cost?

OpenAI bills per token. As of August 21, 2026, the flagship gpt-5.6-sol costs $5.00 per million input tokens, $0.50 per million cached input tokens, and $30.00 per million output tokens. The mid-tier gpt-5.6-terra runs $2.00/1M input and $12.00/1M output, and the budget gpt-5.6-luna runs $0.20/1M input and $1.20/1M output. The cheapest listed rate on the page is gpt-5-nano at $0.05/1M input and $0.40/1M output. Batch processing halves every rate; Fast mode doubles them. Verify current numbers on OpenAI's pricing docs.

How much does the GPT-5.6 API cost?

The GPT-5.6 series has three models. gpt-5.6-sol (flagship): $5.00/1M input, $0.50/1M cached input, $30.00/1M output. gpt-5.6-terra (mid-tier): $2.00/1M input, $0.20/1M cached, $12.00/1M output. gpt-5.6-luna (budget): $0.20/1M input, $0.02/1M cached, $1.20/1M output. Long-context requests bill higher: sol $10.00/$45.00, terra $4.00/$18.00, luna $0.40/$1.80 per million input/output.

What is the difference between GPT-5.5 and GPT-5.4 pricing?

GPT-5.5 costs $5.00/1M input, $0.50/1M cached input, and $30.00/1M output, the same rate as the newer gpt-5.6-sol. GPT-5.4 is the mid-tier at $2.50/1M input, $0.25/1M cached input, and $15.00/1M output, exactly half of GPT-5.5 on both input and output. Long-context requests bill $10.00/$45.00 on GPT-5.5 and $5.00/$22.50 on GPT-5.4. For most non-frontier work, GPT-5.4, gpt-5.6-terra, or the smaller minis deliver the cost-quality tradeoff the flagship does not.

What happened to GPT-4o and GPT-5 pricing?

They are still purchasable. Earlier in 2026 GPT-4o and the original GPT-5 family dropped off the main pricing table, but as of August 21, 2026 OpenAI's pricing docs list them again: gpt-5 at $1.25/1M input and $10.00/1M output, gpt-5-mini at $0.25/$2.00, gpt-5-nano at $0.05/$0.40, gpt-4o at $2.50/$10.00, and gpt-4o-mini at $0.15/$0.60. gpt-5-nano is the cheapest rate on the entire page. o3 ($2.00/$8.00) and o1 ($15.00/$60.00) are also listed.

What is the OpenAI cached input discount?

When the same prompt prefix repeats across API calls (a fixed system prompt, a tool schema, a constant document), OpenAI charges the cached portion at roughly 10% of the normal input rate on the GPT-5.x families. gpt-5.6-sol cached input is $0.50/1M versus $5.00/1M uncached, a 90% discount. GPT-5.4 cached input is $0.25/1M versus $2.50/1M. The older gpt-4o discounts less: $1.25/1M cached versus $2.50/1M, 50%. The cache applies automatically to repeated prefixes; structure prompts so stable content comes first.

What is the OpenAI Batch API discount?

Batch processing runs requests asynchronously at a 50% discount on both input and output. gpt-5.6-sol drops from $5.00/$30.00 to $2.50/$15.00 per million input/output tokens, and gpt-5.4-mini from $0.75/$4.50 to $0.375/$2.25. The Flex tier matches Batch pricing for most models. Batch fits evals, backfills, and any job that tolerates delayed results.

What is Fast mode (priority processing) pricing?

Fast mode is OpenAI's low-latency tier, priced at 2x the Standard rate. gpt-5.6-sol in Fast mode costs $10.00/1M input and $60.00/1M output. Priority processing was renamed Fast mode on July 30, 2026; the API accepts both service_tier: "priority" and service_tier: "fast".

How much do long-context requests cost on the OpenAI API?

The flagship rows carry a second, higher rate for long-context requests, with the boundary marked at 272K tokens in OpenAI's table. gpt-5.6-sol goes from $5.00/1M input and $30.00/1M output to $10.00 and $45.00. gpt-5.6-terra goes from $2.00/$12.00 to $4.00/$18.00. GPT-5.5 matches sol ($10.00/$45.00 long) and GPT-5.4 bills $5.00/$22.50 long. Keeping requests under the boundary avoids the surcharge.

Is ChatGPT Plus or the OpenAI API cheaper?

They are separate products: ChatGPT Plus ($20/month) covers the ChatGPT app, and API usage is always billed separately per token. As a cost comparison, $20 buys roughly 2,850 gpt-5.4 API calls at 1,000 input + 300 output tokens each ($0.007 per call), about 95 calls per day. Below that volume the API costs less than a Plus subscription; above it, Plus is the better deal for interactive chat, but it never substitutes for API access.

How much does the OpenAI API cost per month?

Depends on volume and model. At 100 requests/day (1,000 input + 300 output tokens each), a month costs about $21.00 on gpt-5.4, $6.30 on gpt-5.4-mini, or $1.73 on gpt-5.4-nano. At 1,000 requests/day the same shape costs $210, $63, and $17.25. A heavy agent workload of 10,000 requests/day at 3,000 input + 1,000 output tokens runs $6,750 on gpt-5.4, $2,025 on mini, and $555 on nano per month.

What is the cheapest OpenAI model?

gpt-5-nano is the cheapest model listed on OpenAI's pricing page at $0.05/1M input, $0.005/1M cached input, and $0.40/1M output. In the current generations, gpt-5.6-luna runs $0.20/1M input and $1.20/1M output, and gpt-5.4-nano runs $0.20/1M input and $1.25/1M output.

What is the price difference between GPT-5.4-mini and GPT-5.4-nano?

GPT-5.4-mini costs $0.75/1M input, $0.075/1M cached input, and $4.50/1M output. GPT-5.4-nano costs $0.20/1M input, $0.02/1M cached input, and $1.25/1M output. Nano is roughly 3.7x cheaper on input and 3.6x cheaper on output than mini. Nano fits high-volume classification and simple edits; mini handles light reasoning where nano falls short.

How do I reduce OpenAI API costs?

Four levers, in order of impact. First, route easy prompts to cheaper models: gpt-5.6-luna at $1.20/1M output handles boilerplate that gpt-5.6-sol charges $30.00/1M for, a 25x gap. Second, use cached input for repeated prompt prefixes, a 90% discount on that portion. Third, move async jobs to Batch for a flat 50% discount. Fourth, trim output tokens, which cost 5-6x more than input. A router that auto-routes each call to the cheapest sufficient model captures the first lever without code changes.

Does OpenAI charge the same for input and output tokens?

No. Output tokens cost more than input across every OpenAI model, usually 5x to 6x. gpt-5.6-sol is $5.00/1M input and $30.00/1M output, a 6x ratio. GPT-5.4 is $2.50/1M input and $15.00/1M output. When estimating spend, weight output tokens heavily: a generation-heavy workload costs far more than a read-heavy one at the same total token count.

Sources

Related Resources

Stop Paying Flagship Prices for Easy Prompts

Morph's router classifies each prompt in ~430ms and routes it to the cheapest model that clears the bar, across providers through one OpenAI-compatible endpoint at api.morphllm.com. 40-70% lower API spend, no code rewrite. Point the OpenAI SDK's baseURL at Morph and ship.