Dev.to has plenty of "here is my AI stack" posts. This one is about the part that survives: the protocol.
If two vendors speak different protocols you do not have one stack, you have two stacks and a translation layer you maintain by hand. Everything below follows from that.
This post is about the plumbing: what an AI gateway actually does, where it helps, and where it quietly hurts.
The shape of the problem
A normal AI feature needs more than one model:
a cheap chat model for drafting
a strong model for the hard 10% of requests
an embedding model for retrieval
an image model for the UI
increasingly, a video or music model for marketing
Each one arrives with its own SDK, auth scheme, rate limits, error format, and billing unit. Four vendors means four ways to fail.
What a gateway buys you
1. One client, many models. If the gateway speaks the OpenAI API, your existing code works.…