Back to blog
·Updated ·8 min read·AI Cost Calc Team

OpenAI API Pricing Explained: Complete Guide for 2026

OpenAI API pricing as of late 2026: GPT-6 Astra, GPT-6.1 Sol, GPT-6.1 Terra and GPT-6 Luna, the GPT-5.x models still running, 95% cached input, the new cache-write charge, the over-272K long-context rate and the 50% Batch discount.

openaipricinggpt-6cost-optimization

📊 Prices on this page are live: they're pulled from the site dataset at build time, last verified 2026-11-01.

OpenAI's lineup turned over between May and October 2026. The GPT-6 family arrived in September, the 6.1 updates followed, and o4-mini was retired on 2026-10-23. Pricing changed shape along the way too. On GPT-6.1 models you now pay to write a prompt to the cache, cached reads are 95% off, and prompts over 272K tokens are billed at a higher rate.

This guide covers what each current OpenAI model costs, how to pick a tier, and which billing details actually move the total.

The current OpenAI lineup

GPT-6 generation

Model Input / Output (per 1M) Cached input Batch Context One call*
GPT-6 Astra $10.00/$50.00 $1.00 $5.00/$25.00 922K $0.03500
GPT-6.1 Sol $2.00/$10.00 $0.10 $1.00/$5.00 922K $0.00700
GPT-6 Sol $2.00/$10.00 $0.20 $1.00/$5.00 922K $0.00700
GPT-6.1 Terra $1.00/$5.00 $0.05 $0.50/$2.50 922K $0.00350
GPT-6 Luna $0.10/$0.50 $0.01 $0.05/$0.25 922K $0.00035

*One call = 1,000 input + 500 output tokens at the standard rate.

Here's how OpenAI describes each one:

  • GPT-6 Astra (released 2026-09-03) is "our most capable model", and it's the most expensive GPT-6 model.
  • GPT-6.1 Sol (2026-09-29) is pitched as "near-Astra performance for complex work at a lower cost". It costs the same as GPT-6 Sol for input and output, and its cached input is half of GPT-6 Sol's.
  • GPT-6 Sol (2026-09-22) is the original GPT-6 middle tier. Since 6.1 Sol has the same input/output price and cheaper cached input, it's hard to justify for new work.
  • GPT-6.1 Terra (2026-10-26) costs half as much as 6.1 Sol. OpenAI calls it "a fast, efficient model for visual reasoning, precise computer use, and clear, natural writing". OpenAI doesn't say how it ranks against Sol on general reasoning.
  • GPT-6 Luna (2026-09-22) is OpenAI's "most efficient model for focused, high-volume tasks", and it has the full 922K context window.

GPT-5.x models still available

Model Input / Output (per 1M) Cached input Status
GPT-5.5 Pro $30.00/$180.00 $3.00 Active. The most expensive model we track
GPT-5.5 $5.00/$30.00 $0.50 Active
GPT-5.6 Sol $4.00/$20.00 $0.40 Active, same price as base GPT-5.6
GPT-5.6 Terra $2.00/$12.00 $0.20 Active
GPT-5.6 Luna $0.20/$1.20 $0.02 Active
GPT-5 mini $0.25/$2.00 $0.03 Retires 2026-12-11

Compare each GPT-5.6 tier with the GPT-6 model that replaces it: GPT-5.6 Sol at $4.00/$20.00 against GPT-6.1 Sol at $2.00/$10.00, and GPT-5.6 Luna at $0.20/$1.20 against GPT-6 Luna at $0.10/$0.50. At the time of writing, the older model costs more on both input and output. Unless a GPT-5.x model is pinned in a workflow you can't retest yet, the price argument favours moving.

GPT-5 mini retires on 2026-12-11. The obvious replacement on price is GPT-6 Luna: $0.00035 per call against $0.00125 for GPT-5 mini. Note that GPT-5 mini has no Batch price in our data, while GPT-6 Luna does. Run your own test set before you switch, because a price comparison says nothing about output quality on your task.

o4-mini was retired on 2026-10-23. If you still have it in code or in a cost model, it needs replacing. For reasoning-heavy work, start testing with GPT-6.1 Sol.

How to choose a tier

Work from the bottom up and stop at the first model that passes your evaluation set.

  1. High-volume, narrow tasks such as classification, extraction, routing and short replies: start with GPT-6 Luna. One call costs $0.00035, so it's cheap enough that you can afford a retry on the occasional failure.
  2. Screens, images, documents and writing: try GPT-6.1 Terra, which OpenAI positions for visual reasoning, computer use and natural writing. It costs half as much as Sol. Test it before you swap it in for Sol on general reasoning, since OpenAI hasn't published that comparison.
  3. Complex coding, agents and long multi-step work: use GPT-6.1 Sol. A call costs $0.00700 against $0.03500 for Astra, so you can run Sol for a long time before matching what a move to Astra would cost.
  4. The hardest problems, where a better answer is worth the price: use GPT-6 Astra. Measure the difference on your own tasks, because Astra costs five times as much as 6.1 Sol per token.

The most common way to overspend is to run everything on the top tier. A mixed setup usually costs much less, for example Luna for triage, Sol for the hard cases and Astra only where its results clearly win.

The billing details that move the total

1. Standard input and output

You pay per million tokens at the headline rate. On every GPT-6 model, output costs five times as much as input. On GPT-6.1 Sol that's $10.00 against $2.00. As a result, long answers often cost more than long prompts. Set a max-output limit and ask for concise formats when you don't need prose.

2. Cached input: 95% off on GPT-6.1

If the start of your prompt (system prompt, tool definitions, reference documents) repeats across calls, those repeated tokens can be billed at the cached rate:

  • GPT-6.1 Sol: $0.10 per 1M against $2.00, which is 95% off.
  • GPT-6.1 Terra: $0.05 against $1.00, also 95% off.
  • GPT-6 Astra, GPT-6 Sol and GPT-6 Luna: $1.00, $0.20 and $0.01. That's 90% off their input prices.

Caching only helps when the prefix is identical from call to call. Put stable content first and anything that changes per request (user message, timestamps, IDs) last. The prompt caching guide covers the details.

3. Cache writes: new on GPT-6.1

OpenAI now charges to write a prompt prefix into the cache on GPT-6.1 models, with 30-minute and 12-hour retention options. For 30-minute retention on GPT-6.1 Sol, a write costs $2.50 per 1M tokens, more than the normal input price of $2.00. On Terra it's $1.25 against $1.00.

This means caching is no longer free. A prefix written once and never read again costs more than not caching it at all. The upside is that a single cache read on 6.1 Sol or Terra saves nearly four times the write premium. In practice, caching pays as soon as a prefix is read again within its retention window. The caching guide works through the arithmetic.

4. Prompts over 272K tokens

GPT-6.1 Sol and Terra accept 922K tokens of input, but the standard rate doesn't cover all of it. OpenAI bills prompts over 272K tokens at a higher long-context rate:

  • GPT-6.1 Sol: $4.00 input / $15.00 output per 1M (OpenAI's long-context rate)
  • GPT-6.1 Terra: $2.00 input / $7.50 output per 1M (OpenAI's long-context rate)

That's twice the standard input price and 1.5 times the standard output price. Our calculator applies the standard rate only, so for prompts over 272K it will understate the bill. If you regularly send whole codebases or long document sets, it's often cheaper to retrieve the relevant pieces and stay under 272K.

5. Batch API: half price

Requests sent through the Batch API run asynchronously and cost half the standard rate. On GPT-6.1 Sol that's $1.00/$5.00 instead of $2.00/$10.00, and on Terra it's $0.50/$2.50.

Batch suits work where nobody is waiting for the answer: overnight content generation, weekly ticket categorisation, backfills and evaluation runs. It's the wrong choice for anything interactive or streamed.

A worked example: support chatbot on GPT-6.1 Terra

  • Volume: 10,000 conversations a day, 5 messages each, for 50,000 calls a day
  • Input per call: 1,500 tokens, of which 1,200 are an identical system prompt and 300 are the user turn
  • Output per call: 200 tokens

Without caching, the daily volume is 75M input tokens × $1.00 plus 10M output tokens × $5.00 (both per 1M). Because output costs five times as much as input on Terra, input is 75 of the 125 price units here, or 60% of the bill. Open this workload in the calculator: /?model=gpt-6-1-terra&in=1500&out=200.

With caching, 80% of each prompt is the shared system prompt, and at 95% off that removes 0.80 × 0.95 = 76% of the input bill. Applied to input's 60% share, the total falls by about 46%. The cache-write charge barely registers here: at this volume, the same 1,200-token prefix is requested hundreds of times within each 30-minute retention window. See it in the calculator: /?model=gpt-6-1-terra&in=1500&out=200&cache=80.

With Batch for the nightly part: anything that doesn't need an immediate answer, such as end-of-day conversation summaries, can go through Batch at half price.

On GPT-6 Luna instead, the same workload costs a fraction of the Terra figure (compare $0.00035 with $0.00350 per standard call). Whether that's acceptable depends on whether Luna's replies pass your quality bar.

Optimisation checklist

  1. Pick the cheapest tier that passes your eval. Re-check when OpenAI ships a new model, since the GPT-6 tiers undercut their GPT-5.6 equivalents.
  2. Keep a stable prefix so the 95% cached rate applies. Don't let one-off prompts pay the write premium for nothing.
  3. Stay under 272K tokens on GPT-6.1 unless the extra context earns its long-context rate.
  4. Batch anything that can wait, at 50% off.
  5. Cap output. At five times the input price, output tokens are the expensive ones.
  6. Get off retiring models early: GPT-5 mini retires on 2026-12-11.

Cheaper non-OpenAI options

For simple high-volume tasks, compare GPT-6 Luna with Claude Haiku 5.5 ($0.10/$0.50) and DeepSeek V4-Flash ($0.30/$1.20). Haiku 5.5's listed price applies to prompts up to 100K tokens. Above that, Anthropic charges five times as much per token. The cheapest AI APIs list ranks the whole field by cost per call.

Bottom line

OpenAI's late-2026 pricing rewards three habits. Use the cheapest tier that works, keep a stable prompt prefix so cached reads apply, and batch anything that isn't interactive. Cache writes and the 272K long-context rate are the two new ways to overspend, and both are easy to avoid once you know about them.

To model your own workload, use the calculator. It has a caching slider and a Batch toggle, and every price change we record is listed in the change log.


Prices on this page come from the site dataset, which is checked daily against the LiteLLM registry. The over-272K long-context rates are quoted from OpenAI and aren't in our dataset. Always confirm on OpenAI's pricing page before committing budget.

Try the calculator

Plug in your workload and see exactly what the numbers in this article mean for your bill.

Open calculator