Discussions

Ask a Question
Back to All

Creatre video endpoint and Eleven labs integration

When calling the Create a video endpoint with a "voice_id" that belongs to a voice that is made with Eleven labs I get an error:

Here is my payload:

"{
""background"": ""#ffffff"",
""clips"": [
{
""avatar_id"": ""c7facab6d48546258ea76f35db129ffb"",
""avatar_style"": ""normal"",
""input_text"": ""Hello! Here is a simple test text for testing."",
""offset"": {
""x"": 0,
""y"": 0
},
""scale"": 1,
""voice_id"": ""78c15bae391547849a348863b0fcfe50""
}
],
""ratio"": ""16:9"",
""test"": false,
""version"": ""v1alpha""
}"

And here is the API response:

{"code":100,"data":{"callback_id":null,"caption_url":null,"duration":null,"error":{"code":"400013","detail":"model_id is empty","message":"Text to speech failed"},"id":"2d627ca8cc0140f8ab5e565d4899f777","status":"failed","thumbnail_url":null,"video_url":null,"video_url_caption":null},"message":"Success"}

It said:
detail":"model_id is empty"

I wonder do I somehow need to select the model_id that I will use with the Eleven Labs voice_id? How would I edit the payload to add this required data to the original payload and what is the model_id? Thanks.

I don't get this error when I'm using Heygen native voice_ids.

Please help. Thanks a lot!