ByteChef LogoByteChef

HeyGen

HeyGen is an AI Video Generator that lets you create explainer videos, marketing and sales promos, product demos, training and onboarding content.

Categories: Artificial Intelligence

Type: heyGen/v1


Connections

Version: 1

API Key

Properties

NameLabelTypeDescriptionRequired
keyAPI keySTRINGtrue

Connection Setup

  1. Navigate to your dashboard.
  2. Go to your account and click on Settings.
  3. Click on Usage & Billing.
  4. Click on HeyGen API.
  5. Under API Token, click Activate.
  6. Copy your API key and use it in ByteChef.

Actions

Generate Video From Template

Name: generateVideoFromTemplateAction

Generates a video based on the specified template.

Properties

NameLabelTypeDescriptionRequired
template_idTemplate IDSTRINGThe ID of the template.true
folder_idFolder IDSTRINGUnique identifier of the folder where the video is stored.false
captionCaptionBOOLEAN
Options true, false
Whether to enable captions in the video.false
enable_sharingEnable SharingBOOLEAN
Options true, false
Whether to make the video publicly shareable immediately after creation.false

Example JSON Structure

{
  "label" : "Generate Video From Template",
  "name" : "generateVideoFromTemplateAction",
  "parameters" : {
    "template_id" : "",
    "folder_id" : "",
    "caption" : false,
    "enable_sharing" : false
  },
  "type" : "heyGen/v1/generateVideoFromTemplateAction"
}

Output

Type: OBJECT

Properties

NameTypeDescription
video_idSTRINGUnique identifier of the generated video.

Output Example

{
  "video_id" : ""
}

Translate Video

Name: translateVideoAction

Translates a video into one or more of 175+ supported languages with natural-sounding voice and accurate lip-sync.

Properties

NameLabelTypeDescriptionRequired
video_urlVideo URLSTRINGURL of the video file to be translated. Supports direct video file URLs, Google Drive URLs, and YouTube URLs.true
output_languageOutput LanguageSTRINGThe target language in which the video will be translated.true
titleTitleSTRINGTitle of the video.false
translate_audio_onlyTranslate Audio OnlyBOOLEAN
Options true, false
Translate only the audio; ideal for videos where the speaker is not visible, such as narrations, voiceovers, etc.false

Example JSON Structure

{
  "label" : "Translate Video",
  "name" : "translateVideoAction",
  "parameters" : {
    "video_url" : "",
    "output_language" : "",
    "title" : "",
    "translate_audio_only" : false
  },
  "type" : "heyGen/v1/translateVideoAction"
}

Output

Type: OBJECT

Properties

NameTypeDescription
video_translate_idSTRINGUnique identifier of the translated video.

Output Example

{
  "video_translate_id" : ""
}

Upload Asset

Name: uploadAssetAction

Uploads a media file to the authenticated user's HeyGen account.

Properties

NameLabelTypeDescriptionRequired
fileEntryFile EntryFILE_ENTRYAsset file to upload.true

Example JSON Structure

{
  "label" : "Upload Asset",
  "name" : "uploadAssetAction",
  "parameters" : {
    "fileEntry" : {
      "extension" : "",
      "mimeType" : "",
      "name" : "",
      "url" : ""
    }
  },
  "type" : "heyGen/v1/uploadAssetAction"
}

Output

Type: OBJECT

Properties

NameTypeDescription
idSTRINGUnique identifier of the uploaded asset.
nameSTRINGID assigned to the uploaded asset.
file_typeSTRINGType of the uploaded asset, for example, audio, video, or image.
folder_idSTRINGUnique identifier of the folder that contains the asset.
metaSTRINGMetadata related to the uploaded asset.
created_tsINTEGERUnix timestamp when the asset was created.
urlSTRINGURL to access or download the uploaded file.
image_keySTRINGImage key for image-type assets.

Output Example

{
  "id" : "",
  "name" : "",
  "file_type" : "",
  "folder_id" : "",
  "meta" : "",
  "created_ts" : 1,
  "url" : "",
  "image_key" : ""
}

Triggers

Video Generation Completed

Name: videoGenerationCompletedTrigger

Triggers when a video generation completes successfully.

Type: DYNAMIC_WEBHOOK

Output

Type: OBJECT

Properties

NameTypeDescription
video_idSTRING
urlSTRING
gif_download_urlSTRING
video_share_page_urlSTRING
folder_idSTRING
callback_idSTRING

JSON Example

{
  "label" : "Video Generation Completed",
  "name" : "videoGenerationCompletedTrigger",
  "type" : "heyGen/v1/videoGenerationCompletedTrigger"
}

Video Generation Failed

Name: videoGenerationFailedTrigger

Triggers when a video fails to generate.

Type: DYNAMIC_WEBHOOK

Output

Type: OBJECT

Properties

NameTypeDescription
video_idSTRING
msgSTRING
callback_idSTRING

JSON Example

{
  "label" : "Video Generation Failed",
  "name" : "videoGenerationFailedTrigger",
  "type" : "heyGen/v1/videoGenerationFailedTrigger"
}

What to do if your action is not listed here?

If this component doesn't have the action you need, you can use Custom Action to create your own. Custom Actions empower you to define HTTP requests tailored to your specific requirements, allowing for greater flexibility in integrating with external services or APIs.

To create a Custom Action, simply specify the desired HTTP method, path, and any necessary parameters. This way, you can extend the functionality of your component beyond the predefined actions, ensuring that you can meet all your integration needs effectively.

How is this guide?

Last updated on

On this page