An AI gateway is a control plane between your application and model providers that handles request routing, inference execution, logging and policy enforcement. A rule change moves where requests go and what comes back, while the application code stays identical. Unit tests stay green. The blast radius lands on production traffic.
The failures are quiet. A new weighted split sends part of your traffic to a cheaper model and answer quality drops on the two intents that matter most. A fallback now points at a provider in another region and data that should have stayed in one jurisdiction starts leaving it. Vercel's AI Gateway documentation is explicit that region pinning is opt-in: with no inferenceRegion set, the gateway routes to whichever region can serve the model and may resolve to a different region on each request (Vercel AI Gateway regional inference). If a config change drops a pin nobody documented, residency breaks and nothing in your test suite notices.
Latency behaves the same way. Routing placement moves it by multiples, not percentages. In the Supabase Edge Functions thread, one developer measured cold starts around 1.2 seconds and repeated requests between roughly 400 and 200 milliseconds, against about 120 milliseconds and 30 milliseconds on Deno Deploy directly (Supabase discussion). Supabase later reported a median cold latency of 400 milliseconds and a hot median of 125 milliseconds, with regional variation of about plus or minus 100 milliseconds. The absolute numbers matter less than the lesson: a one line rule edit can produce a large shift in p95.
A replay suite makes that measurable. You capture real calls once, replay them against the candidate config, and compare two numbers you can defend in review. The gateway is the right place to capture, because every request already flows through it. Gateway tracing exists precisely to answer whether a guardrail redacted the prompt, how long the model took versus the network, and what the gateway sent upstream (TrueFoundry gateway tracing).



