LIVE · Thursday 3 December

How to Replace GPT-4o With a Cheaper Model Without Losing Quality: Evals First, Then Swap, Route or Distill

GPT-4o leaves OpenAI's API on January 14, 2027. GPT-6 Luna costs a twentieth as much, but whether it holds quality is a per-task question that only an eval on your own traffic can answer.

By Nick9 min read

To replace GPT-4o with a cheaper model without losing quality, build an eval set from your own production prompts, save GPT-4o's answers as references while it still runs, and switch each task only when a candidate passes a threshold you fixed in advance. OpenAI's deprecations page removes the dated gpt-4o and gpt-4o-mini snapshots, and every fine-tune built on them, on January 14, 2027, and names gpt-6-luna as the replacement; at list price it is 25 times cheaper on input and 20 times cheaper on output. For tasks where Luna falls short, routing hard queries to a stronger model or distilling onto a smaller model you own can close the gap, but distilling into a GPT-4o-family student is no longer an option.

What is going away, and when

OpenAI's deprecations page, in a notice dated October 14, 2026, lists gpt-4o-2024-08-06, gpt-4o-2024-11-20 and gpt-4o-mini-2024-07-18 for shutdown on January 14, 2027, alongside GPT-4.1 and GPT-4.1 mini. All five have the same recommended replacement, gpt-6-luna. The page adds that "fine-tuned versions of the models listed above follow the same shutdown schedule as their underlying base models," so a custom GPT-4o model stops answering on the same day as the base.

Voice products run on a separate clock. The realtime and audio versions of GPT-4o shut down on January 20, 2027, with gpt-realtime-2.1, gpt-realtime-2.1-mini and gpt-audio-1.5 as replacements, and the GPT-4o transcription models follow on February 26, 2027.

What the cheaper candidates cost

OpenAI's pricing page, read on November 17, 2026, sets the gap. All figures are per million tokens.

Model Input Cached input Output
gpt-4o $2.50 $1.25 $10.00
gpt-6-luna $0.10 $0.01 $0.50
gpt-5-mini $0.25 $0.025 $2.00
gpt-5-nano $0.05 $0.005 $0.40
deepseek-flash (peak) $0.30 $0.006 $1.20

OpenAI's batch tier halves its own rates: Luna drops to $0.05 input and $0.25 output, GPT-4o to $1.25 and $5.00. DeepSeek's pricing page charges half its peak rates outside 01:00 to 04:00 and 06:00 to 10:00 UTC on weekdays, and Together's pricing page lists OpenAI's open-weight gpt-oss-120B on its serverless tier at $0.15 input and $0.60 output. GPT-4o mini, at $0.15 and $0.60, looks cheap but is on the same January 14 list, so moving to it buys eight weeks.

Luna's model page describes it as "our most efficient model for focused, high-volume tasks." It supports structured outputs, function calling, prompt caching and the Batch API. Two details matter for a migration: reasoning is on by default at medium effort, and on Chat Completions function calling only works with reasoning_effort set to none. A prompt that ran unchanged on GPT-4o may therefore need its parameters changed as well as its model name.

Why price comparisons don't answer the quality question

A cheaper model either does a specific task as well as GPT-4o or it doesn't, and public benchmarks don't tell you which. The only measurement that answers it is one taken on your traffic, against GPT-4o's own outputs, before those outputs can no longer be generated.

That last constraint is why the eval has to come first. After January 14 there is no reference model to compare against. OpenAI's distillation guide notes that the Responses API "stores model responses for 30 days by default," so anything you have not saved yourself will age out. And the tooling many teams would reach for is itself closing: the deprecations page lists OpenAI's Evals dashboard, API and graders as read-only, with a shutdown date of November 30, 2026, and recommends migrating to Promptfoo.

How to build the eval

OpenAI's evaluation best-practices guide gives the core of the method: "Log everything... so you can mine your logs for good eval cases," and "ensure your test data includes typical cases, edge cases, and adversarial cases." A workable protocol looks like this.

  1. Sample 100 to 300 real prompts per task from production logs. Over-sample the hard ones: long inputs, malformed data, other languages, requests that failed or timed out.
  2. Run GPT-4o on every prompt and store the outputs in your own storage, not on OpenAI's platform.
  3. Run each candidate on the same prompts with the same settings it would use in production.
  4. Score structured output mechanically: schema validity, exact match on extracted fields, label agreement. Score free-form output with pairwise comparison against the GPT-4o reference.
  5. Write down the pass mark for each task before you see any results.

Sample size sets how fine a distinction you can trust. On a pass rate near 95 percent, the 95 percent confidence margin is about 4.3 points at 100 samples, 3 points at 200 and 2.5 points at 300. A task where a two-point regression matters needs the larger sample.

The judge for free-form tasks should not be GPT-4o. The paper that introduced MT-Bench, by Zheng and colleagues in 2023, documents a self-enhancement bias in LLM judges alongside position and verbosity bias, and OpenAI's guide warns about the last two. A judge rating its own outputs against a rival's has a thumb on the scale, and GPT-4o will not exist to re-judge anything next year anyway. Use a stronger model that will remain available, randomise answer order, control for length, and check a sample of the judge's verdicts against human reviewers, which OpenAI's guide also recommends.

Thresholds should follow how costly a mistake is: the strictest bar for safety-critical extraction, a high one for customer-facing replies, and lower ones for internal tools and background jobs. The exact numbers are your call; the point of fixing them in advance is that once the savings are visible, every regression starts to look acceptable.

The four ways to close a gap

When a candidate passes, the swap is done: change the model name and move on. When it fails, there are three further options, in rising order of effort.

Routing sends easy queries to the cheap model and hard ones to a strong one. RouteLLM, the open-source framework from the LMSYS team, reported in July 2024 cutting cost by "over 85% on MT Bench, 45% on MMLU, and 35% on GSM8K" against GPT-4 alone while keeping 95 percent of its performance. Those figures come from a GPT-4 Turbo and Mixtral 8x7B pair. The paper reports that its routers transferred to Claude 3 and Llama 3.1 pairs without retraining, but the repo's README still advises calibrating the routing threshold on queries that resemble your own traffic. Savings depend on how much of your traffic is genuinely easy, and that has to be measured on your eval set.

Distillation fine-tunes a smaller model on a larger model's answers. OpenAI's distillation guide describes the workflow, and says it "can enable you to train a small model to perform similarly on a specific task to a larger, more costly model." Inside OpenAI this route is closing. Its fine-tuning guide says "OpenAI is winding down the fine-tuning platform," lists only the three GPT-4.1 models as fine-tunable bases, all of them shutting down by January 14, and gives January 6, 2027 as the last day existing customers can create jobs. Luna's model page lists fine-tuning as unsupported. A GPT-4o-family student would die with its base model on the same date.

Outside OpenAI, distillation means training an open-weight model you can take with you. Together's docs let you download a merged file that "combines the base model and adapter into self-contained weights," and Fireworks documents firectl model download. Base models such as gpt-oss-20b are Apache 2.0, according to its Hugging Face card. The catch is the training data. OpenAI's Services Agreement, in the version labelled v.010126, says customers will not, "except for a Permitted Exception, use Output to develop artificial intelligence models that compete with OpenAI's products and services," and the exceptions cover undistributed classifiers and fine-tuning on OpenAI's own services. Whether a narrow in-house model counts as competing is unsettled. Training on your own labelled examples and corrected answers avoids the question; training on GPT-4o's outputs needs a lawyer's reading of your agreement.

Continuous post-training extends distillation into a loop: trace production requests, build datasets, retrain, redeploy. Parsec, a small language model lab, offers this as a managed service. Its inference page describes a loop of tracing, dataset building, customer-approved evals, SFT or LoRA training and serving, sends requests its model is not confident about to a closed frontier model, and says "Weights: Yours. Download them." Its comparison page against routers claims "savings on real workloads" of 60 percent and a typical quality increase of 5 to 15 percent, but defines neither the workloads nor the baseline. It publishes no price, and its only code example uses the Anthropic SDK rather than OpenAI's.

Which path fits which task

Task type How to score it What to try first
Extraction, classification Schema validity, field or label match Direct swap to Luna or gpt-5-nano
Support replies Pairwise judge plus human spot checks Swap; route if hard cases fail
Code Tests that run Swap to a stronger model, or route
Creative writing Pairwise judge, human review Swap with prompt tuning; keep a strong fallback
Voice Task success, latency Move to the named realtime or audio successor

These are starting points to test, not results. Structured tasks are the easiest to score and the likeliest to tolerate a small model, so they are where a direct swap should be tried first. Tasks graded on taste or correctness under strict tests are where routing or a stronger model earns its cost. Distillation and continuous post-training make sense for high-volume, narrow tasks where the eval shows a persistent gap and the volume justifies a dedicated model.

What nobody has published is a like-for-like measurement of these four paths across several real workloads, with sample sizes, a non-GPT-4o judge, cost per 1,000 requests and latency disclosed. Parsec's figures do not meet that bar, and the RouteLLM numbers predate every model in this table.

What the paths cost

Take a task with 1,500 input and 400 output tokens per request. At list price, 1,000 requests cost $7.75 on GPT-4o and $0.35 on Luna, before any extra tokens Luna's default reasoning adds. Caching 1,000 of the input tokens brings Luna to about $0.26, excluding the one-off cache-write charge, and the batch tier halves the uncached figure to $0.175. Routing 20 percent of requests to gpt-6-sol, at $2 input and $10 output, and the rest to Luna costs $1.68 per 1,000.

An owned model has a fixed cost instead. One Together H100 dedicated replica at $5.49 an hour is $3,952.80 for a 30-day month, billed "even when idle," according to Together's docs. That equals GPT-4o's list cost at about 510,000 requests a month but Luna's only at about 11.3 million. Training is small by comparison: 5,000 examples of 1,900 tokens over three epochs is 28.5 million tokens, or $11.40 on gpt-oss-20B at Together's $0.40 rate. Whether one GPU carries a given workload has not been measured.

Rolling it out

Make the model name and base_url configuration, not code; DeepSeek's API, for instance, accepts the OpenAI SDK pointed at https://api.deepseek.com, and RouteLLM ships an OpenAI-compatible server. Run the chosen model in shadow on live traffic and compare online metrics against GPT-4o side by side. Cut over task by task, keep GPT-4o as the fallback until January 14, and keep the eval set and references: they make the next forced migration a re-run rather than a rebuild.

Bottom line

Save GPT-4o's answers now and test gpt-6-luna first; for most structured tasks a passing eval ends the job. If Luna misses on a minority of hard requests, route those to a stronger model. If a high-volume task misses consistently, distil onto an open-weight model whose weights you can download, trained on data your agreement clearly allows. Do not fine-tune anything in the GPT-4o or GPT-4.1 families: it shuts down with its base.

Sources

More in Models

All Models →