Discussions

Ask a Question
Back to All

How to retrieve the list of available avatars based on my plan?

Hi HeyGen team,

I am currently using the following API endpoint to retrieve the list of avatars: List Avatars API v2 While I can successfully fetch the list of avatars, I encounter issues when trying to create a video with some of them.

Specifically, when I attempt to use certain avatars, I receive the following JSON response:

{
  "code": 100,
  "data": {
    "callback_id": null,
    "caption_url": null,
    "duration": null,
    "error": {
      "code": 400685,
      "detail": "Please upgrade your plan to use this avatar: None",
      "message": "Avatar usage not permitted"
    },
    "gif_url": null,
    "id": "39c88688c1374c65aa04dc922993da4a",
    "status": "failed",
    "thumbnail_url": null,
    "video_url": null,
    "video_url_caption": null
  },
  "message": "Success"
}

 

It appears that the issue is related to my current subscription plan. My question is: How can I retrieve the list of avatars that are available according to my plan to avoid such errors?

Thank you in advance for your assistance.