OpenAI API pricing: token categories, context tiers, and workload costs

Current OpenAI token rates, cache writes and reads, request limits, batch outcomes, extra fees and a reproducible budgeting method.

By benchr Editorial Team · · · Changelog

OpenAI API pricing: token categories, context tiers, and workload costs
A complete estimate separates request size, billable categories, service tier and accepted outcomes.

An OpenAI API estimate starts with the exact model, service tier and billable usage categories. A ChatGPT subscription does not pay for API requests, and a low input rate does not describe the full cost of a reasoning, voice or tool-using workflow. This guide explains the current token contract; it does not promise an invoice total or equal task quality across model tiers.

A current token-rate reference

These Standard list rates are the ordinary context band, in USD per million tokens. Each value is bound to benchr's canonical provider record and was checked against the current pricing table for this revision. The older GPT-5 identifiers remain in the table for existing applications; their presence does not make them the recommended default for a new deployment.

Standard token rates, before long-context and separate charges
API modelInputCache readCache writeOutput
gpt-6.1-sol$2.00$0.10$2.50$10.00
gpt-6-sol$2.00$0.20$2.50$10.00
gpt-6-luna$0.10$0.01$0.125$0.50
gpt-6-astra$10.00$1.00$12.50$50.00
gpt-5$1.25$0.125No separate write rate in this contract$10.00
gpt-5-mini$0.25$0.025No separate write rate in this contract$2.00

Use the OpenAI reference and identifier directory for the wider catalog, including legacy and specialist records. A model family name is not a valid substitute for the exact API identifier.

Reconcile the categories before multiplying

For a token-priced request, partition total input into ordinary input, cache reads and any separately charged cache writes. Multiply each category by its applicable rate, then add billable output. Cache reads are part of input, not another complete copy of the prompt. Use the provider's actual usage fields rather than estimating from visible characters.

Reasoning usage can be included within reported output. If your supplied output count already includes it, do not add reasoning a second time. If your application supplies answer tokens and reasoning separately, state that convention. A response can consume billable work without leaving a satisfactory final answer, so include refused, truncated and retried requests in the feature's cost.

For a hypothetical Standard request with 2,000 input and 500 output tokens, no cache or other charges, GPT-6.1 Sol's subtotal is $0.009; GPT-6 Luna's is $0.00045. These examples assume equal token counts, not equal responses or acceptance rates. The request-mix calculator reproduces the arithmetic and exports assumptions.

Long context changes a request, not the monthly total

The current Sol, Luna and Astra records apply a whole-request higher-context band above their documented input threshold. Many short requests do not become long-context requests because their monthly sum exceeds that boundary. Choose the band for each request first, then aggregate.

Capacity is separate from pricing. GPT-5 and Mini have a recorded combined window of 400,000 tokens, but a separate maximum input of 272,000 tokens. A prompt that fits the combined window can still exceed the input allowance. benchr's request calculation checks that distinction; an aggregate quote is not a guarantee that one oversized request will be accepted.

Caching has model-specific write and retention rules

The current caching guide distinguishes GPT-5.6 and later from earlier models. Newer models support explicit and implicit breakpoints with a separately priced write. An explicit-only request with no breakpoint does not create a cache write. Earlier models use implicit caching without that separate write contract.

Do not apply one universal discount to a complete request. Cached-input rates differ by identifier; only a matching eligible prefix receives the read rate. Keep reusable content stable, put changing content after it where the request contract permits, and inspect actual read/write counts. Retention, organization policy and cache-key choices can affect reuse. A cache hit is not established by enabling an SDK option.

Batch is a service contract, not a checkbox discount

The Batch guide documents eligible asynchronous work with a 24-hour completion window and a discount relative to synchronous requests. Verify the exact endpoint and model. Match returned results by the unique custom_id, rather than assuming output order matches input.

A batch can expire or be canceled after some requests complete. Retrieve both output and error records, retain successful results and retry only the work that actually failed. The guide states that completed requests in an expired batch are charged. A job-wide retry can duplicate already completed work and erase the expected saving.

Keep non-token products out of a text quote

Realtime prices audio, text and image categories separately. Live sessions use a distinct session contract with backend work accounted for separately. Tools, hosted storage, image generation, fine-tuning and other products have their own eligibility and charges. A text-token subtotal does not include them.

This revision removes the earlier unsupported claim that GPT-5 and Mini fine-tuning necessarily use a fixed price premium and an hourly hosting fee. Establish the supported training method, exact model and current training/inference terms from the optimization documentation before quoting a tuned model. An ordinary model's price card does not establish that contract.

Budget enforcement and accepted-task economics

OpenAI's spend-limit guide distinguishes alerts from enforced hard limits. Alerts allow traffic to continue. A reached organization or project hard limit returns a specific 429 error, but enforcement is not instantaneous and spend can slightly exceed the configured amount. Use application limits on requests, tokens, retries and elapsed time alongside the account controls.

Compare total cost divided by accepted results, including failures and repairs. A lower unit rate is useful only when the workload still meets its requirements. Record the identifier, deployment, service tier, observed usage and rate date with your estimate; preserve historical prices for historical analysis rather than replaying today's rate as an old invoice.

Changelog

  • 2026-10-15 — Reconstructed current pricing and billing guidance, removed unsupported fine-tuning claims and universal caching assumptions, and added canonical rates and computed scenarios.
  • September 11, 2026 — Rewrote the short answer, lineup paragraph, and routing lanes around GPT-6 Astra and the GPT-5.6 family (Sol, Terra, Luna); described GPT-5.5, GPT-5.4, GPT-5, and GPT-5 Mini as older still-listed models; corrected the GPT-5.5 cache discount from 50% to 90% to match the table's own cached rate; added the gpt-5-2025-08-07 snapshot shutdown date. Price-history content unchanged.
  • July 24, 2026 — Removed completion and zero-latency guarantees; clarified Batch eligibility, failure handling, and schema-latency validation.
  • June 10, 2026 — Added GPT-5.4 to the rate table and routing guidance after re-verifying it on OpenAI's pricing page (it was wrongly dropped as "unverified" on June 1). Linked the dedicated GPT-5.4 pricing breakdown.
  • — Published. GPT-5.5, GPT-5, and GPT-5 Mini prices verified against platform.openai.com/docs/pricing.

Sources and documentation review

Documentation review dates are recorded per source. No provider inference or independent benchmark replication was performed for this revision.

  1. Current Standard model and context-band prices — read
  2. Model-specific caching and write contracts — read
  3. Batch outcomes and partial billing — read
  4. Maximum input and context are separate — read
  5. Mini model contract — read
  6. Training method and eligibility boundary — read
  7. Alerts and enforced spending limits — read