Function Category | API Title | | | No. | API | Description | |
Session Management | Create a session | | 1 | POST /v2/ivh/sessionmanager/sessionmanagerservice/createsession | Create a session using the Digital Human Platform project and obtain the playback URL for the digital human video. | | |
| | | 2 | POST /v2/ivh/sessionmanager/sessionmanagerservice/createsessionbyasset | Use the authorized avatar asset to directly create a session and obtain the playback URL for the digital human video. For situations where no project has been created on the digital human platform. | | |
| | | 3 | POST /v2/ivh/sessionmanager/sessionmanagerservice/statsession | It is used to query the current status of a specified session. | | |
| | | 4 | POST /v2/ivh/sessionmanager/sessionmanagerservice/startsession | After the session is ready, this API must be called to proceed with driving. | | |
| | | 9 | POST /v2/ivh/sessionmanager/sessionmanagerservice/closesession | Close the session, stop the digital human streaming, and release concurrency. | | |
| Query session list | | - | POST /v2/ivh/sessionmanager/sessionmanagerservice/listsessionofuin | Used for querying all ongoing conversation lists of a certain uin account. | | |
| | | - | POST /v2/ivh/sessionmanager/sessionmanagerservice/listsessionofprojectid | It is used to query all ongoing conversation lists under the Digital Human Project. | | |
| | | - | POST /v2/ivh/sessionmanager/sessionmanagerservice/listsessionofassetvk | It is used to query all ongoing conversation lists under the personal asset image. | | |
Instruction-driven digital human Note: | Persistent connection drive (WebSocket) | | 5 | WSS /v2/ws/ivh/interactdriver/interactdriverservice/commandchannel | Create a websocket persistent connection channel to send drive instructions upstream and receive downstream messages. | | |
| | | 6 | - | After you establish a long connection channel, you can use a WebSocket persistent connection to send text to drive the digital human. | | |
| | | 6 | - | After establishing a persistent connection channel, you can send streaming text to drive the digital human through a websocket persistent connection. | | |
| | | 6 | - | After establishing a persistent connection channel, you can send audio to drive the digital human through a websocket persistent connection. | | |
| | | 7 | - | If the cloud does not receive any drive instructions for more than 10 minutes after that, the connection will be automatically disconnected and concurrency will be released. After creating a long connection channel, the session can be extended by sending heartbeat instructions. The sending interval is greater than 30 s and less than 10 minutes. | | |
| Direct drive (HTTPS) | | 8 | POST /v2/ivh/interactdriver/interactdriverservice/command | Send text-driven instructions via HTTP method Note: No need to create a persistent connection channel, commonly used for trial use, one sentence drive and other scenarios. | | |
Other APIs | | | - | POST /v2/ivh/sessionmanager/sessionmanagerservice/updatesessionconfig | It is used for real-time updating of the character's size, position, and background image in the video stream. This API is no longer recommended for use, and there will be no further iteration of new features. | | |
| | | - | POST /v2/ivh/sessionmanager/sessionmanagerservice/gettrtcsign | When a live session is created and the TRTC protocol is selected, this API is used by users other than the Digital Human to obtain the key for entering the room. | |