JT / SAGE IDEAS Work with me

Glossary · Operations

LLM gateway

A single doorway in front of many models that handles routing, limits, and logging.

Also called Model router

An LLM gateway is one endpoint that sits in front of all your models. Your app calls the gateway, and the gateway decides which model actually answers, keeps a log, and enforces limits. The part people miss: it turns "which model, which key, which provider" into a config change instead of a code change.

Why it matters

Without it, every model call is wired straight into your code, so swapping providers or adding a fallback means editing and redeploying. When one provider goes down, you have nowhere to reroute. When the bill spikes or someone leaks a key, you have no single place to see spend, set a limit, or shut it off. The gateway gives you one control point for all of that.

How it works

It exposes a standard API and translates each request into whatever the target provider expects, so your code talks to one shape no matter what runs underneath. Routing rules pick the model by cost, latency, or task, and fall back to a backup when the primary fails or times out. It logs every request and response, counts tokens for spend tracking, and enforces per-key rate limits and budgets. Popular ones are LiteLLM, OpenRouter, and Portkey.

Receipts · the newsletter

Receipts: AI engineering, with the evidence attached.

One real finding with its proof, one runnable lab, and one thing I would do differently. Weekly, Tuesday morning, a five-minute read.

required

Free. One email a week. Confirm first, unsubscribe in one click. How it works

Not ready to talk yet?

Get the AI release-readiness checklist

Eighteen checks to pass before an LLM feature meets a customer. The checklist is free and open: no email wall. Leave one email and I also send the sample evaluation report that goes with it. One email is all I ask for.

required

Inside the checklist: 18 checks, 5 groups

  • Ground truthwithout this, every other check is opinion3 checks
  • Measurement"it seems better" is not a metric4 checks
  • Safety batterythe failure modes that end up in screenshots5 checks
  • The gatea red eval that blocks nothing is decoration3 checks
  • Blast-radius controlautonomy is earned with evidence, never assumed3 checks

Have a system that needs to work?

Tell me the problem. I will tell you honestly whether I am the right engineer for it.

Book a 15-minute call Run a free audit Not sure what you need? Answer 3 questions