| Placeholder | Replace with |
|---|---|
SLNG_API_KEY | An SLNG key from app.slng.ai/api-keys |
Create and delete keys
Keys are created and deleted from the API Keys page in the Dashboard. The secret value is shown once, at creation time. Copy it into your secret store immediately, because you cannot retrieve it later.One key, every host
You use the same SLNG key across SLNG hosts:| API | Host | Use for |
|---|---|---|
| Execution layer | https://api.slng.ai | Across all models in the platform |
| Models | https://api.slng.ai | Real-time TTS, STT, bridges, pronunciation dictionaries |
| Managed Agents | https://api.agents.slng.ai | Create and manage voice agents under /v1/agents |
| Batch API | https://api.batch.slng.ai | Asynchronous batch transcription endpoints |
Authenticate over HTTP
Pass the key as a bearer token in theAuthorization header:
Authenticate over WebSocket
Pass the key on the WebSocket upgrade request, either as anAuthorization header or as a token query parameter when the client cannot set headers:
The browser WebSocket API does not support custom headers. Use the
token query parameter from the browser, or set the Authorization header from a server-side client.Rotate a key
Keys cannot be rotated in place. To replace a key without downtime:Roll callers over
Update each caller to use the new key: backend services and any local environments. Verify traffic on the new key before continuing.
Bring your own provider key
To run synthesis or transcription against your own upstream provider account, add theX-Slng-Provider-Key header alongside your SLNG key. Read the full guide to Bring Your Own Key setup.
Errors
A missing or invalid key returnsHTTP 401, or an auth_error frame over WebSocket. See Error Codes & Troubleshooting.