TL;DR — Fine-tuning GPT-4o-mini: $3/1M training tokens (one-time), then 2× inference price forever. Fine-tune only if: (1) you need consistent format/style that prompts can't achieve, or (2) you can replace a large model with a fine-tuned small one. The break-even is ~500K inference calls/month.
Key Takeaways
- Fine-tuning GPT-4o-mini: $3/1M training tokens (one-time) + 2× inference cost permanently ($0.30/M → $0.60/M input)
- 3 cost components most teams miss: training cost, higher inference cost, and ongoing experimentation cost
- Break-even at ~500K inference calls/month — below that, prompt engineering is cheaper
- Fine-tune to replace an expensive large model with a cheaper small one, not to "improve" a model you already use
Fine-tuning has three cost components that most developers don't fully account for: the one-time training cost, the permanently higher inference cost, and the ongoing experimentation cost. Understanding all three before you start determines whether fine-tuning saves you money or becomes an expensive detour.
The short version: fine-tuning is rarely about cost savings. It's about getting a smaller, cheaper model to perform like a bigger, more expensive one. When it works, you save money on inference. When it doesn't, you've spent $50-$500 on training and weeks of engineering time with nothing to show for it.
How Much Does Fine-Tuning Cost by Provider?
OpenAI
| Cost type | GPT-4o-mini | GPT-4o |
|---|---|---|
| Training (per 1M tokens) | $3.00 | $25.00 |
| Inference input (per 1M) | $0.30 (2x base) | $3.75 (1.5x base) |
| Inference output (per 1M) | $1.20 (2x base) | $15.00 (1.5x base) |
| Storage | Free (first 2 models) | Free (first 2 models) |
Key detail: fine-tuned model inference costs more than the base model. GPT-4o-mini goes from $0.15 to $0.30 per million input tokens — a 2x increase.
Anthropic
Anthropic doesn't offer public fine-tuning as of June 2026. Enterprise customers can access it through custom agreements.
Open-source (self-hosted)
Fine-tuning Llama 3.3 or Mistral is free in terms of training API cost — you're running on your own hardware. But the GPU time isn't free:
| Method | GPU required | Training time (1,000 examples) | Approximate cost |
|---|---|---|---|
| Full fine-tune (70B) | 4x A100 80GB | 4-8 hours | $40-$80 (cloud GPU) |
| LoRA (70B) | 1x A100 80GB | 2-4 hours | $8-$16 (cloud GPU) |
| QLoRA (70B) | 1x A100 40GB | 2-3 hours | $5-$12 (cloud GPU) |
| LoRA (7B-8B) | 1x A10G 24GB | 1-2 hours | $2-$5 (cloud GPU) |
LoRA and QLoRA are parameter-efficient methods that fine-tune a small subset of weights. They cost 5-10x less than full fine-tuning and produce comparable results for most tasks.
What Are the Three Fine-Tuning Cost Buckets?
1. Training cost (one-time, per experiment)
Training cost depends on your dataset size and how many epochs (passes through the data) you run.
Formula:
Training cost = tokens_in_dataset × num_epochs × cost_per_training_token
Example — fine-tuning GPT-4o-mini:
- Dataset: 1,000 examples, averaging 500 tokens each = 500K tokens
- Epochs: 3 (OpenAI default)
- Training tokens: 500K × 3 = 1.5M tokens
- Cost: 1.5M × $3.00/1M = $4.50
That's cheap. But you rarely get it right on the first try. Most fine-tuning projects require 3-5 experiments with different datasets, hyperparameters, or data cleaning strategies:
- Experiment 1: baseline dataset → $4.50
- Experiment 2: cleaned data, more examples → $8.00
- Experiment 3: different prompt format → $6.00
- Experiment 4: more epochs → $12.00
- Total training cost: $30.50
For GPT-4o fine-tuning at $25/1M training tokens, the same process costs $150-$250 in training alone.
2. Inference cost (ongoing, every call)
This is where the math gets important. Fine-tuned models cost more per token than base models on OpenAI:
| Model | Base inference (input) | Fine-tuned inference (input) | Increase |
|---|---|---|---|
| GPT-4o-mini | $0.15/1M | $0.30/1M | +100% |
| GPT-4o | $2.50/1M | $3.75/1M | +50% |
The paradox: You fine-tune to improve quality, but inference gets more expensive. The cost justification only works if fine-tuning lets you use a cheaper model that performs like an expensive one.
The winning scenario:
- You're currently using GPT-4o for a classification task: $2.50/1M input
- You fine-tune GPT-4o-mini to match GPT-4o's accuracy on your task: $0.30/1M input
- Savings: $2.20/1M input tokens (88% reduction)
The losing scenario:
- You're already using GPT-4o-mini with good prompting: $0.15/1M input
- You fine-tune GPT-4o-mini for marginal quality improvement: $0.30/1M input
- Result: you doubled your cost for a small quality gain
3. Experimentation cost (hidden, significant)
The biggest cost isn't tokens — it's engineering time:
- Data preparation: Cleaning, formatting, and curating training examples. Budget 8-20 hours for a quality dataset.
- Evaluation pipeline: You need a systematic way to measure whether the fine-tuned model is actually better. Building eval sets takes 4-8 hours.
- Iteration cycles: Each experiment requires training, evaluation, comparison against the baseline, and deciding next steps. Budget 2-4 hours per iteration.
- Total engineering time: 20-50 hours for a well-executed fine-tuning project.
At $100/hour engineering cost, that's $2,000-$5,000 in time — dwarfing the $30-$250 in training API costs.
When Does Fine-Tuning Save Money?
Fine-tuning is cost-effective in specific scenarios:
Scenario 1: Replacing an expensive model with a cheap fine-tuned one
Before: Using GPT-4o for customer intent classification
- 50,000 calls/day × 200 input tokens = 10M tokens/day
- Cost: $25/day → $750/month
After: Fine-tuned GPT-4o-mini (matches GPT-4o accuracy on your specific task)
- Same volume: 10M tokens/day
- Cost: $3/day → $90/month
- Training cost: ~$30 (one-time)
- Monthly savings: $660
- Payback: less than 1 day
Scenario 2: Eliminating a large system prompt
Before: GPT-4o-mini with a 2,000-token system prompt containing formatting rules, examples, and constraints
- 20,000 calls/day × 2,500 total input tokens = 50M tokens/day
- Cost: $7.50/day → $225/month
After: Fine-tuned GPT-4o-mini that has learned the formatting rules — system prompt drops to 200 tokens
- 20,000 calls/day × 700 total input tokens = 14M tokens/day
- Cost: $4.20/day → $126/month (fine-tuned rate at $0.30/1M)
- Monthly savings: $99
The savings come from eliminating the system prompt tokens, not from the model being cheaper. The fine-tuned model's higher per-token rate is offset by sending far fewer tokens per call.
When Does Fine-Tuning Waste Money?
Scenario 3: Fine-tuning when prompting works fine
Current: GPT-4o-mini with a well-crafted 400-token prompt handles your task at 92% accuracy
- Cost: $0.15/1M → you're already on the cheapest viable option
After fine-tuning: GPT-4o-mini fine-tuned to 95% accuracy
- Cost: $0.30/1M → doubled your inference cost
- Quality improvement: 92% → 95% (marginal)
- Training + engineering cost: $3,000+
Unless that 3% accuracy difference has direct revenue impact, this fine-tuning project destroyed value.
Scenario 4: Fine-tuning with insufficient data
Fine-tuning with fewer than 100 high-quality examples rarely produces meaningful improvement. With 50 examples, you've spent engineering time curating data and training costs, but the model barely shifts from its base behavior.
Minimum viable dataset: 200-500 examples for classification tasks, 500-1,000 for generation tasks. Below these thresholds, invest in better prompting instead.
How Does Fine-Tuning Compare to Prompt Engineering?
| Approach | Upfront cost | Ongoing cost | Engineering time | Quality ceiling |
|---|---|---|---|---|
| Zero-shot prompting | $0 | Base rate | 2-4 hours | Good |
| Few-shot prompting | $0 | Base rate + example tokens | 4-8 hours | Better |
| System prompt optimization | $0 | Base rate | 8-16 hours | Better |
| Prompt caching | $0 | 50-90% off cached tokens | 2-4 hours | Same as prompting |
| Fine-tuning | $30-$500 in training | 1.5-2x base rate | 20-50 hours | Best (for your task) |
The decision rule: Try prompting approaches first. They're cheaper, faster, and reversible. Fine-tune only when you've exhausted prompting and the gap between "prompting quality" and "needed quality" is clear and measurable.
How Do You Track Fine-Tuned Model Costs?
Fine-tuned models have different model names in OpenAI's API (e.g., ft:gpt-4o-mini:my-org:custom-name:abc123). If you're tracking costs per model, make sure your cost calculator handles fine-tuned model names:
def get_rate(model):
if model.startswith("ft:gpt-4o-mini"):
return {"input": 0.30, "output": 1.20} # per 1M
elif model.startswith("ft:gpt-4o"):
return {"input": 3.75, "output": 15.00}
# ... base model rates
With Tokonomics, fine-tuned model costs are calculated automatically — the proxy reads the model name from the response and applies the correct fine-tuned rate. Your analytics dashboard shows fine-tuned and base model costs separately so you can verify the savings.
Budget alerts are especially important during fine-tuning experimentation. You might accidentally deploy a fine-tuned model that processes requests at 2x the expected rate. An alert at 80% of your monthly budget catches this before it becomes a problem.
Frequently Asked Questions
How much does it cost to fine-tune GPT-4o-mini?
Training costs $3.00 per million tokens on OpenAI's fine-tuning tier (OpenAI, 2026). A typical dataset of 1,000 examples at 500 tokens each runs about $1.50 total for training. However, inference on the fine-tuned model costs roughly 2x the base rate, so your per-call costs increase unless you're eliminating a large system prompt.
Is fine-tuning cheaper than prompt engineering?
Usually not. Fine-tuning makes financial sense only in specific scenarios: replacing an expensive model with a cheaper fine-tuned one, or eliminating large system prompts that add 2,000+ tokens per call. For most teams, optimizing prompts and switching to cheaper base models saves more money with far less engineering effort.
How many training examples do I need for fine-tuning?
OpenAI recommends a minimum of 50 examples, but practical results typically require 200-500 high-quality labeled examples (OpenAI Fine-tuning Docs, 2026). Quality matters more than quantity. Poorly labeled data produces a fine-tuned model that's worse than the base model with good prompts.
Can I track fine-tuned model costs separately from base models?
Yes. Fine-tuned models get unique model IDs (like ft:gpt-4o-mini:your-org:custom-name:id), so any cost tracking tool can isolate their spending. Budget alerts let you monitor fine-tuned model costs independently and catch unexpected spikes during experimentation.
Can you fine tune a LoRA?
Yes. LoRA (Low-Rank Adaptation) is the most popular fine-tuning method for open-weight models like Llama 3.1, Mistral, and DeepSeek. Instead of updating all model parameters, LoRA trains small adapter layers — typically 0.1–1% of total parameters — which cuts GPU memory by 60–80% and training time by 50–70%. You can fine-tune a 7B model with LoRA on a single A100 GPU in under an hour. OpenAI and Anthropic use their own internal fine-tuning methods, not LoRA directly.
How much does LoRA cost?
LoRA fine-tuning costs depend on model size and hosting. On platforms like Together AI or Fireworks, LoRA training starts at $0.48/M tokens — a 1,000-example dataset costs roughly $0.25–$1.50. Self-hosted on a single A100 GPU ($1–$3/hour), training a 7B model takes 30–60 minutes, costing $1.50–$3.00. A 70B model requires 4x A100s and 2–4 hours, roughly $24–$48. Inference on LoRA-adapted models costs the same as the base model since the adapter merges at load time.
Is LoRA slower than full finetuning?
LoRA training is significantly faster than full fine-tuning — typically 50–70% less time because it updates only 0.1–1% of parameters. Inference speed is identical to the base model after merging the adapter weights. The tradeoff is that LoRA may slightly underperform full fine-tuning on tasks requiring deep behavioral changes, but for most production use cases (style, format, domain adaptation), the quality difference is negligible.
How expensive is it to fine tune a model?
It ranges from under $2 to over $50,000 depending on the approach. LoRA fine-tuning a 7B open-weight model: $1.50–$3 on a single GPU. OpenAI fine-tuning GPT-4o-mini: $3/M training tokens, so a 1,000-example dataset costs ~$1.50. Full fine-tuning a 70B model from scratch: $10,000–$50,000+ in GPU costs. For most teams, LoRA or API-based fine-tuning keeps costs under $50 per experiment. The real expense is iteration — most teams run 5–15 experiments before finding a good configuration.
How much does performance tuning cost?
Performance tuning (optimizing inference speed and throughput) costs $500–$5,000 in engineering time depending on complexity. Common techniques include quantization (free, reduces model size 50–75%), batching optimization, and KV-cache tuning. Infrastructure costs for GPU profiling tools like NVIDIA Nsight run $0–$200/month. Unlike fine-tuning which changes model weights, performance tuning optimizes how you serve the existing model — often delivering 2–4x throughput gains without additional training spend.
How much does finetuning cost?
Finetuning costs vary dramatically by method. API-based (OpenAI GPT-4o-mini): $3/M training tokens — a 1,000-example dataset costs ~$1.50. LoRA on open-weight models: $1.50–$48 depending on model size and GPU hours. Full parameter fine-tuning of 70B+ models: $10,000–$50,000+ in compute alone. Hidden costs include data preparation (10–40 hours of labeling), evaluation infrastructure, and the 5–15 experiment iterations most teams need. Total realistic budget for a production fine-tune: $500–$5,000 including engineering time.
How much does it cost to train GPT-3?
Training GPT-3 (175B parameters) from scratch cost an estimated $4.6 million in compute alone, based on the ~3,640 petaflop/s-days of compute reported in the original paper. Today's GPU prices would put that at roughly $1–$2 million using H100s. Fine-tuning GPT-3.5-turbo (the API-accessible version) is far cheaper: $8/M training tokens on OpenAI, so a typical 1,000-example dataset costs around $4. OpenAI has since deprecated GPT-3 in favor of GPT-3.5-turbo and GPT-4o-mini for fine-tuning.
How much does fine-tuning cost GPT-4o?
Fine-tuning GPT-4o costs $25/M training tokens — roughly 8x more than GPT-4o-mini at $3/M. A 1,000-example dataset (500 tokens each) costs approximately $12.50 for training. Inference on the fine-tuned GPT-4o model runs $3.75/M input and $15/M output — a 1.5x markup over base rates. For most use cases, fine-tuning GPT-4o-mini at $3/M delivers comparable quality at a fraction of the cost. Reserve GPT-4o fine-tuning for tasks requiring the strongest reasoning capabilities.
How much does fine-tuning GPT-4 cost?
Fine-tuning GPT-4 (the original, not GPT-4o) is no longer publicly available — OpenAI replaced it with GPT-4o fine-tuning at $25/M training tokens. A 1,000-example dataset costs ~$12.50 for training. Inference on fine-tuned GPT-4o runs $3.75/M input and $15/M output. If you're still referencing GPT-4 pricing, migrate to GPT-4o or GPT-4o-mini ($3/M training) — both outperform the original GPT-4 at lower cost.
How much does an AI model cost?
AI model costs depend on whether you're using, fine-tuning, or training from scratch. Using pre-built APIs: $0.15–$15/M tokens (GPT-4o-mini to Claude Opus). Fine-tuning an existing model: $1.50–$12.50 per training run via API, or $1.50–$48 self-hosted with LoRA. Training a model from scratch: $100K–$100M+ depending on parameter count. For most businesses, API access at $0.15–$5/M tokens covers 90% of use cases without any training costs.
How much did GPT 3.5 cost to train?
OpenAI hasn't disclosed GPT-3.5's exact training cost, but estimates based on compute requirements place it at $700K–$2M — significantly less than GPT-4's estimated $50–$100M. Fine-tuning GPT-3.5-turbo via OpenAI's API costs $8/M training tokens, making a 1,000-example dataset roughly $4. GPT-3.5-turbo remains available for fine-tuning but most teams now use GPT-4o-mini ($3/M) which is cheaper to fine-tune and produces better results.
How much does the ChatGPT model cost?
ChatGPT Plus costs $20/month for consumers. For developers using the API, costs vary by model: GPT-4o runs $2.50/M input and $10/M output tokens, while GPT-4o-mini costs $0.15/M input and $0.60/M output. Fine-tuning adds a training fee ($3–$25/M tokens) plus higher inference rates (1.5–2x base). Enterprise ChatGPT Team plans start at $25/user/month. The API is almost always cheaper than ChatGPT Plus if you're building products.
How expensive is fine-tuning?
Fine-tuning ranges from nearly free to very expensive depending on approach. API-based fine-tuning (OpenAI, Together AI): $1.50–$50 per training run. Self-hosted LoRA on a single GPU: $1.50–$3 for a 7B model. Full parameter fine-tuning of large models: $10,000–$50,000+. The hidden cost is iteration — most teams run 5–15 experiments, plus 10–40 hours of data preparation. Realistic total budget for a production-ready fine-tuned model: $500–$5,000.
How much does fine-tuning cost?
Fine-tuning cost breaks down into three components: training, inference markup, and engineering time. Training: $1.50 (GPT-4o-mini, 1K examples) to $50,000+ (full 70B model). Inference: fine-tuned models cost 1.5–2x more per token than base models. Engineering: data labeling, evaluation, and iteration typically add $500–$3,000. For most teams using API-based or LoRA fine-tuning, total cost per experiment stays under $50. The decision shouldn't be about fine-tuning cost — it's whether fine-tuning delivers enough quality improvement over prompt optimization to justify the effort.
How much does an API cost?
LLM API pricing varies 100x across providers. Cheapest: DeepSeek V3 at $0.27/M input tokens. Mid-range: GPT-4o-mini at $0.15/M input, Claude Haiku at $0.80/M input. Premium: GPT-4o at $2.50/M, Claude Sonnet at $3/M, Claude Opus at $15/M. Most APIs charge separately for input and output tokens, with output costing 2–5x more. A typical chatbot handling 10,000 conversations/month costs $5–$50 on GPT-4o-mini or $50–$500 on GPT-4o. Check our cheapest LLM comparison for a full breakdown.
What is API fine-tuning?
API fine-tuning lets you customize a pre-trained LLM through a cloud provider's interface — no GPU infrastructure needed. You upload a JSONL file of training examples, the provider trains an adapted version of the model, and you get a custom model ID for inference. OpenAI, Together AI, Fireworks, and Mistral all offer API fine-tuning. Costs range from $0.48/M tokens (Together AI with LoRA) to $25/M tokens (OpenAI GPT-4o). The main advantage over self-hosted fine-tuning: zero infrastructure management and training typically completes in minutes to hours.
How much does fine-tuning OpenAI cost?
OpenAI fine-tuning pricing: GPT-4o-mini at $3/M training tokens, GPT-4o at $25/M training tokens. A typical 1,000-example dataset costs $1.50 (mini) or $12.50 (4o). Inference on fine-tuned models costs more than base: GPT-4o-mini jumps from $0.15 to $0.30/M input (2x), GPT-4o from $2.50 to $3.75/M input (1.5x). Storage is free for your first two fine-tuned models. OpenAI also charges for validation if you include a validation dataset. Total cost for a production fine-tune on OpenAI: typically $5–$50 including 3–5 training iterations.
Why is LoRA so expensive?
LoRA itself isn't expensive — it's one of the cheapest fine-tuning methods. A single LoRA training run costs $1.50–$48 depending on model size. The perception of high cost comes from the full workflow: data preparation (10–40 hours), multiple training iterations (5–15 runs), evaluation infrastructure, and GPU rental during experimentation. Total project cost for a production LoRA deployment typically runs $500–$5,000 including engineering time. Compared to full fine-tuning ($10,000–$50,000+), LoRA reduces compute costs by 60–80%.
What are the disadvantages of LoRA fine-tuning?
LoRA's main tradeoffs: (1) slightly lower quality than full fine-tuning for tasks requiring deep behavioral changes — LoRA updates only 0.1–1% of parameters, so complex reasoning shifts may underperform, (2) hyperparameter sensitivity — rank, alpha, and target modules require experimentation, (3) adapter management overhead — serving multiple LoRA adapters requires infrastructure like LoRAX or vLLM, (4) limited multi-task learning — each adapter specializes in one task. For most production use cases (style, format, domain adaptation), these tradeoffs are negligible.
When to use LoRA vs fine-tuning?
Use LoRA when: budget is under $50 per experiment, you need fast iteration (30–60 min per run vs hours), you're adapting style/format/domain, or you have limited GPU access (single A100 is enough for 7B models). Use full fine-tuning when: you need maximum quality on complex reasoning tasks, you have $10,000+ budget and dedicated GPU clusters, or you're training for production deployment where 1–2% quality difference matters. For 90% of teams, LoRA delivers 95–99% of full fine-tuning quality at 10–20% of the cost.
What's the Bottom Line on Fine-Tuning Costs?
Fine-tuning is a tool, not a default. The cost-saving path is narrow and specific: fine-tune a cheap model to replace an expensive one, or fine-tune to eliminate large system prompts. Outside these scenarios, fine-tuning typically increases costs.
Before fine-tuning, ask:
- Have I tried optimizing my prompts first?
- Have I tried a cheaper base model?
- Is the quality gap between prompting and my target measurable?
- Do I have 200+ high-quality training examples?
- Will the inference savings exceed the training + engineering cost within 3 months?
If the answer to all five is yes, fine-tuning will save you money. If any answer is no, your time is better spent elsewhere.
Last updated June 2026. All sources retrieved June 2026.