Relay
Add realtime video & voice to your app with a single API.
Relay is an open-source, self-hostable gateway in front of LiveKit. It handles authentication, per-project isolation, and usage metering, so you can mint access tokens from one simple API and let your users talk — using the standard LiveKit client SDKs, with no lock-in.
The gateway model
Relay sits between your backend and LiveKit. The flow is simple, and Relay is never in the media path:
- Your server calls Relay's
POST /v1/tokenswith aroomand anidentity, authenticated with your secret key. - Relay returns a
{ token, url }— a signed LiveKit access token plus the URL of the LiveKit server to connect to. - Your client app passes those straight to a standard LiveKit client SDK to join the room. Media flows directly between your clients and LiveKit — Relay only issues the token.
Because rooms are automatically namespaced to your project, two projects can both use a room called lobby without ever colliding. The public API base URL is https://api.relay.welbuiltai.tech/v1.
Why Relay
- Open source. Apache-2.0 and fully self-hostable — run it yourself or use the hosted version.
- No client lock-in. Join rooms with the standard LiveKit client SDKs (JS, React, Flutter, Swift, Kotlin). Relay only mints tokens; the media path is pure LiveKit.
- Per-project keys & isolation. Each project has its own API keys and namespaced rooms, so projects never interfere with one another.
- Usage metering. Track participant-minutes per project in real time and see your usage at a glance.
Next steps
Ready to mint your first token? Start with the Quickstart, then learn how authentication works.