Discussions

Ask a Question
Back to All

Can't generate video avatar from API

I uploaded an asset, created an avatar group, created a look, trained the avatar and confirmed it was successfully trained, but when I pass the avatar ID to video generate API it fails every time with:

Avatar fd57a477c0ac417e95b35d569041a7fb not found or no longer available.

I've tried it with both the core avatar and the look. Here is the API signature:

{
"title": "My Title",
"video_inputs": [
{
"character": {
"type": "avatar",
"avatar_id": "fd57a477c0ac417e95b35d569041a7fb",
"avatar_style": "normal"
},
"voice": {
"type": "text",
"input_text": "Welcome to the new era of video creation with HeyGen! Simply type your script to get started!",
"voice_id": "c3018e30413e4c4db2602d8792578fae"
}
}
],
"test": true,
"callback_id": null,
"dimension": {
"width": 1280,
"height": 720
},
"aspect_ratio": null
}

Here is the API response:

{
"data": null,
"error": {
"code": "avatar_not_found",
"message": "Avatar fd57a477c0ac417e95b35d569041a7fb not found or no longer available."
}
}