Skip to main content
The resources (image, video, voice) generated by our API are valid for 7 days. Please save the relevant resources as soon as possible to prevent expiration.

Create session

Request Headers Body Attributes Response Attributes Example Body
Request
Response

Get Session Info Result

Request Headers Query Attributes Response Attributes Example Request
Response

Close Session

Request Headers Body Attributes Response Attributes Example Request
Response

Pause Session

Calling this interface will pause the streaming, and the processing of data may be delayed by 0.5s to several seconds. Resending the websocket message will continue streaming. Please note that if you do not send messages for a long time after pausing, the connection will time out and you will need to restart the session.
Request Headers Body Attributes Response Attributes Example Request
Response

Get Session List

Request Headers Query Attributes Response Attributes Example Request
Response

Live Avatar WebSocket

you can get the url client_chat_room_url from the interface 【Create session】. like wss://stream-open.akool.io:8443/final_open_live/client_3835.chat
Receive Data Example Send Data
The payload here is not serialized. When using it, you need to use JSON.stringify() to convert the object into a json string. If it is other types, you can convert it to base64 first.
Receive Data
The payload has been parsed here. In actual use, you need to perform JSON.parse() to restore it first.
Response Code Description
Please note that if the value of the response code is not equal to 1000, the request is failed or wrong