Prerequisites
- An SLNG account
- A SLNG key (get one at app.slng.ai)
- Basic knowledge of REST APIs or WebSockets
Authentication
Every request needs an SLNG key in theAuthorization: Bearer SLNG_API_KEY header. Get one from the Dashboard, and replace SLNG_API_KEY in the examples below with your key. For WebSocket auth, key rotation, and bringing your own provider key, see Authentication & API Keys.
Your First Request
Text-to-Speech (HTTP)
A Text-to-Speech (TTS) request over HTTP turns text into an audio file:Replace
SLNG_API_KEY with your SLNG key and run the command. Once the request completes, you have a hello.wav file in the current directory.It sounds like this:Go Further
Point your stack at SLNG
Route your existing voice agent through the gateway and keep your code.
Use a framework plugin
Native integrations for LiveKit, Cognigy, and Jambonz.
Explore the execution layer
How SLNG routes and optimizes every turn between your app and the models.
Build a voice agent
Combine streaming STT, low-latency TTS, and tool-calling to greet, route, and escalate calls.
HTTP vs. WebSocket
Understand when to use each protocol and their trade-offs.
Browse models
Explore all available TTS and STT models and find the right one for your use case.