Discussions

Ask a Question
Back to All

Integration of Eleven Labs Api to Hey Gen

We are trying to trigger HeyGen’s avatar video generation via API using the script_type: "audio" mode. The audio file is generated through ElevenLabs and uploaded to OneDrive, and then the OneDrive DownloadUrl is passed as the audio_url in the HeyGen API request. However, the HeyGen API fails with a 404 error, and no video is generated.

✅ KEY DETAILS FOR CONTEXT:
The audio is successfully generated in ElevenLabs (status code 200, MP3 buffer visible).

The audio is also successfully uploaded to OneDrive, and we map @Content Download Url into the HeyGen request as audio_url.

The HeyGen API endpoint used is:

https://api.heygen.com/v1/video/generate
Our HTTP request to HeyGen includes:

json
Copy
Edit
{
"avatar_id": "d950c4b5a3c544208dc4c7d704db5750",
"voice_id": null,
"script_type": "audio",
"audio_url": "",
"background": "fitness_gym_loop",
"aspect_ratio": "9:16",
"test": false
}
We are receiving:

pgsql
Copy
Edit
Error: 404 Not Found
The requested URL was not found on the server.
🔎 ASK HEYGEN SUPPORT:
Does HeyGen API accept public OneDrive downloadUrl as audio_url?

What is the correct format or requirement for audio_url?

Must it be a direct downloadable link (e.g., with proper Content-Type: audio/mpeg)?

Is OneDrive compatible?

Can they confirm if https://api.heygen.com/v1/video/generate supports script_type: audio, or is there another supported endpoint?

also we have changed