Skip to content
trending

AI Tools

OpenAI API Pricing: Rates, Long Context, and Costs

A complete breakdown of official OpenAI API pricing across the GPT-6 and GPT-5.6 generations, including long-context doubling and practical cost examples.

By 4 min read

👁 116 reads

Understanding OpenAI API pricing requires looking at per-token base rates, prompt caching discounts, and specific surcharge thresholds across different model tiers. Whether you are running lightweight tasks on GPT-6 Luna or complex reasoning workloads on GPT-6 Astra, rates vary significantly based on context size and output generation. If you build multi-model workflows, you can also explore how I approach model access in my Jantaris overview.

As of 18 October 2026

  • OpenAI API rates double for requests exceeding 272k tokens.
  • Reasoning tokens generated by newer models are billed at the full output rate.
  • GPT-6.1 Sol ($2 input, $10 output per 1M tokens) is available exclusively directly from OpenAI.
  • Cached inputs offer significant discounts across both GPT-6 and GPT-5.6 tiers.

Official OpenAI API Pricing for GPT-6 and GPT-5.6

OpenAI calculates usage per million tokens across three primary metrics: standard input, cached input, and output. When using reasoning-heavy variants, any internal reasoning steps count directly as output tokens.

Model Input / 1M Cached / 1M Output / 1M
GPT-6 Astra $10.00 $1.00 $50.00
GPT-6 Sol $2.00 $0.20 $10.00
GPT-6.1 Sol $2.00 $0.10 $10.00
GPT-6 Luna $0.10 $0.01 $0.50
GPT-5.6 Sol $4.00 $0.40 $20.00
GPT-5.6 Terra $2.00 $0.20 $12.00
GPT-5.6 Luna $0.20 $0.02 $1.20

Note that GPT-6.1 Sol exists only at OpenAI, offering a reduced cached input rate of $0.10 per million tokens alongside its standard $2 input and $10 output pricing. For older generational context on past pricing shifts, see my report on how GPT-5.6 Sol API prices double to $4 and $20 per million tokens.

The 272k Long-Context Doubling Rule

Context length heavily impacts your final bill when scaling inputs. On OpenAI’s platform, whenever a single request exceeds 272k tokens, the price doubles across the board for that call. This applies to both input ingestion and output completion.

To avoid runaway costs on extensive documents or long-running conversations, you must actively track token counts before dispatching requests. Failing to truncate or manage chat history past 272k tokens will instantly shift a GPT-6 Sol request from $2/$10 per million tokens to an effective $4/$20 per million tokens.

Typical-Job Cost Calculation

Let us look at a realistic production workload using GPT-6 Sol. Suppose you execute a batch extraction task containing:

  • 100,000 standard input tokens
  • 400,000 cached input tokens
  • 20,000 generated output tokens (including reasoning tokens)

Because the total context remains well below the 272k threshold per individual request, standard rates apply:

  • Input: 0.10M tokens * $2.00 = $0.20
  • Cached input: 0.40M tokens * $0.20 = $0.08
  • Output: 0.02M tokens * $10.00 = $0.20

The total cost for this job comes out to exactly $0.48. If those same 20,000 output tokens were produced by GPT-6 Astra, the output portion alone would cost $1.00 (0.02M * $50.00).

How to Buy OpenAI Directly

To purchase access directly from OpenAI, navigate to their official developer portal at developers.openai.com/api/docs/pricing. You create an organization account, link a credit card, and pre-fund an account balance or configure automatic billing thresholds. All GPT-6.1 Sol access is provisioned exclusively through their direct API keys.

Using Multi-Model Workflows with My Service

In many application stacks, OpenAI models are paired alongside frontier models from other labs. To simplify multi-provider setups, I built a service called Jantaris. Rather than managing separate enterprise subscriptions and monthly minimums across multiple vendors, my service provides a single prepaid USD balance that never expires, with zero subscriptions and no charge on failed generations ($0).

While I do not offer price comparisons on OpenAI text models, running other leading systems alongside them through my unified balance offers notable advantages. For example, Claude models can be called at roughly 6% below Anthropic’s list price:

Model Official Price My Service Difference
Claude Opus 5.5 $4.00 / $20.00 $3.78 / $18.90 -6%
Claude Sonnet 5.5 $2.00 / $10.00 $1.89 / $9.45 -6%
Claude Fable 5.1 $10.00 / $50.00 $9.45 / $47.25 -6%
Claude Opus 4.8 $5.00 / $25.00 $3.78 / $18.90 -24%

You can also use that same balance for visual media. For instance, generating an 8-second 720p clip on Veo 3.1 Lite costs $0.177 through my service compared to the $0.40 official rate (-56%), and Veo 3.1 Fast costs $0.354 versus $0.80 (-56%). Similarly, Nano Banana Pro 1K/2K is $0.07 per image compared to the $0.134 official rate (-48%). You can explore all options on the pricing overview or test estimates using the cost calculator.

My service supports standard client integration via OpenAI’s official SDK by pointing the base URL to my endpoint:

from openai import OpenAI
client = OpenAI(base_url="https://jantaris.com/v1", api_key=os.environ["JANTARIS_API_KEY"])
resp = client.chat.completions.create(model="claude-sonnet-5.5", messages=[{"role": "user", "content": "..."}])

Frequently Asked Questions

What is the current chatgpt api price for flagship models?

As of 18 October 2026, the standard GPT-6 Sol costs $2.00 per million input tokens and $10.00 per million output tokens. For high-tier reasoning, GPT-6 Astra costs $10.00 per million input and $50.00 per million output tokens.

How does the OpenAI long-context price doubling work?

If a request uses more than 272k tokens in total context, OpenAI doubles both the input and output rates for that specific API call. Keeping contexts below 272k avoids this pricing surge.

Are reasoning tokens billed differently on the OpenAI API?

No, reasoning tokens are not separated onto a different billing tier. Any tokens generated by the model during internal reasoning steps are billed at the standard output token rate.

Where can I buy access to GPT-6.1 Sol?

GPT-6.1 Sol is available only directly through OpenAI at $2.00 per million input and $10.00 per million output tokens. It is not distributed via third-party unified platforms.

Do API balances expire if I do not use them?

Direct OpenAI prepayments follow standard platform expiration policies. In contrast, on the service I built, your prepaid USD balance never expires and has no recurring monthly subscription.

Google · Your sourcesQuantslant higher in your Google - one clickAdd to preferred sources →

Sources

Prices checked on 18 October 2026.

// read next

More on this from QUANTSLANT

Piotr Olszewski

Editor and publisher · Quantslant

I edit and publish Quantslant. AI tools help with research, drafts and translation; choosing topics, running the tests, checking facts and the decision to publish are mine, and so is the responsibility for what appears here.

read nextGemini 4 Carbon benchmarks: what Google’s scores showai toolsGemini 4 Carbon benchmarks: what Google’s scores showThe headline number is 59 in Artificial Analysis Intelligence Index v5.0, according to Google.

Most read

  1. 1Best AI Video Generator Apps for Your Phone (2026)
  2. 2Claude Opus 5.5 Motion Graphics: 60s Showreel from One Prompt
  3. 3Wan 2.2 on RTX 4090: timings, VRAM and four test clips
// site map
Quantslant in numbers 1,423posts in archive22news from the last 7 days18video models in the observatory
🎬 AI Video Benchmarks: Higgsfield DoP vs OpenAI Sora • Higgsfield vs Runway Gen-3 • AI Video Credit Calculator
× ‹ enlarge ›