SPC-02 / Service

LLM Integration Services

Most companies now use several large language models. We build the layer that makes that manageable: an LLM gateway with one API for every provider, routing that sends each request to the cheapest model that can do it well, orchestration for multi-step work, and observability that shows cost, latency and quality per feature.

Fixed price per scoped pilot. Your cloud. Your code.

System designSPC-02
Your productModel gatewayChecked output
  • LLM gateway: one API across Claude, GPT, Gemini and open-source models
  • Model routing and fallbacks by cost, latency and quality
Illustrative workflow. Scope and controls agreed for your project.

The problem, made clear

Start with the job.
Build what it needs.

LLM gateways, model routing, orchestration and observability that cut cost and keep quality measurable.

the short answer

What is LLM integration?

LLM integration is connecting large language models such as Claude, GPT and Gemini to your products and data in a controlled way. It typically includes retrieval over your documents (RAG), a gateway that gives one API across providers, routing that sends each request to the right model, and tracing that records cost, latency and quality.

01 / What we build

Our LLM integration services

Gateway

A single, governed entry point for every model call, with keys in a vault, rate limits, caching and data-residency rules per team.

Routing

Requests go to the model that fits: small and fast for simple tasks, frontier models for hard reasoning, with automatic fallback when a provider is down.

Orchestration

Workflows that chain retrieval, tools and models with retries and checkpoints, built with LangGraph, the OpenAI and Anthropic SDKs or plain TypeScript and Python.

Observability and evaluation

Every call traced with tokens, cost and latency; evaluation sets score quality so optimisation never silently breaks answers.

02 / How we deliver it

LLM integration process

  1. phase 01

    Audit

    We map where models are called today, what they cost and where quality is unmeasured.

  2. phase 02

    Gateway and tracing

    One entry point and full tracing go in first, so every later change is measured.

  3. phase 03

    Optimise

    Routing, caching, prompt and context tuning, checked against your evaluation set.

  4. phase 04

    Hand over

    Dashboards, runbooks and training so your team can add models and features safely.

03 / What changes

What LLM integration changes for your team

  • One place to manage every model and key
  • Lower cost per request without losing quality
  • Provider outages handled by automatic fallback
  • Cost and quality visible per feature
Book a strategy call

Claude, GPT, Gemini or open-weight models: choosing a model

Choose a model by testing candidates on your own tasks, not by reputation. Claude, GPT and Gemini are hosted model families run by their providers, while open-weight models such as Llama, Mistral or Qwen can run on infrastructure you control. Many products use more than one: a capable model for hard requests and a smaller, cheaper one for routine work.

The hosting route matters as much as the model. Claude is available through the Anthropic API, Amazon Bedrock and Google Cloud Vertex AI. GPT models are available through the OpenAI API and Azure OpenAI. Gemini is available through the Gemini API and Vertex AI. Using the cloud you already have often simplifies contracts, region choice and data agreements.

Because models change often, we keep the choice reversible. Your application calls one internal interface, prompts and evaluation sets live with the code, and switching to another model is a configuration change that must pass your evaluation set before release. A new model version then becomes a tested upgrade rather than a rebuild.

Claude, GPT, Gemini and self-hosted open-weight models compared
Model familyHow you access itWho processes the dataVersion changesCost pattern
Claude (Anthropic)Anthropic API, Amazon Bedrock or Google Cloud Vertex AIAnthropic, or AWS or Google Cloud when used through their platformsThe provider releases and retires versions on its own schedulePay per token used, with no idle cost
GPT (OpenAI)OpenAI API or Azure OpenAIOpenAI, or Microsoft when used through AzureThe provider releases and retires versions on its own schedulePay per token used, with no idle cost
Gemini (Google)Gemini API or Google Cloud Vertex AIGoogleThe provider releases and retires versions on its own schedulePay per token used, with no idle cost
Open-weight models, self-hostedYour own servers or cloud account, using serving software such as vLLMYou, inside your own environmentYou decide when to upgrade and can keep a version as long as you needPay for GPU capacity whether it is busy or idle, plus the effort to run it

Model names, prices and rankings change often, so candidate models are compared on your own evaluation set during the audit rather than on public benchmarks.

Prompting vs RAG vs fine-tuning: when each fits

Start with prompting, add retrieval (RAG) when the model needs your information, and consider fine-tuning only when you need a consistent format, tone or narrow skill that prompting cannot deliver reliably. Most business features are solved with good prompts plus retrieval. Fine-tuning changes how a model behaves, and it is a poor way to teach it facts that change.

The approaches stack rather than compete. A fine-tuned model can still use retrieval, and every option needs an evaluation set to prove it helps. A fine-tune is also tied to one base model, so moving to a newer model means preparing and running the tuning again. That is why we test the cheaper options first and fine-tune only with evidence.

Prompting vs RAG vs fine-tuning
FactorPromptingRAGFine-tuning
What it changesThe instructions and examples sent with each requestThe information sent with each request, retrieved from your sourcesThe model itself, by training it on your examples
Best forClear tasks the model can already doAnswers that depend on your documents, records or policiesA consistent format, tone or narrow task at high volume
Keeping information currentEdit the promptUpdate the source documents and the indexTrain again on new examples
Can cite its sourcesNoYes, answers can point to the passages usedNo
What you need to startExample inputs and the outputs you expectMaintained documents with clear access permissionsA large set of high-quality examples and an evaluation set
Relative effortLowestModerate: ingestion, search and permissionsHighest: data preparation, training runs and re-evaluation

Fixing and hardening an existing LLM feature

To fix an LLM feature that already exists, measure it first. We add tracing so every request records its prompt, context, model, cost, latency and output, then build an evaluation set from real requests, including the ones that went wrong. With that baseline in place, each change to a prompt, model or retrieval step is judged by its effect on the scores.

The usual faults are ordinary engineering problems: output that breaks the expected JSON format, missing or stale context, prompts edited by many people with no tests, no timeout or retry, and no plan for a provider outage. Fixes include structured output checked against a schema, retries with backoff, fallback to a second model or provider, and checks that stop off-topic or unsafe answers.

Hardening ends with alerts on error rate, latency and cost, and a release check that runs the evaluation set before any prompt or model change ships. Your team keeps the traces, the evaluation data and a runbook, so quality stays measured after handover instead of depending on whoever wrote the original prompt.

How to control LLM costs

LLM cost depends on how many tokens each request uses and which model handles it, so you control it by sending less text and using cheaper models where they are good enough. The main levers are routing, caching, batching and token budgets, each checked against your evaluation set so that savings do not quietly lower answer quality.

The first step is visibility. Tracing every call with its token count, model and feature shows which feature, customer or prompt drives the bill. Effort then goes where it pays off, such as one feature with an oversized prompt, instead of switching providers by default and hoping the total falls.

Some savings come from sending less: shorter system prompts, fewer retrieved passages and capped output length. Others use provider features such as prompt caching and batch processing, which work differently at Anthropic, OpenAI and Google. The gateway is built to use what each provider offers, so your application code does not need to know the details.

  • Routing: each type of request goes to the smallest model that passes your evaluation set
  • Prompt caching: long, repeated instructions or reference text billed at a reduced rate by providers that support it
  • Response caching: repeated questions answered without a new model call
  • Batching: work that is not urgent, such as overnight document jobs, sent through cheaper batch interfaces
  • Token budgets: limits and alerts per request, per feature and per customer

04 / Cost and timeline

Typical cost and timeline

Typical ranges in US dollars to help you budget. They are not quotes: your scope, integrations and compliance needs set the final price.

Build cost

AI features added to an existing product
USD 15,000 to 80,000
Hosting and monitoring
USD 100 to 2,000 per month

Timeline

Gateway, tracing and first optimisation
2 to 6 weeks

Model usage is billed by your providers at cost; routing and caching are designed to lower it.

05 / Fit check

Is this right for you?

This service fits when a named business owner can define the workflow, provide access to relevant systems and review the result. Start with a bounded scope and measurable acceptance checks. If an existing tool already meets the need, or the required data is unavailable, resolve that before commissioning a custom build.

A good fit if

  • Several teams or products already call LLMs directly
  • Model spend is rising and nobody can see the cost per feature
  • You need fallbacks when a provider is slow or down
  • You want to measure answer quality before changing models or prompts

Not a fit if

  • You have one small, low-volume feature, where a direct API call is enough
  • You have not chosen a use case for AI yet, so start with AI consulting
  • You cannot share example requests or usage data for testing

Technology and integrations

LLM integration tech stack and providers

We agree the tools, permissions and deployment environment when we scope your project.

  • LLM gateway: one API across Claude, GPT, Gemini and open-source models
  • Model routing and fallbacks by cost, latency and quality
  • Orchestration for multi-step and multi-agent workflows
  • Observability: traces, cost per feature, evaluation scores

Related work · our own product

MLCarex

MLCarex is our own healthcare platform. Patients search, compare and book verified doctors, hospitals, labs and physiotherapy centres, online or in person.

Product engineering experience from the same team. The project scope above is tailored to your needs.

Explore MLCarex

06 / FAQ

Questions about LLM integration, routing & optimisation.

How much does LLM integration cost?

Typical ranges, not quotes. AI features added to an existing product: USD 15,000 to 80,000. Hosting and monitoring: USD 100 to 2,000 per month. Gateway, tracing and first optimisation: 2 to 6 weeks. Model usage is billed by your providers at cost; routing and caching are designed to lower it. We agree a fixed price for the first phase before any work begins.

What is an LLM gateway and do we need one?

It is a single entry point for every model call in your company. If more than one team or model is in use, a gateway gives you central keys, cost tracking, rate limits, caching and data rules in one place.

How does LLM routing reduce cost?

Many requests do not need the largest model. Routing sends simple tasks to smaller, cheaper models and keeps frontier models for hard ones, checked against an evaluation set so quality does not drop.

Which tools do you use for orchestration and observability?

We choose per project: LangGraph or plain code for orchestration, and OpenTelemetry-based tracing or tools such as Langfuse for observability. Everything runs in your cloud where needed.

Can LLMs run in our private cloud?

Yes, in two ways. Hosted models can be reached through your own cloud account in the region you choose: Claude through Amazon Bedrock or Vertex AI, GPT through Azure OpenAI and Gemini through Vertex AI. Open-weight models can run entirely on servers you control, even on a private network, though your team then runs and updates the GPU infrastructure.

How do you stop company data leaving our environment?

First decide what may leave at all. Data that must stay inside goes only to self-hosted open-weight models. For everything else, calls pass through your own cloud account and gateway, personal data is removed or masked before a request is sent, keys stay in your vault and every call is logged. We also confirm in each provider’s current terms that inputs are not used for training.

How do you measure the quality of LLM output?

With an evaluation set: real inputs paired with what a good answer looks like, written with the people who know the work. Answers are scored by code where possible, for example format and required fields, by a second model against a written rubric, and by people reviewing samples. Scores are tracked per release, so every change is compared on the same examples.

What is the difference between LLM integration and an AI agent?

LLM integration adds model calls to a product or process and makes them reliable, measurable and affordable, for tasks such as summarising, extracting fields, answering from documents or drafting text. An AI agent goes further: it decides which steps to take and which tools to call to finish a task. Many agents are built on an integration layer like this one.

Can you take over an LLM feature another team built?

Yes. We start with a short review of the code, prompts, model calls and current costs, then work in your repository and review process from the first change. Tracing and an evaluation set go in before anything is rewritten, so improvements are measured against current behaviour. If rebuilding would cost less than repairing, we say so plainly and explain why.

What happens when a provider updates or retires a model?

Providers retire older versions on published schedules, and a new version can behave differently even when the name looks similar. We pin exact model versions in production, so behaviour does not change without notice. When an upgrade is due, the new version runs against your evaluation set first, and the switch is a tested configuration change rather than a rewrite.

Your next step

Make the next step a working pilot.

Thirty minutes, one workflow, an honest view of whether an agent will pay for itself.