Discussions
Video Generation API Reaches 97% Completion Then Fails: Webhook Setup Verified
I'm experiencing an issue with the HeyGen API where my video generation requests reach approximately 97% completion before failing. Here's my setup and what I've tried:
I've successfully registered a webhook endpoint using the v1 API:
Webhook responds to avatar_video.success and avatar_video.fail events
Endpoint registration returns a successful 201 response
My video generation request includes:
A valid avatar_id
Text-to-speech content via input_text
Proper callback_id for webhook notifications
Standard 1920x1080 dimensions
Troubleshooting steps completed:
Successfully tested API authentication
Verified JSON formatting is correct
Tried with minimal text content
Confirmed API credits are available (HeyGen Free plan with 10 credits)
The request initially processes but consistently fails at the final stage. No detailed error information is provided beyond the general failure status.
Has anyone encountered similar issues or can recommend additional troubleshooting steps? Any insight on what might cause a video to process to near-completion before failing would be helpful.
Thank you!