Make the avatar speak

Synthesises text and streams the avatar speaking it over the open WebRTC connection. Queued behind anything already playing — use DELETE /streams/render/{streamId} to cut in.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
curl -X POST 'https://apis.elai.io/api/v1/streams/render/66a1f0c2b7cd13032a9c6200' \
  -H 'Authorization: Bearer YOUR_API_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
  "text": "Hello, and welcome to the demo."
}'

Next: interrupt-stream-speech — cut the current playback short.

Path Params
string
required

Stream id returned by POST /streams.

Body Params
string
required

What the avatar should say.

Responses

streamId is not a valid ObjectId, there is no such stream, it belongs to another workspace, or it is already closed. All four cases return 400.

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json