Gateway
A single, governed entry point for every model call, with keys in a vault, rate limits, caching and data-residency rules per team.
SPC-02 / Service
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.
The problem, made clear
LLM gateways, model routing, orchestration and observability that cut cost and keep quality measurable.
the short answer
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
A single, governed entry point for every model call, with keys in a vault, rate limits, caching and data-residency rules per team.
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.
Workflows that chain retrieval, tools and models with retries and checkpoints, built with LangGraph, the OpenAI and Anthropic SDKs or plain TypeScript and Python.
Every call traced with tokens, cost and latency; evaluation sets score quality so optimisation never silently breaks answers.
02 / How we deliver it
phase 01
We map where models are called today, what they cost and where quality is unmeasured.
phase 02
One entry point and full tracing go in first, so every later change is measured.
phase 03
Routing, caching, prompt and context tuning, checked against your evaluation set.
phase 04
Dashboards, runbooks and training so your team can add models and features safely.
03 / What changes
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.
| Model family | How you access it | Who processes the data | Version changes | Cost pattern |
|---|---|---|---|---|
| Claude (Anthropic) | Anthropic API, Amazon Bedrock or Google Cloud Vertex AI | Anthropic, or AWS or Google Cloud when used through their platforms | The provider releases and retires versions on its own schedule | Pay per token used, with no idle cost |
| GPT (OpenAI) | OpenAI API or Azure OpenAI | OpenAI, or Microsoft when used through Azure | The provider releases and retires versions on its own schedule | Pay per token used, with no idle cost |
| Gemini (Google) | Gemini API or Google Cloud Vertex AI | The provider releases and retires versions on its own schedule | Pay per token used, with no idle cost | |
| Open-weight models, self-hosted | Your own servers or cloud account, using serving software such as vLLM | You, inside your own environment | You decide when to upgrade and can keep a version as long as you need | Pay 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.
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.
| Factor | Prompting | RAG | Fine-tuning |
|---|---|---|---|
| What it changes | The instructions and examples sent with each request | The information sent with each request, retrieved from your sources | The model itself, by training it on your examples |
| Best for | Clear tasks the model can already do | Answers that depend on your documents, records or policies | A consistent format, tone or narrow task at high volume |
| Keeping information current | Edit the prompt | Update the source documents and the index | Train again on new examples |
| Can cite its sources | No | Yes, answers can point to the passages used | No |
| What you need to start | Example inputs and the outputs you expect | Maintained documents with clear access permissions | A large set of high-quality examples and an evaluation set |
| Relative effort | Lowest | Moderate: ingestion, search and permissions | Highest: data preparation, training runs and re-evaluation |
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.
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.
04 / 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.
Model usage is billed by your providers at cost; routing and caching are designed to lower it.
05 / Fit check
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
Not a fit if
Technology and integrations
We agree the tools, permissions and deployment environment when we scope your project.
Related work · our own product
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 MLCarex06 / FAQ
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
07 / Brief this project
Pick the one closest to your project. The contact form opens with it filled in, so you can edit it before you send. A senior engineer replies within one working day.
We want one LLM gateway for all our teams, with central keys, rate limits and cost tracking.
Use this briefWe want to reduce our LLM costs with routing and caching without losing quality.
Use this briefWe want retrieval over our documents so our product answers with cited sources.
Use this briefWe want tracing and evaluation on our AI features so we can measure quality on every release.
Use this briefYour next step
Thirty minutes, one workflow, an honest view of whether an agent will pay for itself.