LLM API Guide

OpenAI API Pricing (2026): GPT-6 Astra, Sol, Luna

Complete 2026 OpenAI API pricing as of 2026-10-29 for GPT-6 Astra, GPT-6.1 Sol, Terra, and Luna, including the 272K context surcharge, cache invalidation triggers.

An isometric API metering machine routes token flows through three gauges into coin bins representing different usage costs.
Illustration, AI-generated

Summary

  1. Standard API rates per 1M tokens as of 2026-10-29: GPT-6 Astra ($10/$50), GPT-6.1 Sol ($2/$10, $0.10 cached), GPT-6.1 Terra ($1/$5), GPT-6 Luna ($0.10/$0.50).
  2. As of 2026-10-29, crossing 272,000 input tokens doubles input and cache rates (2x) and raises output rates by 1.5x across the entire request.
  3. Astra's 30-minute cache TTL, mid-session reasoning effort changes, and CLI forks cause cache misses that spike real API bills by 10x on long threads.
  4. As of 2026-10-29, ChatGPT Plus, Pro, and Team quotas use hidden model multipliers and smaller dollar windows.

If you only look at the headline table on the official OpenAI API pricing page, the GPT-6 lineup looks straightforward—and across the mid-tier and lightweight models, 50% cheaper than the GPT-5.6 generation. In practice, the rate card hides three billing mechanics that determine what you actually pay: a steep price jump once your prompt crosses 272,000 tokens, aggressive cache invalidation rules on gpt-6-astra, and a completely separate set of hidden multipliers if you use these models through a ChatGPT Plus, Pro, or Team subscription in Codex.

Here is the complete breakdown of what each GPT-6 model costs per 1 million tokens right now, followed by where the unexpected charges come from and how I configure my requests to avoid them. If you also want to see how other providers' rates compare, the latest per-token rates from other vendors are laid out in a newer guide.

On this page

Complete GPT-6 API Rate Card (Per 1M Tokens)

OpenAI now splits the flagship family into four tiers. If you started building in late September, note two recent changes: GPT-6.1 Sol (gpt-6.1-sol) replaced the original gpt-6-sol on September 29 at the same $2.00/$10.00 base price while cutting cached input reads in half from $0.20 to $0.10, and gpt-6.1-terra joined the lineup on October 26 right between Sol and Luna for vision and writing workflows. You should not use the older gpt-6-sol ID on new projects. For how to call Terra on the Responses and Chat Completions APIs, see calling Terra and other new models.

Standard Tier Pricing (Inputs Up to 272K Tokens)

Model Model ID Input Output (incl. Reasoning) Cached Input (Read) Cache Write (30m TTL) Cache Write (12h TTL)
GPT-6 Astra gpt-6-astra $10.00 $50.00 $1.00 $12.50 $25.00
GPT-6.1 Sol gpt-6.1-sol $2.00 $10.00 $0.10 $2.50 $5.00
GPT-6 Sol (Legacy) gpt-6-sol $2.00 $10.00 $0.20 $2.50 $5.00
GPT-6.1 Terra gpt-6.1-terra $1.00 $5.00 $0.05 $1.25 $2.50
GPT-6 Luna gpt-6-luna $0.10 $0.50 $0.01 $0.125 $0.25

All four current models (gpt-6-astra, gpt-6.1-sol, gpt-6.1-terra, and gpt-6-luna) share a 1,050,000-token context window, a 922,000-token maximum input per request, and a 128,000-token maximum output limit. Their knowledge cutoff dates are 2026-04-30 for gpt-6-astra and gpt-6.1-sol, 2026-06-01 for gpt-6.1-terra, and 2026-05-18 for gpt-6-luna, and all four models are live on AWS Bedrock and Azure OpenAI in addition to the direct OpenAI API. Internal reasoning tokens generated at low, medium, high, xhigh, or max effort are billed at the model's full Output rate.

Batch, Flex, Fast, and Ultrafast Multipliers

Beyond Standard mode, you can route requests through four speed and priority tiers by passing the service_tier parameter (or using the Batch API). Batch and Flex cut all token rates (input, output, cached reads, and cache writes) by 50%. Fast mode (renamed from Priority processing) doubles the Standard price (2x). Ultrafast mode multiplies the Standard price by 6x and is only available on Astra and 6.1 Sol.

Model ID Tier / Mode Input Output Cached Input 30m Write 12h Write
gpt-6-astra Batch / Flex (0.5x) $5.00 $25.00 $0.50 $6.25 $12.50
gpt-6.1-sol Batch / Flex (0.5x) $1.00 $5.00 $0.05 $1.25 $2.50
gpt-6.1-terra Batch / Flex (0.5x) $0.50 $2.50 $0.025 $0.625 $1.25
gpt-6-luna Batch / Flex (0.5x) $0.05 $0.25 $0.005 $0.0625 $0.125
gpt-6-astra Fast (2x) $20.00 $100.00 $2.00 $25.00 $50.00
gpt-6.1-sol Fast (2x) $4.00 $20.00 $0.20 $5.00 $10.00
gpt-6.1-terra Fast (2x) $2.00 $10.00 $0.10 $2.50 $5.00
gpt-6-luna Fast (2x) $0.20 $1.00 $0.02 $0.25 $0.50
gpt-6-astra Ultrafast (6x) $60.00 $300.00 $6.00 $75.00 $150.00
gpt-6.1-sol Ultrafast (6x) $12.00 $60.00 $0.60 $15.00 $30.00

If you use Regional processing (data residency) endpoints or FedRAMP endpoints, OpenAI adds a flat 10% uplift on top of these rates. Built-in tools on the Responses API are billed separately alongside your token usage: Web search costs $10.00 per 1,000 calls (plus search content tokens billed at your chosen model's input rate), File search costs $0.10/GB per day after 1 GB free plus $2.50 per 1,000 tool calls, and Hosted Shell or Code Interpreter containers run from $0.03 (1 GB) to $1.92 (64 GB) per 20-minute session with a 5-minute billing minimum. For a broader look at how these cache write and long-context rules compare against Anthropic's rates, see my breakdown of Claude Sonnet 5.5 vs. GPT-6.1 Sol. For Anthropic's newest rates and the errors that come with upgrading, see the guide to Fable 5.2 rates and model ID upgrade failures.

The 272K Token Cliff and the Astra Cache Invalidation Chain Reaction

The most common billing shock on the GPT-6 API happens when you rely on the 1.05M context window for repository-level coding or long-horizon agent runs.

The Standard rates in the table above only apply when your single-request input is 272,000 tokens or fewer. As soon as your input crosses 272,000 tokens, OpenAI bills the entire request—not just the tokens above 272K—at long-context rates: input, cached input reads, and cache writes all double (2x), and output tokens increase by 1.5x as of 2026-10-29.

On gpt-6-astra, crossing 272K pushes uncached input from $10.00 to $20.00 per 1M tokens, cached input from $1.00 to $2.00, 30-minute cache writes from $12.50 to $25.00, and output from $50.00 to $75.00 as of 2026-10-29. If you also have Fast mode enabled (service_tier: "priority" or "fast"), those multipliers stack: 1M cached input tokens over 272K on Astra Fast cost $4.00 instead of $1.00. Many open-source CLI usage trackers still drop the *_above_272k_tokens pricing fields when parsing model registries or default Astra's Fast multiplier to 1.0x, which means your local terminal estimator will show half or a quarter of what OpenAI actually charges your card.

Even below 272K, cache misses on gpt-6-astra will wreck your budget faster than the base token price. In a typical multi-turn coding session, cached reads account for 95% or more of total token volume—it is normal to process 6.5 billion cached read tokens against just 150 million uncached input tokens over a month. On a 200,000-token conversation history with Astra, a cached turn costs $0.20 in input reads as of 2026-10-29. A single cache miss on that same turn costs $2.00 in uncached input—or $2.50 if written to a 30-minute cache—a 10x to 12.5x jump for one prompt.

When I run gpt-6-astra in Codex or through custom agent loops, three things trigger those cache misses:

  1. The 30-minute cache TTL on Astra: Older Sol configurations in Codex retained prompt caches for up to 24 hours. On gpt-6-astra, standard cache retention drops to 30 minutes from the last write or cache hit. If you pause a debugging session for 35 minutes and send a one-line follow-up, the entire 200K+ history is billed as fresh uncached input. Meanwhile, if an idle agent runs background polling every 30 seconds, it keeps the cache warm at $1.00/1M (as of 2026-10-29) per poll, easily burning through 7 million cached input tokens before you even type a command.
  2. Changing reasoning_effort mid-conversation: OpenAI's documentation states that you can adjust reasoning effort mid-thread without breaking the prompt cache. However, that only works if the client sends a configuration_update item in the Responses API payload. If your client—including unpatched versions of the Codex CLI and desktop app—simply changes the request-level reasoning.effort field from xhigh to medium, the prefix hash breaks. In my logs, changing reasoning effort three times in a live Astra session dropped the cache hit rate from 99% down to 12.05%, 0%, and 12.06% on the immediately following turns. Worse, if you switch to a reasoning effort level you haven't used yet in that conversation, the entire context is billed as uncached input; switching back only hits the context cached at the moment you last used that earlier level.
  3. Forking threads and spawning sub-agents: Running /side in the Codex CLI, forking a conversation in the desktop app, calling codex exec fork, or spawning sub-agents configured with fork_turns="all" fails to reuse the parent thread's cached prefix, forcing a full uncached read on the branched context.

Why API Price Cuts Did Not Double ChatGPT Plus, Pro, and Team Quotas

When OpenAI cut gpt-6-sol and gpt-6-luna API prices by 50% compared to GPT-5.6 promotional pricing, it seemed logical that a ChatGPT Plus ($20), Pro ($200/$500), or Team subscription (as of 2026-10-29) would let you run twice as many tokens in Codex before hitting the 5-hour or 7-day rate limit.

In reality, subscription quotas tightened when GPT-6 launched. Subscription usage bars (used_percent on the internal /backend-api/wham/usage endpoint) do not divide your raw token spend by a fixed API dollar allowance. Instead, OpenAI shrunk the API-dollar equivalent of the quota windows and applied per-model hidden multipliers as of 2026-10-29.

When I reconcile Codex session token logs and internal workspace credits (where 25 credits equal $1.00 of internal quota value as of 2026-10-29) against official API list prices as of 2026-10-29, the gap between the API rate card and subscription quotas is stark:

Subscription Tier & Window Model Used Exclusively Measured API-Dollar Equivalent (as of 2026-10-29) Quota / Multiplier Behavior
Pro 20x (Weekly Window) GPT-5.6 Sol (Prior baseline) ~$2,160 – $2,500+ (~$22–$25 per 1%) ~54,000 internal credits per weekly cycle
Pro 20x (Weekly Window) gpt-6-astra ~$1,140 – $1,500 (~$12–$15 per 1%) ~28,500 internal credits; effective API value cut roughly in half
Plus (5-Hour Window) GPT-5.6 Sol (Prior baseline) ~$14.40 (promo) / ~$18.00 (list) Baseline 5-hour allowance before GPT-6 rollout
Plus (5-Hour Window) gpt-6-astra or gpt-6-sol ~$11.00 ~23.5% less API dollar value per subscription dollar vs. 5.6
Plus (5-Hour Window) gpt-6.1-sol ~$7.50 Tighter 5-hour cap than initial gpt-6-sol
Plus (5-Hour Window) gpt-6-luna ~$6.50 – $7.50 Lower dollar cap prevents infinite high-volume loops
Team 1x (5h / 7d Window) gpt-6-astra $10.00 (5h) / $64.00 (7d) Baseline 1.0x reference (7d = 6.40 × 5h)
Team 1x (5h / 7d Window) gpt-6.1-terra ~$5.25 effective (5h) Carries a ~1.9x hidden multiplier; only ~30% cheaper than 6.1 Sol in quota

There are two other quirks when comparing subscription quotas to API bills. First, enabling Fast mode inside a subscription deducts quota at 2.5x the standard rate, whereas the API charges 2.0x (as of 2026-10-29). Second, the 272K long-context surcharge is calculated differently depending on which meter you look at. If you route subscription traffic through a local proxy tracker like sub2api that calculates dollar spend from official API pricing rules, crossing 272K doubles the displayed input cost and makes a $10 five-hour window read as $20+ on Astra. However, inside OpenAI's own subscription used_percent counter, gpt-6-astra is exempt from the >272K long-context multiplier in Codex (where default context is set to 244,800 tokens), and most GPT-6 models do not add a long-context quota penalty (gpt-5.6-luna is the exception, forcing uncached input billing on every turn over 272K). Even so, manually raising model_context_window = 350000 on Sol in your config still drains your subscription faster because larger windows lose prefix caching across compactions and session restarts.

One quick note if you are comparing third-party API resellers against subscriptions: watch out for proxy sites advertising "0.2x multipliers" on gpt-6-astra. A legitimate 0.2x multiplier on Astra's $50.00 output (as of 2026-10-29) means 10 CNY (roughly $1.40 USD) per 1M tokens—meaning they convert the currency unit without converting the exchange rate. Anyone claiming $10.00 USD output on uncached Astra API calls is either spoofing the model ID or mixing in subscription tokens.

How to Configure GPT-6 to Stop Cache Misses and Quota Drain

Whether you are paying per token on the API or trying to keep a Pro or Team seat from hitting a 429 rate limit mid-afternoon, changing a few defaults cuts waste immediately.

1. Default to gpt-6.1-sol and Keep gpt-6-luna Off Agent Loops

Do not run gpt-6-astra as your default model. gpt-6.1-sol costs one-fifth of Astra on input and output ($2.00/$10.00 vs. $10.00/$50.00) and one-tenth of Astra on cached reads ($0.10 vs. $1.00), while scoring 75.2% on DeepSWE v1.1 coding tasks and 71.4% on OSWorld 2.0 computer use (nearly matching Astra's 73.5% at roughly one-seventh the total cost per task). I keep gpt-6.1-sol as my default and only switch to gpt-6-astra when an agent fails twice on a complex architecture or scientific computing problem.

At the other end of the table, do not use gpt-6-luna ($0.10/$0.50) as the main reasoning model for multi-step tool-calling agents. While Luna is great for single-pass classification, extraction, or routing, it fails to report broken search or tool calls 28.7% of the time (compared to 2.1% on Sol) and frequently ignores negative constraints in long system prompts. The retries end up costing more time and money than running gpt-6.1-sol once.

2. Pass service_tier: "flex" on Direct API Calls

If you are calling the OpenAI API directly (or through an OpenAI-compatible router), you don't need to rewrite your application for the asynchronous 24-hour Batch API just to get the 50% discount. Adding "service_tier": "flex" to a normal synchronous request cuts gpt-6.1-sol down to $1.00 input, $0.05 cached input, and $5.00 output, and drops gpt-6-luna to $0.05 input, $0.005 cached input, and $0.25 output.

In my testing, Flex mode returns its first token in 1.5 to 2.5 seconds and streams at 50 to 90 tokens per second—virtually indistinguishable from Standard mode during normal hours, and noticeably faster than ChatGPT subscription tiers (which often throttle Luna and Sol to 30–40 TPS). Just keep a fallback retry to Standard in your code in case Flex capacity briefly returns a 429 during peak traffic. (If you route requests across multiple providers, see my guide on changing the OpenAI Python SDK base_url.)

3. Lock Your Reasoning Effort and Enable reasoning_effort_override

A common mistake when quota runs low is dropping reasoning effort from xhigh to medium mid-conversation. Don't do it. First, xhigh often consumes less total quota over an hour of coding (1% to 2% per task) because the model solves the problem in one pass instead of looping through five failed test runs at medium. Second, changing effort mid-thread triggers the full-context cache miss described earlier.

If you use the Codex CLI and need to change reasoning effort mid-session, enable the override flag first so the client sends a cache-preserving configuration_update item instead of mutating the top-level request parameter:

bash
codex features enable reasoning_effort_override

Note one edge case: if you authenticate a third-party client with a ChatGPT subscription token and store: false, sending a configuration_update item to gpt-6-luna or gpt-6.1-sol currently returns a 400 error (User subscription sharing currently supports only text, image, and file messages...). On those setups, pick one reasoning effort level at the start of the thread and leave it untouched.

4. Migrate Tool Calling from Chat Completions to /v1/responses

If you are still hitting POST /v1/chat/completions with GPT-6 models, you will run into a hard wall as soon as you attach tools. On the legacy Chat Completions endpoint, OpenAI rejects tool-calling requests unless you explicitly set reasoning_effort="none"—and neither gpt-6-astra nor gpt-6.1-sol supports none (or minimal). We covered several related provider migrations in our roundup of recent October 2026 LLM API changes.

To use tools alongside reasoning—and to get full prompt caching hits across multi-step tool executions—move your calls to the Responses API (POST /v1/responses):

python
from openai import OpenAI

client = OpenAI()

response = client.responses.create(
    model="gpt-6.1-sol",
    service_tier="flex",
    reasoning={"effort": "high"},
    input="Inspect the failing auth test and propose a minimal patch.",
    tools=[
        {
            "type": "function",
            "name": "read_file",
            "description": "Read a file from the workspace",
            "parameters": {
                "type": "object",
                "properties": {"path": {"type": "string"}},
                "required": ["path"],
            },
        }
    ],
)

print(response.output_text)

Finally, keep your auto-compaction limit below the 244,800-token Codex default (and strictly below 272,000 tokens on the API). Splitting a massive task into two clean 180K-token threads with warm prefix caches will cut your API bill in half compared to letting a single thread cross 272K or go idle past Astra's 30-minute cache window. If you want to route between gpt-6-luna, gpt-6.1-sol, and gpt-6-astra automatically while tracking exact per-request cache hits and long-context surcharges across providers, you can also run your keys through SeedRouter.

Sources and checks

  1. official OpenAI API pricing page
  2. 50% cheaper than the GPT-5.6 generation
  3. GPT-6.1 Sol