Discussions

Ask a Question
Back to All

Talking Photo <avatar id> not found but listed in the avatar list (when using API) and in the dashboard.

Hello,

I am using the Create Avatar Video (V2) API and I have a working code (in Python) by using my personal HeyGen account.

I am using the same functioning code for my team, they do have a separate account.

I did change the API Key and copy/pasted the Avatar ID that I was using in that generation.

However, I ended up getting a
{'code': 'photar_not_found', 'message': 'Talking photo not found'}

I used the curl script to make sure that the ID is listed, and it is. I even hard coded it in the code just to make sure that I didn't do any mistake by retrieving the code from my database.

Here is the payload I am sending:
Payload: {
"title": "AOAI Reel #1",
"video_inputs": [
{
"character": {
"type": "talking_photo",
"talking_photo_id": "",
"scale": 1.3,
"talking_photo_style": null,
"offset": {
"x": 0,
"y": 0.11
},
"talking_style": null,
"expression": "default",
"matting": "true"
},
"voice": {
"type": "text",
"input_text": "Here's something that will change your life... ",
"voice_id": "8f8857a783a84717ae17f684728ab944",
"speed": 1.0
},
"background": {
"type": "image",
"play_style": "fit_to_scene",
"url": ""
}
}
],
"dimension": {
"width": 720,
"height": 1280
}
}

And here is the response

Response: {
"data": null,
"error": {
"code": "photar_not_found",
"message": "Talking photo not found"
}

As I mentioned, I did a curl on
curl --request GET
--url https://api.heygen.com/v2/avatars \

Copy pasted the ID, and stll doesn't work. However it worked 1h ago with a different HeyGen account. Same code, same database, different API KEY/avatar id/voice id. I tried different avatar IDs and still getting the error.
Could you pelase help?

Thanks in advance.