Create Session
Start with an image, a Persona, and a voice.
Create from Character
Reuse a saved character’s configuration.
Get Session
Check status and effective settings.
List Sessions
Find open sessions in your workspace.
Close Session
End a session and release its resources.
Authentication and responses
Send your Vivix API key asAuthorization: Bearer <VIVIX_API_KEY>. REST calls belong on your backend.
Responses use the {code, message, data} envelope. code: 0 means success; a nonzero code indicates an error. Session fields are inside data.
Connect and control
Usedelivery.media to join the TRTC or Agora room. Connect to control.url with control.client_secret to exchange client events and server events.
For a browser, add the credential as the token query parameter:
closing; use Get Session to confirm closed. See session management for duration limits and automatic closure.
Persona
Useavatars[].persona to describe each character’s personality, replies, movement, and listening habits. See Write a Persona for examples.
Pipeline configuration
Setpipeline_config when creating the session. It cannot be changed through session.update. The Create Session reference defines its fields; these guides explain when to use each section:
tts_config: choose the voice and speech service.asr_config: choose the speech recognition service.llm_config: connect a custom dialogue model or adjust generation settings.a2a_config: render an avatar from audio generated by your application.tag_audio_enabled: play short vocal cues before the main answer.