Skip to main content
WSS
wss://dev.voice.ai
/
api
/
v1
/
tts
/
stream
Messages
bearerAuth
type:http

API key (vk_*). Include in Authorization header: 'Bearer YOUR_API_KEY'. Required for all WebSocket connections. See the Authentication guide for details.

Initialization Message
type:object

First message to set up the session (sets voice, model, language)

Text Buffering Message
type:object

Buffer additional text before flush (text-only, no params). After flush, connection closes.

Audio Chunk Response
type:object

Base64-encoded audio chunk (streamed immediately)

Completion Signal
type:object

Sent after all audio chunks. Server then closes connection (code 1000).