Close menu
Explore Plans
Mobile menu Close menu
HeyGen

Generate a video from a prompt

This action will submit a text prompt to HeyGen's Video Agent, which scripts the video and picks the avatar and scene automatically; the finished video is delivered by the "A video finished rendering" trigger.

Developer info

API endpoint slug
heygen.generate_video_from_prompt
Filter code method
Heygen.generateVideoFromPrompt.skip(string?: reason)
Runtime method
runAction("heygen.generate_video_from_prompt", {})

Action fields

Prompt Text input > Long text

Label
What should the video be about?
Helper text
Describe the video you want. HeyGen writes the script and composes the scene automatically. Each run uses HeyGen API credits.
Slug
prompt
Required
true
Can have default value
true
Filter code method
Heygen.generateVideoFromPrompt.setPrompt(string: prompt)

Aspect ratio Dropdown list

Label
Aspect ratio
Helper text
The shape of the finished video.
Slug
aspect_ratio
Required
false
Can have default value
true
Filter code method
Heygen.generateVideoFromPrompt.setAspectRatio(string: aspect_ratio)