Fine-tuning GPT-4o mini used to be one of the most effective ways to get a cheap model to behave like an expensive one on a narrow task. In 2026 the picture has changed: OpenAI says it is winding down its fine-tuning platform, and the platform is no longer accessible to new users. Existing users can still create training jobs for the coming months, and fine-tuned models keep working until their base models are deprecated. This guide explains how fine-tuning works for those who still have access, what good training data looks like, and what to do instead if you are starting fresh.
Availability note: OpenAI’s documentation describes the fine-tuning platform as being wound down and closed to new users. Before you plan around it, check OpenAI’s fine-tuning guide and deprecations page, and confirm that your account can still create jobs.
What Fine-Tuning Is Good For
Fine-tuning adjusts a model’s behaviour by training it on examples of the inputs you give it and the outputs you want back. It is strong at teaching consistent format, tone, and decision rules: classification into your own categories, extracting fields in a fixed structure, writing in a house style, or fixing a stubborn instruction the model keeps ignoring. It is a poor way to teach new facts. If the model needs to know your product catalogue, policies, or recent events, retrieval is the right tool, because facts baked into weights go stale and cannot be cited. A useful rule is that fine-tuning changes how the model responds, while retrieval changes what it knows.
Figure 1 — Prompting vs retrieval vs fine-tuning
Start with Evaluations, Not Training
OpenAI’s own guidance is to set up evaluations before fine-tuning, and it is the most important advice in this article. You need a reliable way to tell whether a tuned model is better than the base model, otherwise you are guessing. Build a test set of real inputs with known good outputs, score the base model on it, and improve your prompt as far as it will go. Many projects discover at this stage that a clearer prompt, a few examples in the prompt, or structured outputs close the gap entirely. Only if a measurable gap remains does fine-tuning make sense.
Building the Training Dataset
Training data is a JSONL file with one complete JSON object per line, each containing a messages array in the same chat format you use at inference: an optional system message, a user message, and the assistant reply you want. OpenAI’s documentation gives a small minimum of 10 examples, notes that improvements often appear at 50 to 100, and recommends starting with around 50 carefully written demonstrations and checking the effect before adding more. If 50 good examples change nothing, rethink the task or prompt before collecting more data.
Quality matters far more than volume. Include the same instructions you use in production at the start of every example, especially with small datasets, because shortening them to save tokens means the model has to learn the behaviour purely from demonstration. Make every training example match the format you will use at inference. Keep the distribution realistic: if most of your examples teach the model to refuse but only a few percent of real requests should be refused, you will get a model that refuses too often. Make sure each answer contains only information that is actually present in the input, or the model may learn to invent details. If several people wrote the examples, measure how much they agree, because model performance is usually capped by the consistency of the humans who labelled the data.
Respect the token limits. For GPT-4o mini, each training example can be about 65,000 tokens long even though the model accepts 128,000 at inference, and longer examples are truncated from the end. For multi-turn conversations, put several user and assistant messages in the same example and use the optional weight field, set to 0 or 1, to control which assistant messages the model should learn from.
Running a Job and Reading the Results
Hold back a portion of your data as a test file and upload both. OpenAI reports statistics on both during training, which shows whether the model is improving or just memorising. Create the job against the base model snapshot, and begin without setting any hyperparameters so that the platform chooses sensible defaults for your dataset size. Then adjust only if you see a specific problem. If the model does not follow the training data closely enough, particularly on tasks with one right answer such as classification or extraction, add one or two epochs. If outputs become too uniform on tasks with many acceptable answers, reduce the epochs. If training does not seem to converge, raise the learning rate multiplier. When the job finishes, run your evaluation set against both the tuned model and the base model with the same prompt, and keep the tuned model only if the improvement justifies its cost.
Thinking About Cost
Fine-tuning has two cost components. Training is billed by the number of tokens in your dataset multiplied by the number of epochs, which is a one-time cost for each run. Inference on a tuned model is typically priced differently from the base model, so check the current pricing page rather than assuming a saving. The economic case is strongest when a tuned small model can replace a prompt that needed a much larger model plus long few-shot examples, because you then pay less per request and send shorter prompts. OpenAI’s own model-selection guide shows an older example where a tuned mini model matched a larger model’s few-shot accuracy at a small fraction of the cost, though that experiment used earlier models and your results will differ.
What to Do If You Cannot Fine-Tune on OpenAI
If your account no longer has access, you still have good options. First, invest in the prompt: write precise instructions, add three to ten well-chosen examples, and use structured outputs to lock the format. This closes most gaps for classification and extraction. Second, use retrieval for anything that depends on knowledge. Third, route work by difficulty, sending easy requests to a cheap current mini or nano model and only hard ones to a larger model, and use batch and caching discounts to lower the bill. Fourth, check whether another provider or cloud platform you use still offers fine-tuning for the model family you need, since availability differs.
The Open-Weight Route
For teams that genuinely need a customised model, the most durable path is to fine-tune an open-weight model that you control. Generate or collect your training examples, using a strong model to draft outputs that your team reviews, then train a small open model such as a Qwen, Llama, or Phi variant with a parameter-efficient method like LoRA or QLoRA. Tools such as Unsloth, Axolotl, and the Hugging Face TRL library make this practical on a single GPU for models in the 1B to 8B range. You can then convert the result to a quantised format and serve it locally with Ollama or llama.cpp, which removes per-token fees and keeps your data on your own hardware. The trade-off is that you own the training, evaluation, and hosting work that a managed service used to hide, so start with a narrow task and a clear evaluation set.
Common Mistakes
- Fine-tuning to add knowledge. Use retrieval for facts instead.
- Skipping the baseline. Without an evaluation of the untuned model, you cannot prove the tuning helped.
- Too little consistency. Conflicting labels teach the model to be inconsistent.
- Training on a different format than production. The tuned model will behave unpredictably if inputs differ.
- Jumping to thousands of examples. Start with about fifty good ones and measure.
- Ignoring availability. Confirm the platform and base model are still supported before committing.
Frequently Asked Questions
- Can I still fine-tune GPT-4o mini?
- Only if your account already had access to the fine-tuning platform. OpenAI says the platform is closed to new users and being wound down, with existing users able to create jobs for a limited time. Check the official guide for the latest status.
- What happens to my existing fine-tuned models?
- OpenAI says fine-tuned models remain available for inference until their base models are deprecated. Plan a migration before that date, because you will need to retrain or replace them.
- How many examples do I need?
- The minimum is 10, improvements often show at 50 to 100, and many tasks benefit from more. Start with about 50 high-quality examples and measure before scaling up.
- Is fine-tuning better than RAG?
- They solve different problems. Fine-tuning changes behaviour and format; retrieval supplies up-to-date knowledge. Many production systems use retrieval with a well-prompted base model and add fine-tuning only for a stable style or format need.
Last updated: November 2026. Availability, model names, and pricing change frequently, so confirm details on OpenAI’s fine-tuning and deprecations pages.