Discussions
Can't use custom avatar with streaming api
4 months ago by null
I created a custom avatar which I can also see in response to List Avatars V2 endpoint.
"avatars": [
{
"avatar_id": "<avatar_id>",
"avatar_name": "...",
"gender": "unknown",
"preview_image_url": "https://files2.heygen.ai/avatar/v3/...",
"preview_video_url": "https://files2.heygen.ai/avatar/v3/..."
},
But, when creating a new streaming session with that very avatar_id:
curl --request POST
--url https://api.heygen.com/v1/streaming.new
--header 'accept: application/json'
--header 'content-type: application/json'
--header 'x-api-key: <>'
--data '{"quality":"medium", "avatar_id": "<>"}'
I get
{
"code": 10013,
"message": "avatar not found"
}
Why?