Discussions

Ask a Question
Back to all

Questions about API usage

Hello HeyGen team,
I have a few questions regarding the use of your API:

  1. Avatar Persistence Between Sessions
    Is it possible to create an interactive avatar instance once per app instance so that I don’t need to recreate it every time a session timeout occurs? Can the newSession and startSession methods somehow reuse a previously created avatar?

  2. Concurrent Avatar Usage
    How many avatars can be created and be active at the same time?

  3. ElevenLabs Voice Configuration
    What’s the correct way to configure ElevenLabs voices? If we already have a voiceId from ElevenLabs, how should we set it in the config JSON to ensure the avatar uses that voice? I’m currently receiving an error indicating that the voice ID is not recognized. Is it necessary to first create a voice entry in the HeyGen dashboard (using the imported ElevenLabs voice) and then reference that instead?

Thanks for your support!
Best regards