OpenAI API cost: per call, per user and per customer in 2026

OpenAI API prices for GPT-6.2 Astra, Sol and GPT-6 Luna, how caching and Batch change them, and how to get cost per customer.

Brandon Holt
November 27, 2026
8
min read
Summarize
OpenAI API cost: per call, per user and per customer in 2026

OpenAI API cost depends on the model and the token count. GPT-6.2 Sol, OpenAI's everyday model, costs $2 per million input tokens and $10 per million output tokens, so a support reply with 3,000 tokens in and 500 out costs $0.011. GPT-6 Luna runs the same call for $0.00055, and GPT-6.2 Astra for $0.044.

Prices checked on November 27, 2026, from OpenAI's pricing page.

OpenAI's page lists rates per million tokens. The sections below turn those rates into one call, one active user and one customer on a $49 plan, then show where to see the spend and how to split it by customer. For the wider playbook, see our guide to cutting LLM costs.

What the OpenAI API costs per model

OpenAI's models page names three models to start from: GPT-6.2 Astra, the most capable; GPT-6.2 Sol, its "go-to model for everyday work"; and GPT-6 Luna for cost-sensitive, high-volume work. GPT-6.1 Terra sits between Sol and Luna on price. The table shows Standard-tier prices in US dollars per million tokens, for prompts up to 272,000 tokens.

ModelInputCached input30-min cache writeOutputBatch inputBatch output
GPT-6.2 Astra$8.00$0.40$10.00$40.00$4.00$20.00
GPT-6.2 Sol$2.00$0.10$2.50$10.00$1.00$5.00
GPT-6.1 Terra$1.00$0.05$1.25$5.00$0.50$2.50
GPT-6 Luna$0.10$0.01$0.125$0.50$0.05$0.25
GPT-5.4 mini$0.75$0.075No charge$4.50$0.375$2.25
GPT-5 mini$0.25$0.025No charge$2.00$0.125$1.00

Source: OpenAI pricing page and prompt caching guide, November 27, 2026. Standard tier, prompts up to 272K tokens, per million tokens.

Prompts over 272,000 input tokens pay long-context rates: GPT-6.2 Sol goes to $4 in and $15 out, and GPT-6.2 Astra to $16 and $60. Data residency endpoints add 10% for models released on or after March 5, 2026. The Fast tier, which OpenAI renamed from Priority in July 2026, costs double Standard, $4 and $20 on GPT-6.2 Sol.

How to calculate the cost of one OpenAI API call

Read the usage object on the response and multiply each count by its rate. In the Responses API, input_tokens counts the whole prompt, input_tokens_details.cached_tokens counts cache reads, and input_tokens_details.cache_write_tokens counts tokens written to the cache. Output_tokens includes reasoning tokens, which OpenAI's reasoning guide says bill as output even though the API never shows them.

uncached = input_tokens − cached_tokens − cache_write_tokens

cost = ( uncached × input rate
       + cached_tokens × cached input rate
       + cache_write_tokens × cache write rate
       + output_tokens × output rate ) ÷ 1,000,000

Those five lines are a complete OpenAI cost calculator once you plug in the rates from the table. To estimate before you have traffic, OpenAI's token rule of thumb is about 4 characters or three-quarters of an English word per token, so 100 tokens hold about 75 words.

Example. A support reply on GPT-6.2 Sol sends 3,000 tokens (a 2,000-token system prompt plus 1,000 tokens of conversation) and gets 500 back, reasoning included. Without caching, that's 3,000 × $2 ÷ 1M = $0.006 for input plus 500 × $10 ÷ 1M = $0.005 for output, $0.011 in all.

How cached input and the Batch API change the math

Cached input

OpenAI turns on prompt caching by default for supported models, and on GPT-5.6 and later the minimum cacheable prompt is 1,024 tokens, according to its prompt caching guide. A cache read costs 0.05 times input on GPT-6.2 Astra, GPT-6.2 Sol, GPT-6.1 Sol and GPT-6.1 Terra, a 95% discount, and 0.1 times on most other models from GPT-5.6 on. Writes cost 1.25 times input for the default 30-minute cache and 2.5 times for the 12-hour option. Models before GPT-5.6 charge nothing extra for writes.

Back to the support reply. With the 2,000-token system prompt read from cache, the call costs $0.0002 for the cached tokens, $0.002 for the other 1,000 input tokens and $0.005 for output, $0.0072 in all. Each write of that 2,000-token prefix costs $0.005 at $2.50 per million, which a busy feature spreads across many reads.

Batch API

The Batch API takes a JSONL file of up to 50,000 requests, finishes within 24 hours, and costs 50% less than synchronous calls. Batch jobs also sit outside your standard per-model rate limits. The pricing page lists batch cached-input rates too (GPT-6.2 Sol: $1 in, $0.05 cached, $5 out), so you can stack the two discounts.

For GPT-6.2 Astra, GPT-6.2 Sol, GPT-6.1 Terra and GPT-6 Luna, OpenAI also prices eligible background requests at 30% below Standard with a 2-hour completion window and 40% below with an 8-hour window. Those fit work that can wait a couple of hours when a full day is too long.

A 20,000-token document summary with 1,000 tokens of output costs $0.05 on GPT-6.2 Sol at Standard rates ($0.04 of input plus $0.01 of output) and $0.025 through Batch.

What one user and one customer on a $49 plan cost

Example. A SaaS product sells a $49 monthly plan with two AI features on GPT-6.2 Sol: the cached support reply ($0.0072) and document summaries ($0.05 at Standard, $0.025 in Batch). An active user sends 30 replies per working day, which comes to 630 replies over 21 working days. One active user costs $4.54 a month.

CustomerActive usersSummariesAI costMarginMargin %
Northwind (light)1None$4.54$44.4691%
Birchline (typical)4200 in Batch$23.14$25.8653%
Kestrel (heavy)8600 at Standard$66.29−$17.29−35%
Kestrel, summaries in Batch8600 in Batch$51.29−$2.29−5%
Kestrel, summaries on GPT-6 Luna8600 at Standard$37.79$11.2123%

Example data. Each active user sends 630 cached replies a month on GPT-6.2 Sol; a summary costs $0.05 on Sol at Standard, $0.025 in Batch and $0.0025 on GPT-6 Luna.

−$17.29
What Kestrel costs you each month on a $49 plan

Kestrel's eight users cost $36.29 in replies, and 600 summaries at Standard rates add $30. Batch alone leaves Kestrel $2.29 underwater. Moving summaries to GPT-6 Luna, if its quality holds for that task, turns Kestrel into an $11.21 profit. For where this cost sits in your gross margin, see SaaS COGS when you sell AI.

Where to see your OpenAI API spend

The usage dashboard sits under Analytics in the OpenAI platform: Usage shows tokens and requests, and Spend shows dollars. You can group by project, user or model and filter by API key, model and line item. The dashboard shows data in UTC going back one calendar year, and you need to be an organization owner or hold the Usage Dashboard permission to open it.

For code, OpenAI offers two organization endpoints, both called with an admin key. The Completions Usage API (/v1/organization/usage/completions) returns token counts in 1-minute, 1-hour or 1-day buckets, grouped by project_id, user_id, api_key_id, model, batch, service_tier or api_source. The Costs API (/v1/organization/costs) returns dollars in 1-day buckets, grouped by project_id, user_id, line_item, api_key_id or api_source. OpenAI's cookbook example walks through both.

How to get OpenAI cost per customer

The dashboard and both APIs describe your OpenAI account: its projects, keys, models and request types. None of those groupings carries your customer's ID. The safety_identifier field, which OpenAI asks you to set to a stable, hashed user ID for its safety checks, appears in none of the grouping options either.

A project or API key per customer works for a handful of enterprise accounts and breaks down at a few hundred. The approach that scales is to tag each call in your own code:

  1. Wrap the OpenAI client so every call carries a customer ID and a feature name from your app.
  2. After each response, store the customer ID, feature, model, timestamp and the usage counts: input, cached, cache-write and output tokens.
  3. Price each row at the rate for that model on that day, so a price change leaves last month's numbers alone.
  4. Sum cost by customer each day and compare it with what that customer pays.
  5. Reconcile your total against the Costs API, because retries, background jobs and untagged calls all reach the bill.

Lancelot's Bill matching handles step 5: it reads your OpenAI usage and cost reports with an admin key each day, lines them up with its per-customer tracking, and explains any gap (Bill matching). If you also run Claude, Claude API cost per token works through the same math on Anthropic's prices.

Questions about OpenAI API cost

How much does the OpenAI API cost?

OpenAI charges per million tokens, and the price depends on the model. GPT-6.2 Sol costs $2 for input and $10 for output, GPT-6.2 Astra costs $8 and $40, and GPT-6 Luna costs $0.10 and $0.50. Cached input and the Batch API cut those rates.

How do I calculate the cost of an OpenAI API call?

Multiply each token count in the response's usage object by its rate and divide by 1,000,000. Price uncached input, cached input, cache writes and output each at its own rate. A 3,000-token prompt with 500 output tokens costs $0.011 on GPT-6.2 Sol.

How much does the OpenAI Batch API save?

The Batch API costs 50% less than synchronous calls and returns results within 24 hours, with up to 50,000 requests per batch. On four GPT-6 models, eligible background requests also get 30% off with a 2-hour window and 40% off with an 8-hour window.

How does OpenAI prompt caching work?

OpenAI caches prompts by default on supported models. On GPT-5.6 and later the minimum is 1,024 tokens, reads cost 0.05 or 0.1 times the input price depending on the model, and writes cost 1.25 times input for the default 30-minute cache.

How do I build an OpenAI cost calculator?

Store the usage object from every response, then multiply input, cached input, cache-write and output tokens by the rates on OpenAI's pricing page. Keep a dated price table so old calls keep the price they ran at when OpenAI changes its rates.

Can I see OpenAI API cost per customer?

OpenAI's dashboard and Costs API group spend by project, API key, user and line item, and none of those identifies your customer. Tag each call with a customer ID in your own code, store the token counts, and sum the cost per customer yourself.

Where can I see my OpenAI API usage?

In the OpenAI platform under Analytics: Usage shows tokens and requests, and Spend shows dollars. Organization owners and members with the Usage Dashboard permission can open it. In code, the Completions Usage API and the Costs API return the same data with an admin key.

Per-call math tells you what a feature costs, and a few heavy customers decide what the plan earns. For caching, model routing and per-customer limits in more depth, see our guide to cutting LLM costs.

Keep reading

All dispatches →
Denial of wallet: how attackers run up your AI bill overnight
Running AI in production
/
8
min read

Denial of wallet: how attackers run up your AI bill overnight

Are AI companies profitable? What the reported margins show
AI unit economics
/
9
min read

Are AI companies profitable? What the reported margins show

Customer profitability analysis for AI products, step by step
AI unit economics
/
8
min read

Customer profitability analysis for AI products, step by step

SaaS COGS for AI products: what belongs and how to split it
AI unit economics
/
9
min read

SaaS COGS for AI products: what belongs and how to split it

Get the numbers when they change.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
New dispatches and model price changes. Unsubscribe anytime.