API authentication
All endpoints except /health require a bearer token in the Authorization header. The same API key works for ASR and TTS.
Speech-to-Text (ASR)
Authorization: Bearer $SHUNYALABS_API_KEYText-to-Speech (TTS)
Same API key works for both transports. Pick the tab for the protocol you're using.
Authorization: Bearer sk-your-api-keySend the key as an Authorization header on the WebSocket upgrade. If your client can't set headers, fall back to a token query parameter:
wss://tts.shunyalabs.ai/ws?token=sk-your-api-key