Use cases · Software companies

Cut the Cost of an AI Feature You Already Run on a Closed Model

A software company moves a working AI feature off a closed model API, tests open models on its own traffic, and keeps the cheapest one that passes.

The problem

A team shipped an AI feature on a closed model API, such as ticket summaries, document extraction or drafted replies. It works, but the bill grows with usage, the price is the provider’s to set, and every prompt leaves the company’s environment.

Start with a test set

Most migrations fail on quality problems nobody measured. Sample real requests across customers and request types, including the hard cases, and decide how each response is scored: exact match for extraction, the right label for classification, a rubric for summaries. The current closed model’s score on that set is the bar.

Try large open models first

Run the test set against two or three large open models on serverless endpoints, with the instructions the feature uses today. For many extraction, classification and summarization features, one passes. If it does at a lower cost, switch.

Fine-tune when volume justifies it

A small model fine-tuned with LoRA on one narrow task can match a large general model on that task, at a lower cost per request. Train it on your own inputs with labels from people, or responses that passed review. Some providers' terms restrict training on their outputs, so check before using logged responses.

Price the whole request

Input, cached input and output tokens are priced differently, and open models split text into tokens differently, so measure tokens per request for each option instead of comparing list prices. Serverless suits low or uneven traffic. A dedicated endpoint suits steady volume, and its latency does not depend on anyone else’s traffic.

What to expect

The first result is a table of each candidate’s pass rate, cost per thousand requests and latency at the 95th percentile. Pick the cheapest that passes, move traffic in steps with the closed model as a fallback, and keep the weekly test run going after the switch.

What it takes on Saturn Cloud

Test on serverless, tune if needed, serve on dedicated

Saturn Cloud endpoints use the standard inference API format. A feature that already calls a model in that format changes its base URL and model name, not its code.

  1. Build the test set

    Workspace and job

    An engineer samples a few thousand real requests from production logs and removes personal data before scoring.

  2. Try large open models first

    Serverless endpoint

    The comparison runs on serverless endpoints, billed per token, so testing costs only what it uses.

  3. Fine-tune a small model

    Fine-tuning job

    A LoRA job on your own labeled examples. You set the learning rate, epochs, batch size and LoRA rank, and pick the GPU.

  4. Serve and shift traffic

    Dedicated endpoint

    The chosen model runs on a dedicated endpoint sized for your traffic. Send it a small share of requests first, then more, comparing quality and errors at each step.

  5. Keep checking

    Scheduled job

    A scheduled job re-runs the test set against the live endpoint every week and samples new production traffic for grading, so a drop in quality shows up before customers report it.

What to measure

Compare cost only between models that pass

Pass rate on your test set

The share of real requests where the new model’s answer meets your scoring rule, against the closed model’s score on the same set.

Cost per thousand requests

Tokens per request times each option’s price, or the dedicated endpoint’s GPU cost divided by the requests it served, at your real volume.

Latency at the 95th percentile

Measured from your application, under real load. A cheaper model that is slow at peak can cost more than it saves.

Errors after each traffic step

Malformed outputs, refusals and user reports, compared with the closed model over the same period.

Tell us about the problem

We’ll recommend an approach, the open models to start with and what it takes to run it on Saturn Cloud.