Skip to main content
POST
/
v1
/
tts
/
ws-connect
create a streaming session
curl --request POST \
  --url https://silk-api.rumik.ai/v1/tts/ws-connect \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "model": "mulberry",
  "text": "Streaming in real time."
}
'
{
  "ws_url": "wss://silk-api.rumik.ai/v1/tts/ws/abc123",
  "token": "<string>"
}

Authorizations

Authorization
string
header
required

your rumik API key, e.g. rk_live_.... create one in the rumik dashboard.

Body

application/json
text
string
required

text to synthesize. sent again in the WebSocket synthesis frame.

Maximum string length: 2000
model
enum<string>
default:muga

which model to use.

Available options:
muga,
mulberry

Response

a one-shot WebSocket session.

ws_url
string<uri>

WebSocket URL to connect to.

Example:

"wss://silk-api.rumik.ai/v1/tts/ws/abc123"

token
string

one-shot token. pass as ?token=<token> when connecting.