knowledge_id parameter to enable the AI to use documents and URLs from your knowledge base for more accurate and relevant responses.Authorizations
Your API Key used for request authorization. If both Authorization and x-api-key have values, Authorization will be used first and x-api-key will be discarded.
Body
Digital human model in real-time avatar. If you want to use a custom uploaded video, you need to call the avatar/create interface to create a template. This process takes some time to process. You can check the processing status through the avatar/detail interface. When status=3, you can use the avatar_id field to pass it in.
Session duration in seconds (max: 3600). Credits are pre-charged for the full duration, but any unused credits will be refunded after the session ends. Rates depend on your subscription plan.
x <= 3600Knowledge base ID to provide context for AI responses. Create and manage knowledge bases using the Knowledge Base API. When provided, the AI will use documents and URLs from the knowledge base to enhance response accuracy.
Voice ID to change avatar's voice. Get valid IDs from Voice List API
Custom voice model URL. Get valid URLs from Voice List API
Language code to use for the session. Get valid codes from Language List API
Avatar interaction style. "1" = Retelling (avatar repeats content), "2" = Dialogue (avatar engages in conversation)
1, 2 URL of background image/video for avatar scene
Stream type to use for the session. "agora" = Agora (default), "livekit" = Livekit, "trtc" = TRTC
agora, livekit, trtc