GPT-4o API Retirement Date Is Jan. 14, 2027: How Agencies Running Client Chatbots Can Cut Costs Over 20x
OpenAI shuts down the GPT-4o API snapshots in 58 days and points users to gpt-6-luna. For an agency with 30 client bots, the migration is also the margin plan, if each bot is tested first and the savings are priced deliberately.
OpenAI's GPT-4o API retirement date is January 14, 2027: the gpt-4o-2024-08-06, gpt-4o-2024-11-20 and gpt-4o-mini-2024-07-18 snapshots shut down that day, fine-tunes built on them go too, and OpenAI recommends gpt-6-luna as the replacement. At list prices of $0.10 per million input tokens and $0.50 per million output, against $2.50 and $10.00 for GPT-4o, Luna cuts the token bill of a typical 30-bot agency portfolio from about $10,800 a month to about $330 with prompt caching on. Most of an agency's margin gain comes from three decisions: which clients pass on Luna, where prompt caching and the 50% Batch API discount pay, and how the agency reprices clients once its costs fall.
What OpenAI is shutting down, and what it isn't
OpenAI's deprecations page lists the change under a notice dated October 14, 2026. The two dated GPT-4o snapshots and the GPT-4o mini snapshot shut down on January 14, 2027, alongside GPT-4.1 and GPT-4.1 mini, and every row names gpt-6-luna as the replacement. The page adds that "fine-tuned versions of the models listed above follow the same shutdown schedule as their underlying base models," so an agency that tuned a GPT-4o model for one client loses it on the same day. Luna's model page lists fine-tuning as unsupported, so that client's behaviour has to be rebuilt in the prompt or elsewhere.
Two earlier GPT-4o entries have already gone. The chatgpt-4o-latest alias shut down on February 17, 2026, and the original gpt-4o-2024-05-13 snapshot on October 23, 2026. GPT-4o's retirement from the ChatGPT app is a separate change, covered in a help-centre article titled "Retiring GPT-4o and other ChatGPT models," and it does not set the API date. The API dates are on the deprecations page, and that is the page to plan against. Any bot calling one of the dated snapshots needs a new model ID before January 14; the page lists only dated snapshot IDs and doesn't mention the plain gpt-4o and gpt-4o-mini aliases, so the safe assumption is that they go too. Audio and realtime GPT-4o mini variants follow six days later, on January 20.
How the replacement prices work
OpenAI now sells three GPT-6 tiers that matter for chatbots. Luna is described on its model page as "our most efficient model for focused, high-volume tasks." Terra, gpt-6.1-terra, sits in the middle and is pitched at "clear, natural writing." Sol, gpt-6.1-sol, is the expensive tier for "complex work." All three bill input, cached input and output separately, and all three add something GPT-4o never charged for: a cache write.
| Model | Input / cached input | 30-min cache write | Output |
|---|---|---|---|
| gpt-4o | $2.50 / $1.25 | none listed | $10.00 |
| gpt-6-luna | $0.10 / $0.01 | $0.125 | $0.50 |
| gpt-6.1-terra | $1.00 / $0.05 | $1.25 | $5.00 |
| gpt-6.1-sol | $2.00 / $0.10 | $2.50 | $10.00 |
Prices are per million tokens at Standard rates as OpenAI's pricing page lists them on November 17, 2026. A 12-hour cache write costs twice the 30-minute rate. Batch and Flex are half of Standard on every GPT-6 tier.
One setting changes these numbers more than any price: reasoning. Luna and Terra default to medium reasoning effort, and OpenAI's reasoning guide says reasoning tokens "are billed as" output tokens even though the user never sees them. A support bot that answers opening hours does not need to think first. Both models accept none, which turns reasoning off; Sol does not accept none and defaults to medium, so its real cost per answer will be higher than the token arithmetic below. How many reasoning tokens Sol spends on a typical chatbot turn has not been measured.
What a conversation costs on each model
Per-token prices do not tell an agency what it pays per client. A chatbot re-sends its system prompt and the whole conversation so far on every turn, so input dominates and grows with each exchange. The figures below use three illustrative profiles. A short FAQ bot runs four turns over a 1,500-token system prompt, with 50-token questions and 150-token answers. A knowledge-base bot runs six turns over an 8,000-token prefix of instructions and documents, with 80-token questions and 300-token answers. A high-volume support bot runs eight turns over a 3,000-token prefix, with 60-token questions and 200-token answers. Reasoning is off on Luna and Terra, and Sol's reasoning tokens are left out.
On those assumptions, the FAQ conversation uses 7,400 input and 600 output tokens, the knowledge-base conversation 54,180 and 1,800, and the support conversation 31,760 and 1,600. With prompt caching on, priced conservatively as a fresh 30-minute cache write at the start of every conversation and cached reads on later turns, and with GPT-4o's automatic half-price cache on its later turns, the cost per conversation is:
| Profile | GPT-4o | gpt-6-luna | gpt-6.1-terra |
|---|---|---|---|
| Short FAQ bot | $0.0189 | $0.00067 | $0.0065 |
| Knowledge-base bot | $0.1035 | $0.0029 | $0.0272 |
| High-volume support bot | $0.0692 | $0.0022 | $0.0206 |
Sol, on the same basis, costs $0.0130, $0.0544 and $0.0411. Luna is about 28 to 35 times cheaper than GPT-4o on these profiles, Terra about three to four times cheaper, and Sol only 1.5 to 2 times cheaper before its reasoning tokens.
For a 30-bot portfolio of 20 FAQ bots at 1,000 conversations a month, seven knowledge-base bots at 3,000 and three support bots at 40,000, the monthly token bill is about $10,850 on GPT-4o, $334 on Luna, $3,170 on Terra and $6,340 on Sol. Without caching the figures are $15,160, $631, $6,306 and $12,612. The three support bots account for most of the spend on every model, which is where testing and caching effort should go first.
When a cache write pays back
OpenAI's prompt caching guide says a 30-minute write costs "1.25x the uncached input-token rate" and a 12-hour write 2.5x, and that the write replaces the ordinary input charge rather than adding to it. On Luna a cached read is billed at a tenth of the input rate; on Terra and Sol at a twentieth. The minimum cacheable prefix is 1,024 tokens.
That makes the arithmetic short. A 30-minute write costs a quarter of the prefix's price more than not caching. Each later read within the window saves 90% of the prefix price on Luna and 95% on Terra. One reuse pays for the write. The guide also says a 30-minute read "refreshes coverage to at least 30 minutes after that read," so a bot that receives a request at least every half hour keeps its cache warm all day and pays the write once.
The worry that low-traffic bots pay writes and never get a hit is therefore mostly wrong for chatbots, because the second turn of the same conversation is the reuse. A four-turn FAQ conversation on Luna writes its 1,500-token prefix once and reads it three times. The only case that loses is a bot whose conversations are single questions spaced more than 30 minutes apart: each one pays $0.0001875 for the prefix instead of $0.00015, a loss of a few hundredths of a cent.
The 12-hour write costs 1.5 times the prefix price more than not caching, so it needs two reuses to break even and only beats the 30-minute option when a bot has three or more cold starts within 12 hours, which describes a moderately busy bot with gaps longer than half an hour. These break-even points are calculated from list prices and the documented rules; real hit rates per client have not been measured, and OpenAI may keep entries longer than the minimum, which would only improve them.
The rule for a portfolio follows: turn 30-minute caching on for every multi-turn bot whose static prefix is over 1,024 tokens, use 12-hour writes only for bots with long prefixes and scattered daytime traffic, and leave single-shot widgets uncached. The guide's layout advice matters as much as the setting. Put the persona, policies, client documents and tool definitions first, keep tool order fixed, and append new turns rather than rewriting history. With explicit breakpoints, content after the last breakpoint is billed at the ordinary rate "without a cache-write charge," so a breakpoint at the end of each client's static prefix keeps the variable conversation out of the write bill.
The role of prompt_cache_key has changed. On older models a stable key per client steered requests to a warm cache, and OpenAI suggests about 15 requests per minute per key. On GPT-5.6 and later, the guide says the key "is optional and is not needed to optimize caching on these models," but it still recommends the key for keeping cache accounting separate for customers or users. One key per client is therefore still worth setting, as a bookkeeping tool rather than a performance one, alongside logging each response's cached_tokens and cache_write_tokens against the client it served.
How to test each client before switching
The saving is only margin if the client does not notice a worse bot. The test that answers this is a replay. Take a few hundred recent conversations per client, and for each assistant turn send the real preceding history to Luna and to Terra with the production prompt, then compare the answers with what GPT-4o said. Replay costs are small: 300 support-profile conversations through the Batch API, which OpenAI prices at a "50% cost discount compared to synchronous APIs" with results within 24 hours, cost about $0.60 on Luna and $6 on Terra before grading.
Grading should follow the patterns OpenAI's graders guide describes, built in the agency's own scripts. OpenAI says Evals "will become read-only for existing users on October 31, 2026," with shutdown on November 30, and that it is deprecating graders in that workflow too, so a test harness built on it now would stop working before the migration finishes. Exact-match checks suit facts that must be right: prices, opening hours, policy terms and escalation handoffs. A model grader scoring each answer against GPT-4o's on correctness and tone covers open-ended replies, and a short script can check format, links and length.
Set the pass mark before running, per client. A workable rule is zero failures on the must-be-right facts and no more than a small, agreed drop in the graded score against GPT-4o. Clients that pass on Luna move to Luna. Clients that fail only on certain intents, such as complaints or multi-step troubleshooting, get Luna by default with those intents escalated to Terra. Clients that fail broadly go to Terra. On the portfolio above, sending a tenth of every client's conversations to Terra raises the monthly bill from $334 to about $617, still under 6% of the GPT-4o cost.
The cheaper cuts after the model switch
Batch and Flex do not suit live chat. Batch completes within a day, and OpenAI's Flex guide warns of slower responses and 429 Resource Unavailable errors. Both fit the agency's background work at half price: transcript summaries, intent tagging, monthly client reports and the replay tests themselves.
Output tokens cost five times input on Luna, Terra and GPT-4o, so short answers are the next lever. A max_output_tokens cap needs care: OpenAI's reasoning guide warns it covers reasoning as well as visible text, and a capped response can end "before any visible output tokens are produced." With reasoning off, a modest cap and an instruction to answer briefly do the job. Trimming system prompts and retrieving only relevant document chunks shrinks the input that every turn repeats, which on the knowledge-base profile is most of the bill.
Repricing clients when costs fall
A cost that falls more than 20 times changes the agency's pricing more than its engineering. Take one support client at 40,000 conversations a month. Its token cost is about $2,766 on GPT-4o with caching and about $160 on Luna with a tenth escalated to Terra.
Under cost-plus pass-through at a 30% markup, the agency's token margin on that client falls from about $830 to $48 a month: the client keeps the whole saving. Under a $4,500 monthly retainer with a 50,000-conversation cap, margin rises from $1,734 to $4,340, but the client is paying for a cost the agency no longer bears and may ask. Under per-conversation pricing at $0.10, margin is $1,234; cutting the price to $0.06 gives the client a 40% reduction and lifts the agency's margin to $2,240. These figures leave out labour, hosting and support, which do not fall with token prices.
Per-conversation pricing is the most defensible of the three. It ties revenue to the thing the client values, survives the next price change in either direction, and lets the agency share a visible saving while keeping most of it.
When the cheapest tier isn't the answer
For most bots Luna's bill is so small that further optimisation is not worth an engineer's week. The exception is a high-volume client whose bot fails Luna's tests and has to run on Terra or Sol, or whose prompts stay long. That client's bill stays in the thousands, and a smaller model trained on its own transcripts becomes worth considering. Parsec sells this: models post-trained on a customer's traffic, served on a shared cluster, with uncertain requests sent to a frontier model. Its routers page claims "savings on real workloads: 60%" against "typical router savings" of 15%, but defines no workload or baseline, and Parsec publishes no price for the service. It is a step to consider after the January migration, not a way to meet the deadline, and it is not worth it for a client already passing on Luna.
Bottom line
Every agency on GPT-4o has to change model IDs by January 14, 2027. Replay a few hundred conversations per client through Luna and Terra this month and set pass marks before you look at results. Move passing clients to Luna with reasoning off, escalate the intents that fail to Terra, and keep Sol for the rare client that needs it. Turn on 30-minute caching for every multi-turn bot with a prefix over 1,024 tokens, move reports and tests to Batch, and move clients to per-conversation pricing that shares part of the saving rather than passing all of it through.
Sources
- OpenAI, Deprecations: https://developers.openai.com/api/docs/deprecations
- OpenAI, API pricing: https://developers.openai.com/api/docs/pricing
- OpenAI, Prompt caching guide: https://developers.openai.com/api/docs/guides/prompt-caching
- OpenAI, GPT-6 Luna model page: https://developers.openai.com/api/docs/models/gpt-6-luna
- OpenAI, GPT-6.1 Terra model page: https://developers.openai.com/api/docs/models/gpt-6.1-terra
- OpenAI, GPT-6.1 Sol model page: https://developers.openai.com/api/docs/models/gpt-6.1-sol
- OpenAI, Reasoning guide: https://developers.openai.com/api/docs/guides/reasoning
- OpenAI, Batch API guide: https://developers.openai.com/api/docs/guides/batch
- OpenAI, Flex processing guide: https://developers.openai.com/api/docs/guides/flex-processing
- OpenAI, Evals guide: https://developers.openai.com/api/docs/guides/evals
- OpenAI, Graders guide: https://developers.openai.com/api/docs/guides/graders
- OpenAI Help, Retiring GPT-4o and other ChatGPT models: https://help.openai.com/en/articles/20001051-retiring-gpt-4o-and-other-chatgpt-models
- Parsec vs routers: https://parseclab.ai/compare/routers/
- Parsec vs your own GPUs: https://parseclab.ai/compare/own-gpus/
- Parsec, Inference: https://parseclab.ai/inference/