esc
  • WorkflowsPages
  • Case studiesPages
  • Machine Learning FoundationsLearn
  • AI EngineeringLearn
  • AI Guardrails & Red TeamingLearn
  • UI/UXLearn
  • Design SystemsLearn
  • Production System DesignLearn
  • AI papersPages
  • Interview KitPages
  • Book a callContact
Letโ€™s talk

Iโ€™ll build the agent for it.

Hosted Fine-Tuning API vs Self-Hosted Training

When to upload your examples to a vendor's fine-tuning API, and when to train a model on your own GPUs, explained for your AI interview.

In short

A hosted fine-tuning API has the vendor train a copy of its model on your examples, and you call it through the vendor's service. Self-hosted training runs on your own GPUs, so your data and model files stay with you, but you carry the setup and the cost.

11 min readIntermediateOccasional ยท estimateFacts checked 27 November 2026

Say it out loud

Read it once, then say it without looking. Start with the short one; use the long one when they ask you to go deeper.

There are two ways to train a model on my own examples. The hosted way uploads them to a vendor, which trains a copy and gives me an ID to call. It is quick, but my data leaves my servers and the vendor sets the rules. Self-hosted training runs on my own GPUs, so the data and the trained files stay with us. It takes more setup. OpenAI is also closing its fine-tuning platform to new users, so for a new project I'd first check whether that route is open to me at all, then choose by data sensitivity and risk.

What are the two routes, in plain words?

Fine-tuning means training an existing AI model a little more on your own examples, so it picks up your style, format or task. The real question is who runs that training.

Think of a hospital that wants its discharge notes in its own house style. It can send the job to an outside transcription firm, or train its own staff. The firm starts fast, but the notes leave the building. Training in-house takes longer to set up, and the records never leave.

The AI version: a claims team at a mid-size insurer wants summaries in its house format, built from 6,000 past cases. Those cases hold customer names and policy numbers. Whether the team can upload them decides the route.

Key words

Hosted API
A vendor's service that runs the training on its own machines and keeps the trained model on its side.
GPU
A graphics chip that does the heavy maths of training. You rent one by the hour or buy your own.
LoRA adapter
A small add-on trained instead of the whole model, so it needs far less compute and storage.
Evals
A fixed set of test cases, with the right answers, used to check whether a model is better.

How does the hosted route work, and what does it cost you?

The same examples, two routes

Your examples

same file for either route

Hosted API

Upload examples

the file leaves your servers

Vendor trains

runs on the vendor's hardware

Self-hosted

Your GPUs train

the file stays on your servers

Files you keep

you host and serve them

A model ID

you call it through the vendor

Your own model

you control where it runs

  1. 1The hosted route starts by sending your examples to a vendor.
  2. 2The self-hosted route starts with the same examples, kept on your own machines.
  3. 3The uploaded file goes into the vendor's training job.
  4. 4You get back a model ID, and you call it through the vendor's service.
  5. 5Your own GPUs run the training.
  6. 6You keep the trained files and serve them yourself.
The same examples can take either route. The hosted route sends them to a vendor, which trains a copy and gives back a model ID. The self-hosted route trains on your own GPUs, and you keep the files.

The hosted route means less setup for you. The vendor's hardware does the training, and OpenAI's guide breaks the job into four parts.

  1. 1

    Build the examples

    Collect real inputs and the reply you want for each. OpenAI suggests starting with 50 well-crafted examples and checking the results.

  2. 2

    Upload the file

    Send the examples to the vendor as a file, marked for fine-tuning.

  3. 3

    Start the job

    Pick a base model and the training method. The vendor trains a copy of it on your file.

  4. 4

    Test the model ID

    The finished job gives you a model ID. You call that ID through the vendor's service, then test it against your evals.

The trade-off is control. Your examples leave your servers, and the vendor's terms decide how long they are kept and what they can be used for. Two official lines show the range: OpenAI says its fine-tuning platform is closing, and Google says it won't use your data to train models without permission:

  • โ€œOpenAI is winding down the fine-tuning platform. The platform is no longer accessible to new users.โ€

    OpenAI

  • โ€œGoogle won't use your data to train or fine-tune any AI/ML models without your prior permission or instruction.โ€

    Google Cloud

The timetable is the vendor's too. OpenAI's deprecations page says that from 15 December 2026 no organisation can create new self-serve fine-tuning jobs. It already blocks organisations that have never run a fine-tuning job (from 7 May 2026) and those that have not run inference on a fine-tuned model in 60 days (from 2 July 2026). A model that already exists can keep serving until its base model is retired, so a finished model may outlast the service that trained it.

Hosted services bill by usage. Amazon Bedrock, for example, charges for training by the tokens processed, plus storage for the trained model.

What does self-hosted training involve?

Self-hosting means you own every step. You pick an open model, get GPUs, write the training script, store the trained files, and serve the result. Most teams start from open-source libraries that do the heavy lifting.

Hugging Face's PEFT library is built for the small add-on approach. It says its methods train only a small number of extra model parameters, which cuts computational and storage costs while staying close to a full fine-tune. Its sibling library, TRL, supports a supervised fine-tuning trainer for language models.

Google's tuning guide makes the same trade. Parameter-efficient tuning is more resource efficient and cost effective, and it adapts faster on a smaller dataset. Full fine-tuning can reach higher quality, but it needs more compute to train and to serve.

Tip

In an interview, name the hidden cost. Google's guide says full fine-tuning needs more computing power for both tuning and serving, so overall costs rise. Count serving in your estimate, not just training.

A worked example, with made-up numbers. The insurer's team strips names and policy numbers from the 6,000 cases first. It trains a LoRA adapter on a rented GPU inside its own cloud account. It holds back 200 cases to test the result against the base model. The training itself takes an afternoon. The real work is the redaction, the test set and the monthly bill for the server that keeps the model running.

  • GPUs

    Rented by the hour, or owned.

  • Storage

    For the training files and the trained weights.

  • Engineers

    For setup, checks and upgrades.

  • A server

    That keeps the model running for users.

  • Rework

    Part of the work again when the base model changes.

Which route should you pick?

Ask three questions first: what is in the examples, how fast do you need a first test, and how long must the product run? Then use this rough guide.

  • Sensitive data

    Self-host

    Records stay inside your own cloud account, and your team controls the files.

  • Quick first test

    Hosted, only if you already have access

    OpenAI no longer accepts new users for fine-tuning, so check your access first. If you have it, send only public, non-sensitive examples.

  • Long-running product

    Plan for a switch

    A vendor can retire a model or close its service. Keep your data and your evals so you can move.

Whatever you pick, start with evals and prompting. OpenAI puts it bluntly: "Good evals first!" Google's guide adds that more examples can help, but first check where the model makes mistakes.

How would you choose for a bank's complaint letters?

A bank wants a model to draft replies to complaint letters. Each letter holds account details, and the bank's policy says customer data stays in its own cloud account.

  • Hosted API

    Blocked by policy

    The letters would go to a third-party vendor's API, which the policy rules out before any terms are read.

  • Self-hosted

    Fits the policy

    Training runs in the bank's account, with 300 past replies held back as the test set.

My answer: self-host. Then I say what it costs in machines and people, and show that the tuned model beats prompting on the same test set.

What does the interviewer want to hear?

A strong answer covers

  • Two routes: the vendor trains your examples, or you train on your own GPUs.
  • The trade-off: speed and ease against control of data and the model.
  • What leaves your servers on the hosted route, and what you check first.
  • Honest cost: GPUs, setup and upkeep, and why small add-ons like LoRA help.
  • Vendor risk: services change, and OpenAI is closing self-serve fine-tuning.
  • Evals first, then the route that fits the data and the risk.

Common traps

  • Trap"Hosted is always the cheap option."

    BetterNot always. Add up the training bill, storage and your team's time, then compare the total.

  • Trap"The vendor keeps my data private, so it's safe."

    BetterCheck the terms first: how long data is kept, whether it trains anything, and where it is stored.

  • Trap"Self-hosting is free because the model is open."

    BetterThe model file is free. The GPUs, storage, engineers and upkeep cost money.

Can you spot the risk?

Spot the risk

A team plans its first tuning run this week. Which line is the risk?

Quick check

A bank wants a model for complaint replies. Customer data must stay in the bank's own cloud account. Which route fits?

Can you answer these from memory?

Flash cards ยท tap a card to flip it

1 / 6

What will they ask next?

  1. Q281Fine-tune vs RAG vs prompting: when to use which?10 min
  2. Q284What is LoRA?10 min
  3. Q285What is QLoRA?10 min
  4. Q303How do you serve many LoRA adapters?11 min
  5. Q308Fine-tuning cost vs inference savings?11 min
  6. Q309Can fine-tuning weaken safety behaviour?12 min

Learn it in depth

Last updated on 27 November 2026

Choosing between a vendor's tuning service and your own training?

I design and build AI products and agents, including the interface and the system behind them. Book a short call and tell me what your data and timeline look like.