1. Support
  2. Integrations
  3. Videos
HeyGen 4 nodes

Videos

HeyGen integration · 4 node(s).

00Overview

Generate and retrieve HeyGen avatar videos

Every field below is exactly what you see in the Flomation editor. Fields marked ● live picker let you choose from a list pulled live from your account — no IDs to look up.

01Connecting Videos

Add your credentials as a Flomation environment secret, then pick them in each node. The connection fields are:

FieldTypeDetails
HeyGen API KeysecretRequired${secrets.HeyGenApiKey}
Good to know

Pick an Environment on your flow (Flow Settings → Environment) so the secret resolves. Secret fields never show the value — they reference ${secrets.your_secret}.

02Generate

Generate Avatar Video

heygen/videos/generate_avatar_video · Action

Create a HeyGen talking-head video from a script (text-to-speech) or an audio URL.

FieldTypeDetails
Avatar IDstringRequired · ● live pickerFrom List Avatars
Script (spoken text)textWhat the avatar should say (uses text-to-speech)
Voice IDstring● live pickerOptional: blank uses the avatar's default voice
Audio URLstringAlternative to a script: lip-sync to this audio
Titlestring
Aspect Ratiostringchoices: Auto, 16:9 (landscape), 9:16 (portrait), 1:1 (square), 4:5, 5:4
Resolutionstringchoices: 1080p, 720p, 4K
Voice Speedstring0.5 to 1.5 (default 1.0)
Background Image URLstringA room/studio image to place the avatar in
Background Colourstring#150e14 (ignored if a background image is set)
Remove avatar background (needs a matting-trained avatar)boolean
Fitstringchoices: Cover (fill, may crop), Contain (fit, may letterbox)
Motion Promptstringe.g. gesture naturally and glance at the screen
Expressiveness (photo/Avatar IV)stringchoices: High, Medium, Low
Avatar Enginestringchoices: Default, Avatar III, Avatar IV, Avatar V (most dynamic)
Webhook Callback URLstringCalled when the video is ready
Callback IDstringEchoed back in the webhook
Advanced: extra JSON merged into the request bodytext

Returns: tool_result, video_id, status, success, error

Generate Cinematic Video

heygen/videos/generate_cinematic · Action

Generate a HeyGen video from a scene prompt — describe the setting and the avatar's motion/gestures.

FieldTypeDetails
Avatar Look IDsstringRequired1 to 3, comma-separated (from List Avatars)
Scene & motion prompttextRequiredDescribe the setting and how the avatar moves/gestures
Aspect Ratiostringchoices: 16:9 (landscape), 9:16 (portrait), 1:1 (square)
Resolutionstringchoices: 720p, 1080p
Duration (seconds, 4 to 15)integer
Auto duration (ignore Duration)boolean
Let HeyGen enhance the promptboolean
Advanced: reference assets JSON array (images/videos for style)text
Titlestring
Webhook Callback URLstringCalled when the video is ready
Callback IDstringEchoed back in the webhook

Returns: tool_result, video_id, status, success, error

Generate Talking Photo

heygen/videos/generate_from_image · Action

Create a HeyGen video from a still photo (talking photo) speaking a script or audio.

FieldTypeDetails
Talking Photo IDstringA talking-photo asset uploaded to HeyGen
Photo URLstringAlternative to a Talking Photo ID: a public image URL
Script (spoken text)textWhat the photo should say (uses text-to-speech)
Voice IDstring● live pickerOptional: needed when using a script
Audio URLstringAlternative to a script: lip-sync to this audio
Titlestring
Aspect Ratiostringchoices: Auto, 16:9 (landscape), 9:16 (portrait), 1:1 (square), 4:5, 5:4
Resolutionstringchoices: 1080p, 720p, 4K
Voice Speedstring0.5 to 1.5 (default 1.0)
Background Image URLstringA room/studio image to place the photo in
Background Colourstring#150e14 (ignored if a background image is set)
Remove photo background (needs a matting-trained photo)boolean
Fitstringchoices: Cover (fill, may crop), Contain (fit, may letterbox)
Motion Promptstringe.g. gesture naturally and glance at the screen
Expressivenessstringchoices: High, Medium, Low
Webhook Callback URLstringCalled when the video is ready
Callback IDstringEchoed back in the webhook
Advanced: extra JSON merged into the request bodytext

Returns: tool_result, video_id, status, success, error

03Get

Get Video

heygen/videos/get_video · Action

Get a HeyGen video's status and, when ready, its download URL.

FieldTypeDetails
Video IDstringRequired

Returns: tool_result, status, video_url, thumbnail_url, subtitle_url, duration, success, error