Inference & deployment

LLM Inference Infrastructure Without Lock-In

We help you choose and design how models are served, whether managed APIs, self-hosted open-weight models or a hybrid, based on measured TCO, latency, throughput and control.

The problem

The API-versus-self-hosting decision is usually made on intuition

Self-hosting looks cheaper when you compare per-token API prices to GPU hourly rates, and more expensive once you add idle capacity, engineering time, upgrades and on-call. Managed APIs look simpler until rate limits, provider outages or data handling requirements constrain the product. The right answer depends on traffic shape, latency targets, model quality requirements and your team's capacity to operate infrastructure.

Signals you’ll recognize

  • The team is debating self-hosting an open-weight model without a TCO model or quality comparison.
  • Provider rate limits or capacity errors are affecting production traffic.
  • There is a single provider with no fallback path, and an outage would take the feature down.
  • GPU instances are provisioned but utilization is low or unknown.
  • Data handling requirements are unclear for which data may be sent to third-party APIs.
  • Switching models would require changes across many services because provider SDKs are called directly.

Inference is where model choices turn into ongoing operating cost and reliability risk. Decisions about managed APIs, self-hosted open-weight models or a hybrid shape your latency, your exposure to provider rate limits and outages, and how hard it will be to switch models later.

We make that decision with measurements: your traffic profile, your quality bar expressed as an eval set, and a TCO model where every assumption is visible and editable. Comparing per-token API pricing with GPU hourly rates is not enough on its own; utilization, peak capacity, engineering time and on-call belong in the comparison too.

On the architecture side, we favor designs that keep you portable: a gateway layer that abstracts providers, explicit fallback behavior, rate-limit handling with backoff and quotas, and tracing that attributes latency and cost per request. Provider-specific features are used where they earn their keep, with the tradeoff written down.

What’s included

Workload characterization

We profile request volume, burstiness, input and output token distributions, concurrency and latency targets per workload.

TCO model

We build a cost model for managed API, self-hosted and hybrid options, covering compute, utilization, storage, egress, engineering time and operations, with variables you can update.

Quality comparison

We score candidate models, including open-weight ones, on your eval set so cost comparisons are made at equivalent quality.

Serving architecture

We design the serving path: inference server choice, batching, quantization tradeoffs, autoscaling, and GPU sizing for the target throughput and p95 latency.

Gateway, routing and fallback

We specify a model gateway layer for provider abstraction, retries with backoff, rate-limit handling, fallback providers and per-tenant quotas.

Portability and data handling review

We identify lock-in points and document which data flows to which provider or environment, so your team can apply its own policies.

What’s not included

  • Procuring hardware, cloud commitments or reserved capacity on your behalf.
  • Guaranteeing data residency in a specific country or region; we document options for your team to validate.
  • Long-term managed hosting of your models, unless separately scoped.

How the engagement runs

Read our approach
  1. Step 1

    Profile workloads

    Gather traffic, token distributions, latency targets and constraints per workload from logs or traces.

  2. Step 2

    Shortlist models and deployment options

    Select managed and open-weight candidates and score them on your eval set to define acceptable quality.

  3. Step 3

    Model TCO and capacity

    Compute cost and capacity for each option across expected and peak traffic, with explicit assumptions.

  4. Step 4

    Design and validate

    Design the serving and gateway architecture, and validate throughput and p95 latency with load tests on representative traffic.

  5. Step 5

    Plan migration and operations

    Deliver a phased rollout, rollback criteria, monitoring and runbooks.

What we measure

Scoped engagement: deliverables, timeline and price are agreed in writing before work starts.

Cost per million tokens served (self-hosted)
Infrastructure cost for the period divided by tokens actually served, so idle capacity is included.
GPU utilization
Average and peak accelerator utilization from your monitoring stack, compared with provisioned capacity.
p50 and p95 latency, time to first token
Measured under load tests and production traces, per model and deployment option.
Throughput at target latency
Requests or output tokens per second sustained while staying within the p95 target.
Error and rate-limit rate
Share of requests failing with capacity, rate-limit or timeout errors, per provider and endpoint.
Cost per successful task
Total inference and operations cost divided by tasks that pass the agreed quality criteria.

Examples

Hypothetical example

Self-hosting evaluated for a steady internal workload

An internal summarization workload has steady daytime traffic and a moderate latency target. The TCO model compares a managed API with a self-hosted open-weight model on a small GPU pool, including utilization outside working hours and engineering time. The decision depends on whether the open-weight model passes the eval set, and the model shows at which volume each option becomes cheaper under the stated assumptions.

Hypothetical example

Fallback provider for a customer-facing feature

A customer-facing assistant depends on one provider and has had user-visible errors during capacity incidents. A gateway with a secondary model, scored as acceptable on the eval set, is specified with circuit breakers and clear rules for when to fail over and when to return a degraded response.

What you receive

Workload profile

Traffic and token characteristics with latency and throughput targets per workload.

TCO model

A spreadsheet or notebook with editable assumptions comparing managed, self-hosted and hybrid options.

Model quality comparison

Eval results for each candidate model on your tasks.

Reference architecture

Serving, gateway, routing, fallback and observability design with sizing guidance.

Migration and operations plan

Phased rollout, load test plan, rollback criteria and on-call runbooks.

When this isn’t the right fit

We’d rather tell you before we start.

  • Low-volume workloads where a managed API is clearly simpler and the cost difference is negligible.
  • Teams without the capacity or appetite to operate GPU infrastructure, unless the plan is to stay on managed APIs.
  • Situations needing a legal or compliance determination about data residency; that requires your counsel.

Common questions

Is self-hosting an open-weight model cheaper than an API?

Sometimes. It depends on volume, traffic shape, utilization, the model size needed to meet your quality bar and your operating costs. We model it with your numbers rather than assuming either way.

How do you avoid vendor lock-in?

By putting a thin gateway between your services and providers, keeping prompts and eval sets provider-agnostic, and validating at least one alternative model on your evals. Some provider-specific features are worth using; we document where you are trading portability for them.

Can you guarantee our data stays in a specific region?

No. We can document which providers and deployment options offer regional controls and how your data flows, but residency and compliance determinations belong to your legal and security teams.

Do you run the infrastructure after the project?

Our default is to hand off to your team with runbooks and monitoring. Ongoing support can be scoped separately if needed.

Talk to an AI Engineer

We discuss your workloads, constraints and current setup, and outline what a TCO and architecture assessment would cover.