TL;DR & Quick Summary
Start with an LLM API. Earn your way to anything heavier. A "custom model" is rarely the first problem to solve. The usual order is:
- API plus good instructions
- Add your data through retrieval
- Improve the system: tools, checks, smaller steps
- Fine-tune a model for a narrow, stable task
- Self-host when volume, control or location demands it
Move down a step only when a measured shortfall justifies it.
- API wins on speed, quality for general tasks, and low upfront cost
- Self-hosting wins on control, data location, offline use and sometimes cost at very high volume
- Timely: OpenAI says new self-serve fine-tuning jobs end on December 15, 2026, so don't design around that route
- Key Takeaway: Your test set and your data pipeline are the durable assets. The model is the replaceable part.
- Get Started: Want help choosing an architecture? Schedule a strategy call with Cogniq AI or see our custom AI development services.
What the Options Really Are
"Custom AI model" gets used for very different things, with very different costs.
| Option | What it is | Upfront effort | You operate |
|---|---|---|---|
| LLM API | Call a commercial model over the internet | Low | Your application only |
| API + retrieval | The model answers using documents you supply at request time | Low to medium | Search index and data pipeline |
| Fine-tuned model | An existing model adjusted with your examples | Medium | Training data and versions |
| Self-hosted open-weight model | You run a downloadable model on your own or rented hardware | Medium to high | Servers, scaling, updates, security |
| Trained from scratch | A new model built from your own large dataset | Very high | Everything |
The last row is rarely the right answer for a business application. When someone proposes "our own model", ask which row they mean.
Step 1: API Plus Good Instructions
This is where to begin. You get a strong general model, no infrastructure and a working prototype in days. Spend the effort on:
- Clear instructions with real examples of good and bad output
- Structured output, so your code can check the result
- Breaking the task into steps that can each be tested
- A test set of 50–200 real cases with expected results
That test set is the most valuable thing you'll build. It tells you whether any later change helps. Our AI agent evaluation framework shows how to score accuracy, latency and cost.
Step 2: Add Your Own Data With Retrieval
If answers are wrong because the model doesn't know your facts, retrieval is usually the fix, not training. The system searches your documents, passes the relevant parts to the model, and asks it to answer from them.
Retrieval suits:
- Product documentation, policies and contracts that change
- Customer or order records looked up at request time
- Answers that must show their source
- Content with access rules, since you can filter what each user may retrieve
Training a model on facts is a poor way to store them. They go out of date, can't easily be removed, and you can't show where an answer came from. We compare these designs in enterprise AI agent architecture.
Step 3: Improve the System Before the Model
Many quality problems sit around the model:
- Search returns the wrong passages: fix chunking, metadata and ranking
- The model does arithmetic or lookups: move those to code and give the model a tool
- One prompt does too much: split it
- Errors slip through: add validation rules and human approval for risky actions
- Easy and hard cases cost the same: send easy ones to a cheaper model
Routing by difficulty alone often changes the cost picture more than switching architecture.
Step 4: Fine-Tune for a Narrow, Stable Task
Fine-tuning helps when the model knows enough but behaves inconsistently, and you have many good examples:
- A fixed output format or house style that instructions don't hold reliably
- Classification into your own categories, at high volume
- Making a smaller model perform one task as well as a larger one, to cut cost or latency
It is a poor fit when requirements change monthly, when you have few examples, or when the problem is missing facts.
Check where you can fine-tune before you design for it. OpenAI's deprecations page shows self-serve fine-tuning being wound down: organizations that had never run a job lost the ability to create one on May 7, 2026, and from December 15, 2026 no organization can create new self-serve jobs. Existing fine-tuned models keep serving requests until their base model is retired. Other cloud providers and open-weight models offer other routes, each with its own terms.
The lesson applies generally: a model-specific investment can expire. Keep the training examples in your own storage, so they can be reused.
Step 5: Self-Host When There's a Real Reason
Good reasons to run a model yourself:
- Data must not leave your environment or a specific country, by contract or regulation
- Offline or on-site operation, such as a factory floor with poor connectivity
- Very high, steady volume on a task a smaller model handles well
- Control over change: you decide when the model is updated
- Latency requirements that a remote call can't meet
Costs that are easy to miss: idle capacity at night, peaks that need extra hardware, monitoring, security patching, model upgrades, and someone on call.
Check the Data Question Properly
Many teams assume an API means their data trains someone else's model. Check the actual terms. OpenAI's data controls documentation states that API data isn't used to train or improve its models unless you opt in, and that abuse monitoring logs are retained for up to 30 days by default, with stricter options subject to approval. Other providers publish their own terms. Ask about training, retention, processing region and subprocessors separately. Our guide to LLM data security for B2B vendors covers the evaluation.
A Break-Even Calculation
For illustration only. The prices below are assumptions, not any provider's list price. Replace them with current figures.
- Each request uses 2,000 input tokens and 500 output tokens
- API price: $1 per million input tokens and $5 per million output tokens
- API cost per request: $0.002 + $0.0025 = $0.0045
- Self-hosting: one server at $2 an hour all month (about $1,460) plus 20 engineering hours at $100 ($2,000), about $3,460 a month
| Requests per month | API cost | Self-hosted cost (one server) |
|---|---|---|
| 20,000 | about $90 | about $3,460 |
| 100,000 | about $450 | about $3,460 |
| 1,000,000 | about $4,500 | about $3,460, if one server can carry the load |
Break-even is $3,460 ÷ $0.0045, about 770,000 requests a month. Below that, the API is cheaper.
Now change one assumption:
| API price (input / output, per million) | Cost per request | Break-even requests per month |
|---|---|---|
| $0.25 / $1.25 | about $0.0011 | about 3.1 million |
| $1 / $5 | $0.0045 | about 770,000 |
| $3 / $15 | $0.0135 | about 256,000 |
The answer moves by more than ten times with the price alone. Compare against the cheapest API model that passes your test set, not the most expensive one.
Then check capacity. A million requests spread over 220 working hours is about 1.3 requests every second, before peaks. Load-test the model on the hardware you priced. If you need two servers for peaks or redundancy, the break-even point moves up again.
Decision Table
| If this is true | Lean towards |
|---|---|
| You're still proving the use case | LLM API |
| Answers depend on your changing documents | API + retrieval |
| Format or classification is inconsistent despite good examples | Fine-tuning |
| Volume is huge, steady and the task is narrow | Smaller fine-tuned or self-hosted model |
| Data can't leave your environment | Self-hosted, or a provider's private deployment that meets the rule |
| Your team has no capacity to run infrastructure | API or managed service |
A mix is common: a small model for high-volume sorting, an API for the hard cases.
Stay Able to Switch
- Call models through one internal interface
- Keep prompts, examples and settings in version control
- Log inputs, outputs, cost and model version, within your privacy rules
- Rerun the test set against an alternative every quarter and after provider changes
- Watch deprecation notices and name someone responsible for them
With these in place, changing model is a planned task with a measured result, not an emergency.
Questions to Answer Before You Commit
- What quality score does the product need, on which test set?
- What volume do we expect in 12 months, and how sure are we?
- Which data may be sent outside, and under what terms?
- Who runs it at 2am if we host it?
- What happens if this model is retired next year?
If several answers are unknown, build on an API and collect the evidence. For budgeting the wider project, see the cost to add AI to an existing product.
Conclusion
The choice between a custom AI model and an LLM API is mostly a question of evidence. Start with an API, add your data through retrieval, improve the system around the model, and measure everything against your own test set. Fine-tune or self-host when a specific, measured need justifies the extra work, using break-even figures that include engineering time and capacity. Keep your data, examples and tests in your own hands, and the model choice stays reversible.
Schedule a strategy call with Cogniq AI to size your options, or explore our custom AI agent development.


