Discussions
new session creation with avatar_id fails
when creating new streaming session https://docs.heygen.com/reference/new-session without avatar_id everything is normal(see curl example)
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",
"voice": {
"rate": 1
},
"video_encoding": "VP8",
"disable_idle_timeout": false,
"version": "v2",
"stt_settings": {
"provider": "deepgram",
"confidence": 0.55
}
}
'
but after specifying avatar_id, session creation fails with error "{"code":10013,"message":"avatar not found"}"
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",
"voice": {
"rate": 1
},
"video_encoding": "VP8",
"disable_idle_timeout": false,
"version": "v2",
"avatar_id" : "Abigail_standing_office_front",
"stt_settings": {
"provider": "deepgram",
"confidence": 0.55
}
}
'
Is there something that i forgot ? (api key is hidden by me)