AI

LLM API or Your Own Model? How to Decide for an AI Product

4 min read

Sheet
01
Section
LLM API or Your Own Model? How to Decide for an AI Product
LLM API or Your Own Model? How to Decide for an AI Product
Fig. 01. LLM API or Your Own Model? How to Decide for an AI Product
Sheet
02
Section
AI

Almost every AI product conversation reaches the same fork: do we call a model from OpenAI, Anthropic or Google, or do we train our own? It sounds like a technology choice. It's mostly a product and data choice, and for most products the answer is "provider first".

Here's how we think about it at Big Immersive.

Start from what the model must be right about

Before picking a model, write down what the product has to get right. Not "answer questions about contracts", but "given one supplier contract, list the termination clauses and their notice periods, and say which clause each came from".

That sentence decides almost everything:

  • Is the knowledge general, or does it live in your documents?
  • Does the output have a fixed shape that can be checked?
  • How bad is a wrong answer?
  • How many times a day will this run?

Discovery on an AI product is mostly this: settling what the model must be right about, and what data supports it.

Option 1: A provider model with good prompting

For a lot of products, a general model from OpenAI, Anthropic or Google Gemini, with a clear prompt and a fixed output format, is enough. Drafting, summarising, classifying, extracting fields, routing support tickets: general models are good at these.

Choose this when the task depends on general language skill, not private knowledge, and volume is moderate.

Watch out for fluency. A general model asked about a specific body of law, or your internal policy, will be fluent, confident and wrong. If the answer depends on facts the model wasn't trained on, prompting alone won't fix it.

Option 2: A provider model plus retrieval (RAG)

When answers must come from your documents, the usual fix is retrieval-augmented generation. You index your knowledge base in a vector database, retrieve the passages relevant to each question, and give them to the model to answer from. Frameworks like LangChain and LlamaIndex handle much of the plumbing.

Choose this when the knowledge is yours (policies, product docs, contracts, a dataset you own) and it changes over time. Updating an index is far cheaper than retraining a model.

What makes it work:

  • Named sources. Scope the system to specific sources, and have it show which passage it answered from. Grounding beats fluency.
  • Good chunking and search. Most RAG failures are retrieval failures: the right passage was never found, so the model guessed.
  • Saying "I don't know". When nothing relevant is retrieved, the right output is a refusal, not an improvisation.

This covers more products than people expect, including many that start out sure they need a custom model.

Option 3: Train or fine-tune your own model

Training your own, in PyTorch or TensorFlow, or fine-tuning an open model, earns its cost in a few situations:

  • The data is proprietary and the patterns aren't in general models. Sensor data, specialised images, domain signals a language model has never seen.
  • The task is narrow and repeated. A small model that does one classification very well can beat a large general model at that one job.
  • Cost or latency at volume. If you're making millions of calls a day for a simple task, a small model you host can cost less than per-token API pricing.
  • Data can't leave your infrastructure. Some rules or contracts require it.

What it costs: labelled data, training and evaluation work, and then MLOps: deployment, monitoring and a retraining path when the data drifts. A custom model is a system you operate, not a file you download.

The order we try them in

Providers first, custom models when they earn it. In practice:

  1. Prototype on a provider model with a fixed output shape.
  2. Add retrieval if answers depend on your own knowledge.
  3. Measure cost, latency and accuracy against an evaluation set.
  4. Only then consider fine-tuning or training, for the specific part that's failing or too expensive.

Starting with a custom model before step 3 usually means paying to solve a problem you haven't measured yet.

Build the evaluation set first

Whatever you choose, build the evaluation set alongside the product: real inputs with the expected outputs. Then a prompt change, a model upgrade or a switch from API to custom model is measured, not felt.

This also makes the decision itself honest. "Our own model would be better" becomes a number before and a number after. We published an example of this approach in Multi-Agent Bug Triage with a Human Gate, where an evaluation command scores every item on what actually happened, not on what the model said.

Give the output a fixed shape

A fixed output shape (fields, categories, a severity, a citation) makes an AI product testable. Free text is hard to check and easy to argue about. A structured answer can be compared against the evaluation set automatically, and a person can review it quickly.

Where a wrong answer is costly, put a person in the loop for those cases. An agent that can act (search, compare, decide, write) should pause before it does anything high-stakes.

Quick decision guide

Your situationStart with
General language task, moderate volumeProvider model, fixed output shape
Answers must come from your documentsProvider model + RAG
Narrow task, huge volume, cost mattersMeasure first, then a small custom or fine-tuned model
Data the general models have never seenCustom model, with an evaluation set
Data can't leave your infrastructureSelf-hosted open model or custom model

Don't forget the product around the model

The model is one part. Users touch a web or mobile app, data has to flow in from your systems, and someone has to watch quality after launch. Plan the whole product, not just the intelligence inside it.

Big Immersive is a product team in Lahore, Pakistan, doing development and product management, with AI alongside our expertise in Blockchain and AR/VR. Our services practice is new. If you're deciding how to build an AI feature or product, read about our AI development work, browse our services, or book a 30-minute call.

Measured, not felt.


Follow Big Immersive

LinkedIn · GitHub

Section
The fastest way to start

Book a 30-minute project call.

We'll show how we'd build your idea and what the first milestone looks like.

Choose a time