LLM Cost Guide
LLM development cost is rarely one number. Most quotes price only part of the work, which is why budgets for the same idea can differ five times over.
Fine-tuning brings its own data and evaluation work. Hosting and inference then add a monthly bill that grows with traffic. That bill often decides whether the project pays off at all.
Below, each layer gets its own price logic and current list prices from official provider pages. A worked budget then prices one workload three ways. That way, you can compare quotes on equal terms.
Quick answer: LLM development cost usually stays under $40,000 for a proof of concept, runs $40,000 to $120,000 for a production application and starts at $120,000 for an enterprise deployment. Running the model then adds a few hundred to over $10,000 a month.
Summary
Key Takeaways
- Run costs can reach two thirds of year-one LLM development cost for a busy assistant, so a build quote alone understates the budget.
- Fine-tuning compute often costs under $500 a project. Data preparation and evaluation, however, push a full tuning effort to $5,000 to $50,000.
- Serverless APIs cost nothing when idle. Dedicated endpoints and rented GPUs, by contrast, bill every hour, so steady traffic decides which one wins.
- One H100 breaks even with Claude Sonnet 5.5 at about 805 million tokens a month. Yet it cannot serve enough tokens to beat Claude Haiku 5.5.
- OpenAI fine-tuning is closed to new users. So plan tuned models on Gemini or open models, and budget for re-tuning when a base model retires.
Cost layers
What Makes Up LLM Development Cost
Every product built on large language models pays for three things: building the application, customising the model and running it in production. The first two are mostly one-time costs. The third, however, recurs every month and grows with usage.
| Cost Layer | What It Covers | Cost Type | Share of Year-One Spend |
|---|---|---|---|
| Build | Application code, RAG pipeline, integrations, infrastructure setup, guardrails, evaluation sets | One-time | 30% to 55% |
| Customise | Training data preparation, fine-tuning runs, model evaluation | One-time, repeated for each model update | 0% to 25% |
| Run | Model hosting, per-token inference, vector database, monitoring, on-call support | Recurring every month | 20% to 70% |
The split shifts with traffic. In the worked example below, the build takes 31% to 54% of year one. Run costs, meanwhile, range from 21% for a tuned small model to 66% for a frontier-model assistant.
For budgeting beyond language models, our guide on AI development cost covers project tiers, vendor pricing and ROI planning. The sections below, in contrast, stay focused on costs that are specific to LLMs.
Comparison
LLM Development Cost by Approach
The approach you choose sets the build budget more than any other decision. An API-based assistant and a self-hosted, fine-tuned model can solve similar problems, yet their costs and timelines differ widely.
| Approach | Typical Build Cost | Timeline | Best Fit |
|---|---|---|---|
| Proof of concept | Under $40,000 | 4 to 8 weeks | One use case and a limited document set, with a go or no-go result |
| RAG application | $40,000 to $120,000 | 8 to 16 weeks | Answers grounded in your own documents and policies |
| Fine-tuned model | $40,000 to $120,000 | 10 to 16 weeks | Fixed output format, domain language, high request volume |
| Enterprise or private deployment | $120,000 and up | 12 to 20 weeks | Several workflows and data sources, often in a private cloud or VPC |
| Training from scratch | $1 million and up | 6 to 18 months | A new foundation model sold as the product itself |
Most teams start with a proof of concept or RAG build because it proves value fastest. Fine-tuning and private hosting come later, once traffic is steady. Training from scratch, by contrast, rarely pays off for a single business.
These ranges include engineering, integration and testing. They exclude monthly run costs, which the hosting and inference sections price separately. For a scoped estimate on your own use case, our LLM development services team starts with a short discovery phase.
At SDLC Corp, a proof of concept covers one use case and a small document set. It ends with a prototype, an evaluation test set and a go or no-go call. Production budgets then rest on measured results.
Fine-tuning
LLM Fine-Tuning Cost
Fine-tuning cost has two parts: compute for the training runs and labour for data and evaluation. Compute is usually the smaller part. In most projects, the people who prepare data and judge results account for the bulk of the bill.
Managed Fine-Tuning Pricing by Platform
Managed platforms charge per training token, where training tokens equal dataset tokens multiplied by epochs. So a 10-million-token dataset trained for three epochs bills 30 million tokens. Prices below come from each provider's official pricing page.
| Platform | Model | Training Price | Tuned Model Inference |
|---|---|---|---|
| Google Vertex AI | Gemini 3.5 Flash | $10 per 1M tokens | Same as the base model on the global endpoint |
| Google Vertex AI | Gemini 3.5 Flash-Lite, Gemini 3.1 Flash-Lite | $3 per 1M tokens | Same as base on the global endpoint, 1.5x base elsewhere |
| Amazon Bedrock | gpt-oss-20b, Qwen3 32B (reinforcement fine-tuning) | $80 per training hour | $0.09 to $0.20 input, $0.39 to $0.78 output per 1M tokens |
| Together AI | Llama 3.1 8B to Llama 3.3 70B | $0.34 to $2.03 per 1M tokens, $4 minimum per job | Served from a dedicated endpoint or your own GPUs |
| OpenAI | GPT-4.1, GPT-4.1 mini | $25 and $5 per 1M tokens | Closed to new users, listed models deprecated |
For example, a 30-million-token job costs about $90 on Gemini 3.5 Flash-Lite and about $10 on Llama 3.1 8B, based on Together AI pricing. Even five test runs stay under $500, which is why compute rarely decides the budget.
One detail on the Vertex AI Model Garden pricing page deserves attention. Tuned Gemini models on the global endpoint cost the same per token as their base models. So tuning there adds no inference premium.
LoRA vs Full Fine-Tuning on Rented GPUs
Self-hosted fine-tuning swaps per-token fees for GPU hours. The method you pick decides how many GPUs you need and for how long. LoRA trains small adapter layers, while full fine-tuning updates every weight in the model.
| Method | Model Size | Typical Hardware | GPU Time | Compute Cost |
|---|---|---|---|---|
| LoRA | 7B to 8B | 1 × L40S or 1 × H100 | 2 to 6 hours | $10 to $30 |
| QLoRA | 70B | 1 × H100 | 15 to 30 hours | $65 to $135 |
| Full fine-tuning | 7B to 8B | 8 × H100 node | 1 to 3 node hours | $35 to $110 |
| Full fine-tuning | 70B | One or two 8 × H100 nodes | 10 to 20 node hours | $350 to $710 |
These estimates assume a 30-million-token dataset and $4.41 per H100 hour on DigitalOcean. In practice, LoRA is the default for business tasks. It nears full fine-tuning quality on format, tone and classification work, with far less memory.
Full fine-tuning makes sense mainly when the model must absorb large volumes of new domain knowledge. Either way, budget for repeated runs. Most projects need three to six runs before evaluation scores settle, so multiply single-run compute accordingly.
Data Preparation and Evaluation Labour
People, not GPUs, account for most fine-tuning spend. Collecting examples, cleaning them, labelling edge cases and building a test set often take a third or more of all project hours.
A useful dataset for a narrow task usually holds 500 to 5,000 high-quality examples. Quality matters more than size. After all, a few hundred wrong labels can teach the model the wrong behaviour.
Evaluation also needs its own budget line. Before training starts, set a fixed test set and clear pass criteria, so you can compare every run fairly. Otherwise, teams keep training and still cannot prove the tuned model wins.
As a result, a focused fine-tuning project usually costs $5,000 to $50,000, mostly in engineering time. SDLC Corp has delivered 125+ LLM fine-tuning implementations, and data work is where those budgets are won or lost.
Hosting
LLM Hosting Cost
Hosting is often the biggest recurring line in LLM development cost. What you pay depends on how you serve the model. You can pay per token on a shared endpoint, rent a dedicated endpoint or run your own GPUs.
Serverless, Dedicated Endpoint or Self-Hosted
| Option | How It Bills | Monthly Cost If Always On | Best Fit |
|---|---|---|---|
| Serverless API | Per token, nothing when idle | Usage only | Uneven or low traffic, fastest start |
| Amazon Bedrock Custom Model Import | $0.05718 per model unit per minute, in 5-minute windows | About $2,500 per model unit | Imported open-weight models without GPU management |
| Amazon Bedrock Provisioned Throughput | $23.50 per model unit hour, no commitment | About $17,150 per model unit | Guaranteed capacity for custom models |
| Together AI dedicated endpoint | $5.49 per H100 hour | About $4,000 per GPU | Steady traffic on a tuned open model |
| Self-hosted cloud GPU (DigitalOcean) | $4.41 per H100 hour | About $3,220 per GPU | Full control, data residency, high utilisation |
The Amazon Bedrock pricing page also lists a 6-month commitment that lowers provisioned throughput for Llama 2 custom models to $13.08 per hour. Commitments like this only make sense once traffic is predictable for the whole term.
Serverless pricing wins whenever traffic is uneven, because idle hours cost nothing. Dedicated options, in contrast, charge for every hour the endpoint stays up. They therefore pay off only when requests arrive steadily through the day and night.
Production also needs redundancy. One GPU is a single point of failure, so most teams run at least two instances behind a load balancer. That step alone doubles the always-on bill shown above.
GPU Rental Rates by Model Size
| GPU | Memory | On-Demand Price per Hour | Monthly Cost (730 Hours) | Typical Model Fit |
|---|---|---|---|---|
| NVIDIA L40S | 48 GB | $1.57 | $1,146 | 7B to 14B at 16-bit, about 30B at 4-bit |
| AMD Instinct MI300X | 192 GB | $2.59 | $1,891 | 70B at 16-bit on a single GPU |
| NVIDIA H100 | 80 GB | $4.41 | $3,219 | Up to about 34B at 16-bit, 70B at 4-bit |
| NVIDIA H200 | 141 GB | $4.47 | $3,263 | 70B at 8-bit with room for long contexts |
These rates come from DigitalOcean Droplet pricing. Reserved contracts and some specialist clouds cost less, while hyperscaler on-demand rates often cost more. Either way, memory sets the floor: the weights and their working cache must fit on the card.
Running these deployments is an operations job as much as an infrastructure one. Teams without in-house platform engineers often bring in MLOps services to handle autoscaling, model versioning and monitoring.
Inference
LLM Inference Pricing
Inference is the cost of every answer the model generates, and it keeps running while the product is live. Providers price it per million tokens, and output tokens cost four to six times more than input tokens.
Input, Output, Cached and Batch Tokens
| Model | Tier | Input per 1M Tokens | Output per 1M Tokens |
|---|---|---|---|
| Claude Haiku 5.5 (prompts up to 100K tokens) | Small | $0.10 | $0.50 |
| Gemini 3.1 Flash-Lite | Small | $0.25 | $1.50 |
| Gemini 3.5 Flash-Lite | Small | $0.30 | $2.50 |
| Gemini 3.5 Flash | Mid-tier | $1.50 | $9.00 |
| Claude Sonnet 5.5 | Mid-tier | $2.00 | $10.00 |
| GPT-6.2 Sol | Mid-tier | $2.00 | $10.00 |
| Claude Opus 5.5 | Frontier | $4.00 | $20.00 |
| GPT-6.2 Astra | Frontier | $8.00 | $40.00 |
Two discounts change these numbers a lot. First, cached input costs far less: Claude Sonnet 5.5 charges $0.10 per million cached tokens instead of $2.00, according to Claude API pricing. GPT-6.2 Sol lists the same cached rate.
Second, batch jobs on Claude cost 50% less, which suits overnight work such as document tagging or evaluation runs. Amazon Bedrock offers the same 50% batch discount on select models.
Per-request cost follows simple math. On Claude Sonnet 5.5, a call with 2,000 input and 400 output tokens costs $0.004 plus $0.004, or $0.008. At 20,000 calls a day, that means about $4,800 a month.
Why a Fine-Tuned Model Costs More to Run
A tuned model does not always cost more per token, but it often costs more to keep available. On Vertex AI, for instance, tuned Gemini models bill at base rates on the global endpoint.
Elsewhere, Gemini 3.1 Flash-Lite, 3.5 Flash and 3.5 Flash-Lite bill at 1.5 times the base price. The bigger cost, though, is usually hosting, because tuned open models often need a dedicated server.
Dedicated endpoints on Together AI and provisioned capacity on Amazon Bedrock bill by the hour, even at zero traffic. Bedrock also charges $1.95 per custom model per month for storage.
So, before you tune, check where the tuned model will run. A cheaper per-token rate can disappear quickly if the model needs an always-on endpoint that sits idle every night.
Break-even
When Self-Hosting Beats an API
Self-hosting pays off only when a GPU stays busy. An API charges per token and nothing when idle, while a rented GPU charges every hour. The real cost per million tokens therefore depends on utilisation.
Cost per 1M tokens = (Hourly GPU cost × 1,000,000) ÷ (Tokens per second × 3,600 × Utilisation)
For example, take one H100 at $4.41 an hour serving 2,000 tokens per second across all users. At 90% utilisation, each million tokens costs about $0.68. At 50%, the cost rises to $1.23, and at 20%, it reaches $3.06.
Now compare that with API prices. At a 3:1 input-to-output mix, Claude Sonnet 5.5 averages $4 per million tokens. So one H100 at $3,219 a month breaks even at about 805 million tokens, roughly 27 million a day.
Against a small model, the picture flips. Claude Haiku 5.5 averages $0.20 per million tokens, so the H100 would need about 16 billion tokens a month. Yet it serves only about 5.3 billion even at full load.
This explains why published break-even figures disagree so widely. Each assumes a different model size, utilisation, cached-token share and API price. Some also ignore the staff time needed to keep GPUs patched and monitored.
As a rule, self-hosting makes sense when traffic is steady and volume is high. It also adds licensing, quantization and evaluation work, which our post on open-source LLMs for voice AI covers in detail.
Worked example
One Workload Priced Three Ways
To see how the layers combine, take one customer support assistant, a typical scope for AI chatbot development services. It handles 10,000 conversations a day with four turns each.
Every turn sends about 1,500 input tokens, including retrieved context, and returns about 300 output tokens. That adds up to 1.8 billion input tokens and 360 million output tokens a month.
All three options share one RAG pipeline and a $45,000 build, so only the model differs. Option A calls Claude Sonnet 5.5 by API. Option B tunes Gemini 3.5 Flash-Lite. Option C tunes an open 27B model on two H100s.
| Cost Line | Option A: Frontier API | Option B: Tuned Model | Option C: Self-Hosted |
|---|---|---|---|
| Application build | $45,000 | $45,000 | $45,000 |
| Data, tuning and evaluation | $0 | $20,450 | $20,160 |
| Infrastructure setup | $0 | $0 | $15,000 |
| Monthly model cost | $7,200 | $1,440 | $6,439 (2 × H100) |
| Monthly operations staff | Included in API price | Included in API price | $3,000 |
| Year-one total | $131,400 | $82,730 | $193,428 |
Labour drives these numbers. SDLC Corp's Clutch profile lists a $25 to $49 hourly range. At those rates, Option B's $20,000 tuning line buys roughly 400 to 800 engineering hours.
At this volume, the tuned small model wins clearly, provided it passes the same evaluation set as the frontier model. If it fails on hard questions, however, Option A's extra cost is simply the price of accuracy.
Self-hosting, meanwhile, costs the most here, because two GPUs and part-time staff outweigh the token savings. It would close the gap only at several times this traffic. Data rules that keep prompts in your own cloud can also justify it.
After launch
Hidden LLM Development Costs After Launch
Spending does not stop at launch. Several recurring costs rarely appear in the first quote. Many teams therefore plan 15% to 25% of the build cost a year to cover them.
- Evaluation upkeep: test sets need new cases as users find new failure patterns, and every prompt or model change needs a fresh run.
- Guardrails and safety: filters for personal data, harmful content and prompt injection add model calls and latency. Setting the policy behind them is part of AI governance consulting services.
- Monitoring and on-call: someone must watch latency, error rates, token spend and drift, then respond quickly when any of them spikes.
- Vector database upkeep: document stores keep growing, and switching to a new embedding model means re-embedding the full corpus.
- Re-tuning after model retirement: providers retire base models on a schedule, so a tuned model built on a retired base must be rebuilt.
The last item surprises many teams. Providers retire older models on published schedules, so every tuned model needs a plan, and a budget, for moving to a new base before its current one is switched off.
Knowledge base work also continues long after launch. Teams running retrieval pipelines often pair this upkeep with RAG development services, so indexing, chunking and access rules keep pace with new documents.
Optimisation
How to Lower LLM Development Cost Without Losing Quality
Most LLM bills shrink without any loss in quality once each request goes to the cheapest model that can handle it. The techniques below work on API and self-hosted setups alike.
| Technique | How It Saves | Typical Saving | When to Use It |
|---|---|---|---|
| Prompt trimming | Removes unused instructions and retrieved chunks | In direct proportion to tokens removed | Every workload, as a first step |
| Prompt caching | Bills repeated prompt text at the cached rate | Up to 95% on cached input | Long, stable system prompts or shared context |
| Batch processing | Runs non-urgent jobs at a discount | 50% on Claude and select Bedrock models | Overnight tagging, summaries and evaluations |
| Model routing | Sends easy requests to a small model and hard ones to a larger model | Up to 20x on each routed call | Mixed traffic with many simple questions |
| Distillation | Trains a small model on a large model's best outputs | About 80% in the worked example above | Stable, high-volume tasks |
| Quantization | Runs weights at 8-bit or 4-bit precision | About half the memory of 16-bit weights | Self-hosted open models |
Caching alone changes the worked example. If 800 of each 1,500 input tokens are a fixed system prompt, Option A's monthly input bill falls from $3,600 to about $1,800. Its total model cost then drops to roughly $5,400 a month.
Start with trimming and caching, because neither needs a new model. Next, add routing and batch jobs for the right traffic. Finally, consider distillation or quantization once volume is steady enough to justify the engineering work.
FAQ
LLM Development Cost FAQs
A focused proof of concept usually costs under $40,000, and a production LLM application costs $40,000 to $120,000. Enterprise deployments across several workflows, often in a private cloud or VPC, start at $120,000.
Monthly run costs come on top of the build. Depending on traffic and model choice, they range from a few hundred dollars to over $10,000 a month.
Training compute often stays under $500, while a full fine-tuning project usually costs $5,000 to $50,000. Most of that budget goes to data preparation and evaluation rather than GPUs.
The biggest swing factor is data readiness. Teams with clean, labelled examples spend far less than teams that start from raw chat logs or tickets.
Most narrow business tasks need 500 to 5,000 clean, consistent examples. Format and tone tasks sit at the low end of that range, while domain-heavy tasks need more examples.
As a starting point, hold back 10% to 20% of the examples as a test set. That way, every training run is scored on data the model has never seen.
Start with tokens. Multiply tokens per call by daily calls and the model's price per million tokens to get the monthly run cost. Then add hosting, monitoring and the staff time to run it.
Next, test the estimate on a sample of real requests. Token counts often differ from guesses once retrieved context and longer answers are included.
Options are limited. OpenAI API pricing lists fine-tuning as closed to new users, with its tunable models marked deprecated. Anthropic's API pricing, meanwhile, lists no fine-tuning option at all.
Teams that need a tuned model therefore usually choose Gemini on Vertex AI or an open model such as Llama or Qwen.
Reasoning models generate long internal reasoning before the final answer, and those tokens bill as output. Since output costs four to six times more than input, one reasoning call can cost many times a standard call.
For that reason, route only complex tasks to reasoning models and send routine requests to faster, cheaper models.
An API-based proof of concept takes 4 to 8 weeks. A production RAG application usually takes 8 to 16 weeks from discovery to launch.
Fine-tuned or self-hosted systems need 10 to 20 weeks because of data work, evaluation and infrastructure setup. Training a model from scratch, by contrast, takes many months.
Training a new foundation model usually costs $1 million or more, and large models reach tens of millions of dollars. BloombergGPT, for example, used about 1.3 million A100 GPU hours, according to its research paper.
For nearly every business, fine-tuning or RAG on an existing model costs a small fraction of that.

