Most teams do not need another AI vendor. They need one key that reaches many models, and a bill they can explain.
That is the whole pitch behind Ai8888.uk, and this post is the engineering version of it: what we wired, what broke, and what we would check before trusting any gateway with production traffic.
Why a gateway instead of five SDKs
A typical product team ends up with a chat model for drafting, a stronger model for hard requests, an embedding model for search, an image model for the interface, and something for voice or video. Five vendors means five SDKs, five retry policies, five rate-limit shapes and five invoices.
An OpenAI-compatible gateway collapses that into one base URL and one key. Existing code keeps working, because the request and response shapes are already familiar. Switching a model becomes a string change, not a migration project.
The four things that actually matter
- Protocol parity. Streaming, tool calls, JSON mode, vision inputs and token accounting need to behave the same way across providers. If one model silently drops a tool call, your agent fails in a way that looks like a prompt bug.
- Model routing you can read. A routing table should be a file, not folklore. Alias names should map to concrete provider models, with a fallback chain and a visible reason for every fallback.
- Failure behaviour. Timeouts, 429s and provider outages must surface as structured errors with a retry hint. Silent retries hide capacity problems until the invoice arrives.
- Cost visibility. Per-key and per-model usage, with the same unit everywhere. Tokens are not money, but they are the only thing you can attribute before the bill lands.
A minimal setup that survives contact with users
Start with three aliases: a fast chat model, a strong reasoning model, and an embedding model. Point your app at the fast one by default. Route the hard 10% explicitly. Keep the strong model out of background jobs until you have measured cost per request.
Then add two habits:
Log the alias, the resolved provider model, latency and token counts for every call. When quality drops, you can answer "which model actually served this?" in one query.
Keep one eval set of twenty real prompts. Run it after any routing change. Most gateway incidents are routing incidents, not model incidents.
What we got wrong at first
We started with too many aliases. Every team invented their own names, and nobody could tell which provider a request hit. We cut it to a small, documented set and put the routing table under review.
We also treated 429s as noise. They were not. They were the first signal that one provider's quota was being consumed by background jobs. Separating interactive and batch keys fixed it.
Where this fits
If you are building a product and want to try many models without rewriting your stack, an OpenAI-compatible endpoint is the least dramatic upgrade you can make. Keep your client code. Change the base URL, pick an alias, and measure.
You can try the hosted version here: https://ai8888.uk/?utm_source=devto&utm_medium=social&utm_campaign=launch_2026q4&utm_content=gateway_notes
If you are already running a gateway, I would like to hear which failure mode bit you first: protocol drift, routing surprises, or quota accounting.
Top comments (0)