Discussions

Ask a Question
Back to All

hi I am having trouble accesing https://api.heygen.com/v2/video/generate

this is the full request

curl -X POST https://api.heygen.com/v2/video/generate
-H 'X-Api-Key: '
-H 'Content-Type: application/json'
-d '{
"video_inputs": [
{
"character": {
"type": "avatar",
"avatar_id": "Vanessa-insuit-20220722",
"avatar_style": "normal"
},
"voice": {
"type": "text",
"input_text": "Welcome to HeyGen API",
"voice_id": "1bd001e7e50f421d891986aad5158bc8"
}
}
],
"test": true,
"caption": false,
"dimension": {
"width": 1920,
"height": 1080
}
}'

This is the response

{
"data": null,
"error": {
"code": "invalid_parameter",
"message": "video_inputs is invalid: field required"
}
}


Please let me know what can be done.