🎯 Fine-tuning Cost Estimator

Estimate the one-time cost to fine-tune a model on your dataset, roughly how long training will take, and how much more it will cost to run every month afterward.

🎯 Training Setup
Auto-fills the token field below using ~250 tokens per KB of plain text. Leave blank to enter tokens directly.
Post-Fine-tune Inference Cost
Fine-tuned inference commonly costs ~2x the base model's per-token price.
📈 Fine-tuning Cost Estimate
Total Training Cost
Estimated Training Time
Base Monthly Inference Cost
Fine-tuned Monthly Cost
Monthly Cost Increase

📋 Training Cost by Option (same dataset)

Training Cost by Option
Monthly Inference: Base vs Fine-tuned
⚠️ Training cost for hosted providers assumes billing per training token per epoch; open-source LoRA cost reflects your entered GPU hours × rate. Training time assumes a rough ~2,000 tokens/second processing throughput — an approximation, not a guaranteed figure. Inference price multiplier and base prices are user-entered estimates; verify against your provider's published fine-tuning terms.
📊

Enter your details and click Calculate to see results

Guide

About the Fine-tuning Cost Estimator

Fine-tuning lets you bake task-specific behavior, tone, or formatting into a model's weights instead of re-explaining it in every prompt, but it comes with two separate cost components that are easy to underestimate: a one-time training cost to run your dataset through the fine-tuning process, and an ongoing inference cost premium every time you call the resulting model, since fine-tuned models are typically priced higher per token than the base model. This estimator covers both hosted, per-token-billed fine-tuning (like OpenAI's GPT-4o mini and GPT-4.1 mini fine-tuning) and open-source LoRA training on rented GPUs, which is billed by GPU-hour instead.

How It Works

For hosted fine-tuning, the calculator multiplies your training dataset's token count by the number of epochs (passes over the data) and by the provider's per-million-token training price to get total training cost, and estimates training time using a rough 2,000-tokens-per-second throughput assumption. For open-source LoRA training, cost is computed directly from the GPU hours you expect to need multiplied by your rented GPU's hourly rate. Separately, you enter the base model's per-token input and output price along with a fine-tuned price multiplier (commonly around 2x) and your expected monthly inference volume, and the calculator projects the monthly cost increase of running the fine-tuned version instead of the base model.

Why It Matters

Teams frequently focus only on the training cost, which is often a modest one-time expense, and miss that the ongoing inference premium compounds every month at production volume — a 2x per-token multiplier on a high-traffic endpoint can dwarf the original training cost within the first month. Seeing both numbers side by side lets you evaluate whether fine-tuning is worth it compared to a well-engineered prompt on the base model, or whether the reduced per-call input tokens a fine-tuned model enables (by removing the need for long few-shot examples) offsets the higher per-token price.

Tips for Accurate Results

  • Use your actual training dataset token count where possible; the MB-to-tokens helper is a rough approximation (~250 tokens per KB) intended for early estimates only.
  • Check your provider's current published epoch default and pricing — some auto-select an epoch count based on dataset size rather than a fixed default of 3.
  • Confirm the actual fine-tuned inference multiplier for your provider and model — it is not always exactly 2x, and can vary between roughly 1.5x and 2x or more.
  • Estimate monthly inference volume from realistic projected production traffic, not a pilot's low-volume testing numbers, since the delta scales linearly with volume.
  • Factor in that switching to a different base model later usually means re-running the entire fine-tuning process and cost from scratch.
About

Two Costs of Fine-tuning

🏋️

One-Time Training Cost

Billed either per training token per epoch (hosted providers) or per GPU-hour (self-managed LoRA training). This is a single upfront cost paid once per training run, though re-training to update the model incurs it again.

📈

Ongoing Inference Premium

Fine-tuned models are typically billed at a premium over the base model's per-token price — often around 2x — because they require dedicated model weights to serve. This cost recurs on every single call, unlike training cost.

⚖️

Break-Even Thinking

Fine-tuning often pays off when it lets you drop a long, repeated system prompt or few-shot examples, shrinking per-call input tokens enough to offset the higher per-token inference price at your expected volume.

FAQ

Frequently Asked Questions

Common questions about fine-tuning costs

How much does it cost to fine-tune a model?
Hosted fine-tuning is typically billed per training token per epoch — for example, roughly $3.00 per 1M training tokens for GPT-4o mini and $5.00 per 1M for GPT-4.1 mini. A 10-million-token dataset trained for 3 epochs on GPT-4o mini fine-tuning would cost about 10 x 3 x $3.00 = $90. Open-source LoRA training on rented GPUs is billed by GPU-hour instead, often $2-8/hour depending on the GPU.
Why does a fine-tuned model cost more per token to run?
Providers commonly charge a premium — often around 1.5x to 2x the base model's per-token price — for inference on a fine-tuned model, since it requires dedicated model weights and, in some cases, dedicated serving capacity rather than being served from a shared pool. Always check the exact fine-tuned inference multiplier your provider publishes, since it varies by model and provider.
How accurate is the training time estimate?
The training time shown assumes a rough throughput of about 2,000 tokens processed per second, which is a reasonable order-of-magnitude estimate for hosted fine-tuning jobs but not an exact figure — actual throughput depends on the provider's infrastructure, model size, batch size, and current queue load.
When does fine-tuning pay off versus a longer prompt?
Fine-tuning tends to pay off when you'd otherwise need a long, repeated few-shot prompt or system prompt on every single call — fine-tuning bakes that behavior into the model weights, shrinking your per-call input tokens even though the per-token inference price is higher. Compare the training cost plus the monthly inference delta against the input-token savings from a shorter prompt to decide.
What is LoRA and why is it cheaper than full fine-tuning?
LoRA (Low-Rank Adaptation) fine-tunes a small number of additional parameters instead of updating the entire model, which drastically reduces GPU memory and compute requirements. This is why open-source LoRA fine-tuning on rented GPUs can be substantially cheaper than full fine-tuning, at some cost to how much behavior change is achievable.
What does "epochs" mean, and why does raising it increase cost?
An epoch is one complete pass of your training dataset through the model during fine-tuning. Hosted providers bill training cost as tokens × epochs × price per million tokens, so training for 3 epochs instead of 1 triples your training cost for the same dataset — more epochs can improve learning but also raises the risk of overfitting on a small dataset.
How does the "Dataset Size in MB of Text" field work?
It's an optional shortcut: entering a file size in MB automatically fills in the token count field using a rough approximation of ~250 tokens per KB of plain text. If you already know your exact training token count, skip this field and enter tokens directly for a more accurate estimate.
How is training time estimated for open-source LoRA versus hosted fine-tuning?
For open-source LoRA, the calculator simply reports back the GPU hours you entered, since that's a direct input you control on rented hardware. For hosted providers, training time is estimated from total processed tokens (dataset tokens × epochs) divided by a rough throughput of 2,000 tokens per second.
Should I fine-tune GPT-4o mini or GPT-4.1 mini?
GPT-4o mini fine-tuning is priced lower at roughly $3.00 per 1M training tokens versus about $5.00 per 1M for GPT-4.1 mini, so it's cheaper to train on the same dataset. The right choice also depends on each model's base capability and inference pricing for your specific task, not training cost alone.
Can I use this calculator for fine-tuning providers other than OpenAI?
Yes, for the open-source LoRA path — just enter the GPU hours and hourly rate for whatever GPU provider you're renting from. For hosted per-token billing from other providers, use their published price per million training tokens in place of the OpenAI figures shown, since the underlying tokens × epochs × price formula is the same.
Does this estimate include costs beyond training, like evaluation or hosting?
No. This calculator covers the one-time training cost and the ongoing per-token inference premium only. It does not include data preparation and labeling effort, evaluation/validation runs, dedicated hosting or capacity fees some providers charge for fine-tuned models, or storage costs for model checkpoints.

Related Calculators

Explore other AI & tech tools