← Back to blog

Cheap OpenAI API: 7 Ways to Cut Your Bill (October 2026)

How to get a cheap OpenAI API bill: prices per 1M tokens, caching, Batch and Flex discounts, long-context traps, gateway prices and a worked example.

APIKO TeamUpdated 10 min read
On this page

Short answer: a cheap OpenAI API bill comes from a few levers, roughly in this order of impact: pick the cheapest model tier that passes your tests, let prompt caching work, send async work through the Batch API or Flex at half price, cap output and reasoning tokens, stay under the 272K long-context tier, buy below list price through a gateway where that is cheaper, and check the hidden costs (failed-call billing, minimums, expiry) before you top up anywhere.

The rest of this guide puts numbers on each lever. All prices are USD per 1M tokens, taken from OpenAI's pricing page on October 26, 2026 and from APIKO's price list on November 1, 2026. Prices change, so treat every table here as a dated snapshot.

OpenAI API pricing in October 2026

Standard (synchronous) list prices for short-context requests (272K input tokens or fewer). The Batch / Flex column is 50% of Standard, which is how OpenAI prices both tiers.

ModelInputCached inputOutputBatch / Flex (in / cached / out)
gpt-6-astra$10.00$1.00$50.00$5.00 / $0.50 / $25.00
gpt-6.1-sol$2.00$0.10$10.00$1.00 / $0.05 / $5.00
gpt-6-sol$2.00$0.20$10.00$1.00 / $0.10 / $5.00
gpt-6-luna$0.10$0.01$0.50$0.05 / $0.005 / $0.25
gpt-5.6-sol$4.00$0.40$20.00$2.00 / $0.20 / $10.00
gpt-5.6-terra$2.00$0.20$12.00$1.00 / $0.10 / $6.00
gpt-5.6-luna$0.20$0.02$1.20$0.10 / $0.01 / $0.60
gpt-5.5$5.00$0.50$30.00$2.50 / $0.25 / $15.00
gpt-5.4$2.50$0.25$15.00$1.25 / $0.125 / $7.50
gpt-5.4-mini$0.75$0.075$4.50$0.375 / $0.0375 / $2.25

Two notes. GPT-5.6 Sol is on promotional pricing that OpenAI says runs "at least through November 21, 2026", so recheck it after that date. And the cached-input column is the price of a cache read; on GPT-5.6 and later, writing to the cache costs extra (lever 2).

1. Pick the cheapest OpenAI model that passes your tests

Model choice is the biggest lever by far. The same request mix costs 100× more on the most expensive model than on the cheapest. Here is the list price of 1M input tokens plus 200K output tokens, no caching:

Model1M in + 200K out (Standard)Same on Batch / Flex
gpt-6-astra$20.00$10.00
gpt-5.5$11.00$5.50
gpt-5.6-sol$8.00$4.00
gpt-5.4$5.50$2.75
gpt-5.6-terra$4.40$2.20
gpt-6.1-sol$4.00$2.00
gpt-6-sol$4.00$2.00
gpt-5.4-mini$1.65$0.825
gpt-5.6-luna$0.44$0.22
gpt-6-luna$0.20$0.10

Some things this table makes obvious:

  • Newer is not more expensive. gpt-6.1-sol costs less than gpt-5.5 and gpt-5.4, and its cached input is the cheapest of any Sol model. If you run GPT-6 Sol today, GPT-6.1 vs GPT-6 covers what the upgrade changes.
  • The cheapest OpenAI model in the current families is gpt-6-luna. If a small model handles classification, extraction or routing for you, that one decision beats every other trick in this post. Claude Haiku 5.5 lists at the same rates; Haiku 5.5 vs Luna 6 compares what each costs per task.
  • Route by task, not by app. Send easy requests to a Luna model and only the hard ones to Sol or Astra. A router with one cheap model and one strong model is usually cheaper than one mid-priced model for everything.

The catch: price per token only matters if the model gets the answer right. Run your own eval set on two or three candidates before switching.

2. Let prompt caching work for you

OpenAI caches prompt prefixes automatically on supported models; you do not have to turn anything on. What you control is whether your prompts are cacheable:

  • Put the stable part first. System prompt, tool definitions, few-shot examples and long documents go at the start; the user's message goes at the end. The cache matches on the prefix, so anything that changes early (a timestamp, a request ID) breaks it.
  • Clear the minimum. On GPT-5.6 and later, the cacheable prefix must be at least 1,024 tokens.
  • Know the write price. On GPT-5.6 and later, a cache write costs 1.25× the normal input rate, and later reads cost 0.1× (0.05× on GPT-6.1 Sol). Retention is 30 minutes. Older models such as gpt-5.5 and gpt-5.4 do not charge for writes.

On gpt-6.1-sol, a 10K-token system prompt costs $0.025 to write once (10K × $2.00 × 1.25 / 1M) and $0.001 per read after that, versus $0.02 uncached. One read inside 30 minutes recovers the write premium, and every read after that is 95% off.

3. Use the OpenAI Batch API discount (and Flex) for async work

If nobody is waiting on the response, you should not be paying the synchronous price.

Batch API. OpenAI gives a 50% discount compared to the synchronous APIs. You upload a file of requests, and each batch completes within 24 hours (often sooner). Batches run on a separate pool of significantly higher rate limits, so a big backfill does not eat into your live traffic's limits. Good fits: evals, document classification, embeddings, nightly summaries.

Flex processing. Flex gives Batch API prices on normal Responses or Chat Completions requests. You add one parameter:

from openai import OpenAI

client = OpenAI()
resp = client.responses.create(
    model="gpt-6.1-sol",
    input="Classify this support ticket: ...",
    service_tier="flex",
)

The trade-offs: responses are slower, and when capacity is short you get 429 Resource Unavailable. OpenAI does not charge for those, so retry with backoff or fall back to standard. Flex is in beta and limited to certain models (all the models in the table above are on OpenAI's Flex list). Use a longer client timeout than you would for interactive calls.

4. Cap output and reasoning tokens

Output tokens cost 5–6× input on every model above, and reasoning tokens are billed as output. Three habits keep them down:

  • Set an output cap (max_completion_tokens on Chat Completions, max_output_tokens on the Responses API) so a runaway answer cannot cost you 10× the typical response.
  • Lower reasoning effort for simple tasks. High effort on a lookup or a format conversion buys nothing but output tokens.
  • Ask for less. "Return JSON with these three fields" is cheaper than "explain your reasoning, then give the answer". Read usage.completion_tokens_details.reasoning_tokens to see where output is going.

5. Stay out of the surcharge tiers: long context, Fast mode, data residency

Three OpenAI options raise the per-token price. Each has a place, but none should be on by accident.

SurchargeWhen it appliesCost
Long contextMore than 272K input tokens in a request (GPT-6.x, 5.6, 5.5, 5.4 families)2× input, 1.5× output
Fast mode (formerly Priority)service_tier: "fast" or "priority", or set as a project default2× Standard on GPT-5.6 Sol; gpt-6.1-sol goes from $2 / $10 to $4 / $20
Data residencyRegional processing endpoints, for models released on or after March 5, 2026 (FedRAMP endpoints too)+10%

The long-context jump is the one that surprises people. On gpt-6.1-sol, long context costs $4 input and $15 output. A 270K-token prompt costs $0.54 in input; a 280K-token prompt costs $1.12. If your retrieval step sometimes stuffs the whole knowledge base into the prompt, cap it below 272K or split the job.

Fast mode is worth it only when latency is the product. Check your project defaults: if someone set Fast as the default, every request pays the premium. Cached-input discounts still apply in Fast mode, but the base rate doubles.

6. Buy below list through an API gateway

Some OpenAI-compatible API gateways sell the same models below OpenAI's list price. APIKO is one. Here is its price list next to OpenAI's Standard list for the same models (short context; APIKO snapshot 2026-11-01, live on /pricing):

ModelOpenAI list (in / cached / out)APIKO (in / cached / out)vs list
gpt-6-astra$10 / $1 / $50$1.00 / $0.10 / $5.00−90%
gpt-6.1-sol$2 / $0.10 / $10$0.20 / $0.010 / $1.00−90%
gpt-6-sol$2 / $0.20 / $10$0.20 / $0.020 / $1.00−90%
gpt-5.6-sol$4 / $0.40 / $20$0.40 / $0.040 / $2.00−90%
gpt-5.6-terra$2 / $0.20 / $12$0.20 / $0.020 / $1.20−90%
gpt-5.6-luna$0.20 / $0.02 / $1.20$0.161 / $0.016 / $0.967≈ −19%
gpt-5.4-mini$0.75 / $0.075 / $4.50$0.605 / $0.0605 / $3.63≈ −19%

What to read from it, honestly:

  • The discount is uneven. Most Sol, Terra and Astra models are 90% below list, while gpt-5.6-luna and gpt-5.4-mini are only about 19% below.
  • Two models left the list. APIKO stopped selling gpt-6-luna and gpt-5.4 on November 3, 2026, when their only supplier dropped them. For those two, buy from OpenAI directly.
  • Same long-context tier. APIKO keeps the 272K threshold: above it, 2× input and 1.5× output, same as OpenAI. This applies to every GPT model in the table, and cached input is 2× above the threshold too.
  • No Batch, Flex or Fast tiers. APIKO does not offer OpenAI's Batch API, Flex or Fast/Priority tiers. Those are features of buying direct. So for async jobs on models where APIKO's discount is small, OpenAI Batch can still win: gpt-5.6-luna on Batch is $0.10 / $0.60 versus APIKO's $0.161 / $0.967, and gpt-5.4-mini on Batch is $0.375 / $2.25 versus $0.605 / $3.63. On the other rows APIKO is below Batch.
  • Prices move. APIKO's prices follow upstream costs and are re-synced several times a day, so check /pricing before you plan around a number.

Switching is a base URL and key change for OpenAI-compatible code:

curl https://api.apiko.app/v1/chat/completions \
  -H "Authorization: Bearer $APIKO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "gpt-6.1-sol",
    "messages": [{"role": "user", "content": "Summarize this in two sentences: ..."}],
    "stream": true,
    "stream_options": {"include_usage": true}
  }'

With include_usage, the last stream chunk carries the real token counts, so you can check the bill against your own numbers.

7. Check the hidden costs before you top up

The per-token price is not your bill. Before you put money into any provider, OpenAI included, ask these questions. APIKO's answers are in the last column.

QuestionWhy it mattersAPIKO
Are failed calls billed?A timeout or upstream error billed at an estimate is money for nothingA hold is placed when the request starts, settled on the real usage the provider reports, and refunded automatically if the call fails. Retries across channels happen behind one call; only a response that reaches you is billed
Is there a minimum top-up or subscription?Floors leave idle money parked for small or bursty workloadsNo subscription, no minimum
Does the balance expire?Expiring credit is spend you never got to useNever expires; one balance for every model on the account
Are rate limits documented, and is a 429 billed?Undocumented limits show up mid-incident500 requests/min per account across all keys and models; 429 is not billed; no Retry-After header, so back off with jitter
Is the long-context tier published?A hidden tier turns long prompts into surprise billsYes: above 272K input tokens, 2× input and 1.5× output, shown on /pricing
Can you see per-request cost?You cannot audit a total you cannot break downTask Logs at /dashboard/usage show model, request ID, key, duration, cost and status for each call
Are Batch / Flex discounts available?Async work at half price may beat any gatewayNo; use OpenAI direct for those tiers

The fastest way to check a provider is a small top-up and a day of real traffic: compare the billed tokens with the usage in each response, force a failure (a wrong model id) and confirm it is not charged. Our guide on how to test an AI API key has the commands.

Worked example: reduce OpenAI API cost on a real workload

A support assistant processes 50M input tokens a month, 60% of them a cacheable prefix (system prompt, tools, policy docs), and generates 5M output tokens. That is 30M cached input, 20M uncached input and 5M output. All requests are under 272K tokens.

The formula, once:

monthly cost = 20 × input price + 30 × cached-input price + 5 × output price (prices per 1M tokens)

We ignore cache-write charges here: the prefix is rewritten only when the 30-minute cache expires, which is small next to 30M reads. For the record, on OpenAI's Standard tier every 1M prefix tokens written to the cache on GPT-6.1 Sol costs $2.50 (1.25 × $2.00) instead of the $0.10 read price used below; gpt-5.5 has no write charge.

Optiongpt-5.5gpt-6.1-sol
OpenAI Standard, no caching (50 × in + 5 × out)50 × 5 + 5 × 30 = $400.0050 × 2 + 5 × 10 = $150.00
OpenAI Standard, with caching20 × 5 + 30 × 0.50 + 5 × 30 = $265.0020 × 2 + 30 × 0.10 + 5 × 10 = $93.00
OpenAI Batch / Flex, with caching20 × 2.50 + 30 × 0.25 + 5 × 15 = $132.5020 × 1 + 30 × 0.05 + 5 × 5 = $46.50
APIKO, with caching20 × 0.50 + 30 × 0.05 + 5 × 3 = $26.5020 × 0.20 + 30 × 0.010 + 5 × 1 = $9.30

What the numbers say:

  • Moving from gpt-5.5 to gpt-6.1-sol cuts the Standard bill from $265 to $93, before any other change.
  • Caching takes gpt-6.1-sol from $150 to $93 (38% off) without touching the model.
  • Batch or Flex halves it again to $46.50, but only if a 24-hour or best-effort response is acceptable.
  • On these two models APIKO's price is 90% below list, so it comes in at $9.30, cheaper than OpenAI Batch, and responses are synchronous. On gpt-5.6-luna or gpt-5.4-mini the order flips and Batch direct is cheaper.

Run this formula with your own token counts. The ratio of cached to uncached input and the output share matter more than any single price.

Try it free

If you want to test the gateway route before spending anything: sign in with Google using a Gmail address and $0.20 is added to your balance automatically, no card needed, once per person. It works with every model, including image and video, which is enough for a few test requests. Sign up, or compare current rates on the pricing page. If you also pay for Claude, the same levers are covered in our Claude API pricing guide.

Sources

OpenAI prices are list prices from its pricing page, checked October 26, 2026; APIKO prices are a snapshot of its public price list on November 1, 2026. Cost figures are arithmetic on fixed token mixes, not measured bills.

Frequently asked questions

What is the cheapest OpenAI API model?

On OpenAI's October 2026 list, gpt-6-luna is the cheapest row in the current GPT-6 and GPT-5.6 families at $0.10 input, $0.01 cached input and $0.50 output per 1M tokens. Through the Batch API or Flex processing it is half that. Whether it is cheap for you depends on whether it passes your own tests; a model that fails and needs a retry on a bigger model costs more than picking the bigger model first.

Is there a free OpenAI API?

Not as an ongoing free tier: OpenAI prices its API per token, and its pricing page lists paid processing tiers (Standard, Batch, Flex, Fast). If you want to try OpenAI models without paying first, APIKO gives you $0.20 free when you sign in with Google using a Gmail address, no card needed, once per person. The trial works with every model, including image and video.

How much does the OpenAI Batch API save?

OpenAI gives a 50% discount compared to the synchronous APIs. Each batch completes within 24 hours, often sooner, and batches draw on a separate pool of higher rate limits. Use it for jobs nobody is waiting on: evals, classification, embeddings backfills, nightly reports.

What is Flex processing?

Flex is a cheaper OpenAI processing tier for Responses and Chat Completions requests. You set service_tier: "flex" on a normal request and pay Batch API rates, with prompt caching discounts on top. The trade-off is slower responses and occasional 429 Resource Unavailable errors, which are not charged. It is in beta and limited to certain models.

Does prompt caching cost extra?

Caching is automatic on supported OpenAI models. On older models it only saves money. On GPT-5.6 and later, writing a prefix to the cache costs 1.25× the normal input rate, and each later read costs 0.1× (0.05× on GPT-6.1 Sol). So caching pays off as soon as a cached prefix is read once within the 30-minute retention window.

Why did my OpenAI bill jump on long prompts?

Requests with more than 272K input tokens are billed at the long-context rate: 2× input and 1.5× output on the GPT-6.x, GPT-5.6, GPT-5.5 and GPT-5.4 families. A 280K-token prompt on GPT-6.1 Sol costs $1.12 in input, while a 270K-token prompt costs $0.54. Trim retrieved context or split the job to stay under 272K.

Are cheap OpenAI API resellers safe?

Treat them like any new vendor. Start with a small top-up, send real requests and compare the billed tokens with the usage in each response. Check whether failed calls are refunded, whether the balance expires and whether there is a minimum top-up. Never paste your own OpenAI key into a third-party service; a gateway should issue you its own key.