AI infrastructure · by Saqib Sarwar
Saki Gateway
Saki Gateway is an OpenAI-compatible API gateway: applications keep calling the endpoints they already know, while the gateway routes each request to a configured provider and falls back when one is unavailable. A Next.js dashboard is served alongside the API so the gateway can be operated without leaving the browser.
Satellite dish — the gateway listening for signals. Kenney Space Kit (CC0). A real render from this site's 3D bench — not a screenshot of the app.
What it is
An OpenAI-compatible AI gateway with multi-provider routing, fallback, rate limiting, per-user credits, request logs and cost analytics — plus a dashboard served next to the API.
Highlights
- OpenAI-compatible `/v1/chat/completions` and `/v1/models` endpoints
- Multi-provider routing with automatic failover when a provider is unavailable
- Rate limiting, per-user credits and full request logs with latency and cost
- Cost analytics per model, provider and user
- Next.js dashboard served alongside the API
Endpoints
The API surface
The gateway speaks the OpenAI protocol, so an existing client only needs its base URL and key changed. These are the endpoints Saki Gateway exposes.
POST /v1/chat/completions
GET /v1/models
# OpenAI-compatible, routed across providers
$ curl $GATEWAY -H "Authorization: Bearer $KEY"
200 OK · compatible response
Built with
- FastAPI
- Next.js
- TypeScript
- SQLite
- Cloudflare
Live project
saki-gateway.vercel.app/(opens in a new tab)Created by
Saqib Sarwar · source repository started May 2026. Saki Gateway is one of the projects by Saqib Sarwar.
More projects by Saqib Sarwar
About the developer
Saki Gateway was built by Saqib Sarwar, a student software developer who builds websites, AI tools and open-source projects. See the portfolio homepage or browse more source code on GitHub (Saqibsarwar12).