Discussions
error
about 1 year ago by jeriest59
test
listen
test
listen
<script>
$("#generateVideo").click(function() {
var text = $("#textInput").val();
if (text.trim() === "") {
alert("Please enter some text.");
return;
}
$.ajax({
url: 'https://api.d-id.com/talks',
type: 'POST',
headers: {
'Api-Key': 'bmFmaXNleW91c2VmaWtpYW5AZ21haWwuY29t:WosQk1YZE5YQ7o0gtu-LX'
},
success: function(response) {
var videoUrl = response.output_url;
$("#videoContainer").html('<video width="320" height="240" controls><source src="' + videoUrl + '" type="video/mp4"></video>');
},
error: function(error) {
alert("Error generating video.");
console.error(error);
}
});
});
</script>
{
"kind": "UnknownError",
"description": "Internal Server Error"
}
im getting this error