Cumulative cost — prompting vs fine-tuning
Total spend after N requests, training and hosting included. The crossover is where fine-tuning takes the lead.
| Requests | Prompting total | Fine-tune total | Cheaper |
|---|
The real trade-off: pay per call, or pay once
Getting a model to behave on a narrow task usually starts with prompting — you stuff the instructions, a few worked examples and maybe a style guide into the prompt, and send that preamble on every request. It works, but you rent it forever: those few-shot tokens are billed at the input rate on call one and call ten million. Fine-tuning offers the other deal. You bake the behaviour into the weights once, for a fixed training cost, and then send only the actual task — the long preamble disappears from every future call. The catch is that a custom model often bills at a premium per token, and some providers charge to host it, so the shorter prompt isn't pure profit.
That sets up a classic break-even. Prompting has near-zero upfront cost but a higher cost per call; fine-tuning has a real upfront cost but a lower cost per call. Plot both as cumulative spend and they cross at a specific request count — below it, prompting is cheaper; above it, the fine-tune pulls ahead and never looks back. This calculator finds that crossover from your numbers: the tokens you'd save per call, the training cost, any inference premium and hosting. Enter them and it tells you how many requests you need before fine-tuning is the cheaper machine — and how many months that is at your current volume.
How to use it
1. Pick a base model (this sets input, output and training rates) and your monthly request volume.
2. Enter the task input tokens both approaches send, and separately the few-shot / instruction tokens that fine-tuning lets you drop.
3. Add output tokens, any fine-tuned inference premium, your training-token count (dataset size × epochs) and optional hosting.
4. Read the break-even request count and the monthly cost of each path, then scan the table for the crossover point.
When the number lies to you
Pure cost is only half the decision. Fine-tuning can raise quality and consistency on a specialised task, and by shortening the prompt it also cuts latency — a shorter input is a faster first token. Those benefits can justify fine-tuning well before the cost break-even, especially in latency-sensitive or high-quality-bar products. Conversely, if your task keeps changing, the training cost recurs every time you retrain, which pushes the break-even further out than a single upfront number suggests. Use this tool for the money question, then weigh quality, latency and how often you'll retrain on top. If you're only trying to shrink prompts, the prompt caching calculator is the cheaper first experiment — caching a fixed prefix gets much of the saving with none of the training cost.
Common mistakes
Ignoring the inference premium. If the fine-tuned model costs more per token, the shorter prompt saves less than it looks — the break-even moves out. Forgetting retraining. Every time the task drifts and you retrain, you pay the upfront cost again; a model that never stabilises may never break even. Overstating the tokens saved. Be honest about how much preamble fine-tuning actually removes — if you still need most of the context, the saving is small. Skipping the free win first. Prompt caching often captures much of the same saving with zero training cost; try it before committing to a fine-tune.
FAQ
What counts as "training tokens"?
Roughly your dataset size in tokens multiplied by the number of epochs. A 500k-token dataset trained for 4 epochs is about 2M training tokens, billed at the provider's training rate.
Why does fine-tuning save money at all if inference costs more?
Because it removes the long few-shot prompt from every call. Even at a per-token premium, dropping 1,000+ input tokens per request adds up fast at scale — enough to overtake the training cost past the break-even.
How do I estimate the few-shot tokens I'd save?
Count the instruction block and examples you currently prepend to each prompt that a fine-tuned model would no longer need. That's the number to put in the "tokens saved" field — the task input itself stays in both paths.
Should I fine-tune just for cost?
Only above your break-even volume. Below it, a good prompt or prompt caching is cheaper. Fine-tune for quality, consistency or latency — and let the cost break-even tell you whether it's also a saving.
Estimate only. Fine-tuning prices, premiums and hosting fees vary by provider and change — verify before budgeting.