Heygen

Learn how to use Heygen with Composio

Overview

SLUG

HEYGEN

Description

HeyGen is an innovative video platform that harnesses the power of generative AI to streamline your video creation process

Authentication Details

generic_api_key
stringRequired

Tools

SLUG: HEYGEN_V2_TEMPLATES

Retrieves a list of available avatar templates from the heygen platform. this endpoint allows users to access pre-designed avatars that can be used for creating professional-looking videos. it's particularly useful when you need to browse or select from heygen's library of realistic avatars for your video projects. the endpoint returns template information, which likely includes details such as template ids, names, preview images, and customization options. use this endpoint when you want to display available avatar options to users or when you need to select a template for video generation.

Action Parameters

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: HEYGEN_ADD_NEW_ASSET

Creates a new asset in the heygen platform. this endpoint allows users to add various types of assets that can be used in video generation, such as avatars, backgrounds, or other content elements. the asset is created by sending plain text data, which likely includes necessary metadata or configuration information. this tool should be used when integrating new assets into the heygen ecosystem for use in content creation workflows. it's important to note that this endpoint may not support direct file uploads; instead, it might expect references to pre-uploaded files or configuration data for asset creation.

Action Parameters

file
object

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: HEYGEN_PERSONALIZED_VIDEO_ADD_CONTACT

This endpoint allows you to add one or more contacts to a specific personalized video project in the heygen platform. it is used when you need to associate individual contact information with a project, likely for the purpose of creating tailored video content for each contact. the endpoint accepts a project identifier and a list of contacts, each with a first name and email address. this tool is essential for populating your project with recipient data, enabling the creation of personalized videos at scale. note that this endpoint only adds contacts to a project; it does not initiate video creation or sending. ensure that your project id is valid and that all contact information is accurate to avoid errors in video personalization or delivery.

Action Parameters

project_id
stringRequired
variables_list
arrayRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: HEYGEN_PERSONALIZED_VIDEO_AUDIENCE_DETAIL

Retrieves detailed information about the audience for personalized videos. this endpoint provides insights into the target audience characteristics, preferences, and engagement metrics for heygen's ai-generated personalized video content. it can be used to gain a deeper understanding of the audience demographics, behavior patterns, and content preferences to optimize video creation and targeting strategies. the tool is particularly useful for content creators, marketers, and businesses looking to tailor their video content to specific audience segments using heygen's ai capabilities.

Action Parameters

id
string

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: HEYGEN_PERSONALIZED_VIDEO_PROJECT_DETAIL

Retrieves detailed information about a specific personalized video project in the heygen platform. this endpoint allows you to fetch comprehensive data about a project, including its current status, configuration settings, and any other relevant metadata. use this when you need to get an up-to-date overview of a particular video project, such as checking its progress, reviewing its settings, or gathering information for reporting purposes. the endpoint is read-only and does not modify any project data. note that it may not include the actual video content itself, but rather focuses on the project's attributes and status.

Action Parameters

id
string

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: HEYGEN_POST_TALKING_PHOTO_BINARY_IMAGE

Creates a talking photo by processing an uploaded image file. this endpoint enables users to transform static images into interactive, speaking visual content using heygen's advanced ai technology. it accepts jpeg or png image files and likely combines them with audio narration (though audio input is not specified in this schema). use this endpoint when you want to generate engaging, personalized content from still images, such as creating speaking avatars or animated photographs. the endpoint is particularly useful for marketing materials, educational content, or personalized messages. note that while image upload is specified, the method for providing or generating the associated audio is not detailed in this schema.

Action Parameters

file
object

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: HEYGEN_STREAMING_AVATAR_LIST

Retrieves a list of available avatars for streaming purposes in the heygen platform. this endpoint allows developers to access the collection of realistic avatars that can be used for creating professional-looking videos with ai-generated content. it's designed to support applications requiring dynamic or live video content, enabling real-time access to the avatar library. the endpoint should be used when you need to fetch the current set of available avatars for integration into streaming or video generation workflows. it may not provide detailed information about each avatar's capabilities or customization options, focusing instead on delivering a quick, up-to-date list for immediate use in streaming contexts.

Action Parameters

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: HEYGEN_STREAMING_CREATE_TOKEN

Creates a new streaming token for use with heygen's real-time avatar and voice chat services. this endpoint generates a unique, time-limited token that authenticates and authorizes access to heygen's streaming capabilities. use this endpoint when initiating a new streaming session or when the previous token has expired. the generated token is typically for one-time use and should be obtained shortly before starting a streaming interaction. note that this endpoint does not initiate the streaming itself; it only provides the necessary credentials for subsequent streaming api calls.

Action Parameters

expiry
integerDefaults to 3600

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: HEYGEN_STREAMING_ICE

This endpoint is used to submit ice (interactive connectivity establishment) candidate information for a specific streaming session in the heygen platform. it plays a crucial role in establishing and managing peer-to-peer connections for real-time communication and streaming of avatar content. the endpoint should be called when new ice candidates are discovered during the connection setup process, typically as part of the webrtc negotiation. it's essential for ensuring optimal connectivity between clients, especially in scenarios involving nat traversal or complex network environments. this endpoint does not return the status of the connection or initiate the streaming itself; it only submits candidate information to be used in the connection process.

Action Parameters

candidate__candidate
string
candidate__sdpMLineIndex
integer
candidate__sdpMid
string
candidate__usernameFragment
string
session_id
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: HEYGEN_STREAMING_INTERRUPT

Interrupts an ongoing streaming session with an interactive avatar. this endpoint allows immediate termination of the avatar's current action or speech, providing control over the flow of interaction. use this when you need to abruptly stop the avatar's current behavior, such as when changing topics or responding to user input that requires a different response. the interruption is immediate and irreversible, so use it judiciously to maintain a smooth user experience. this endpoint is particularly useful in scenarios where real-time responsiveness is crucial, like in customer service applications or interactive presentations.

Action Parameters

session_id
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: HEYGEN_STREAMING_LIST

Retrieves a list of active or available streaming sessions or content within the heygen platform. this endpoint allows users to get an overview of ongoing streams, which may include live avatar interactions, real-time video generations, or other streaming content created using heygen's ai-driven tools. it's particularly useful for monitoring current streaming activities or checking the availability of streams for integration into applications. the endpoint returns basic information about each stream, such as stream ids, status, and possibly metadata, but does not provide the actual stream content. use this when you need to track or display a list of active streams in your application's interface or for administrative purposes.

Action Parameters

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: HEYGEN_STREAMING_NEW

Initiates a new streaming session with heygen, allowing users to start an avatar-based stream with specified quality settings. this endpoint should be used when starting a new interactive content session or when creating a personalized digital avatar stream. it sets up the initial configuration for the streaming quality, which affects the overall user experience and bandwidth usage. the endpoint does not handle the actual streaming content or avatar creation; it only establishes the session parameters.

Action Parameters

quality
stringDefaults to medium

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: HEYGEN_STREAMING_START

Initiates a new streaming session for real-time communication in the heygen platform. this endpoint is used to set up a webrtc connection for video, audio, and data streaming, likely for interactions with ai avatars. it requires a unique session id and a session description protocol (sdp) offer to establish the connection. this endpoint should be called when starting a new interactive session with a heygen ai avatar or when initiating a live streaming event. it's crucial for setting up the initial parameters of the real-time communication channel.

Action Parameters

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: HEYGEN_STREAMING_STOP

The streaming.stop endpoint is used to terminate an active streaming session in the heygen api. this endpoint should be called when you want to end a real-time data transfer session, such as when closing an interactive avatar conversation or stopping a live content stream. it's particularly useful for freeing up server resources and ensuring proper closure of streaming connections. the endpoint requires the unique session id to identify which specific session to stop, allowing for precise control over multiple concurrent sessions. note that once a session is stopped, it cannot be resumed; a new session must be started if streaming is needed again.

Action Parameters

session_id
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: HEYGEN_STREAMING_TASK

The streamingtask endpoint initiates a real-time speaking task for an ai-driven avatar within an active streaming session. it enables developers to make avatars vocalize specified text, creating interactive and dynamic user experiences. this endpoint should be used when you want to generate speech from an avatar in response to user input or as part of a scripted interaction. it's particularly useful for applications requiring real-time avatar interactions, such as virtual assistants, interactive presentations, or educational content. note that this endpoint requires an active streaming session, and the avatar's voice and appearance are determined by the session configuration.

Action Parameters

session_id
stringRequired
text
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: HEYGEN_V1_AVATAR_LIST

Retrieves a list of available avatars from the heygen platform. this endpoint allows users to fetch both public and private avatars, depending on their access rights and the specified parameters. it's particularly useful for applications that need to display available avatars to users for selection or customization. the endpoint supports pagination to handle large numbers of avatars efficiently. use this when you need to present avatar options to users, manage avatar inventories, or sync local avatar data with the heygen platform. note that the response will likely include basic information about each avatar, such as id, name, and type, but may not include full avatar details or assets.

Action Parameters

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: HEYGEN_V1_TALKING_PHOTO_LIST

Retrieves a list of talking photos created using the heygen platform. this endpoint allows users to fetch information about their existing talking photo projects, which are interactive images capable of speaking and engaging users. it's useful for managing and reviewing your talking photo content, or for integrating talking photo information into your application. the endpoint returns details about each talking photo, potentially including identifiers, creation dates, and associated metadata. note that this endpoint likely returns all talking photos by default, so for users with a large number of projects, implementing client-side filtering or pagination may be necessary.

Action Parameters

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: HEYGEN_V1_VIDEO_DELETE

The video.delete endpoint allows users to remove a specific video from their heygen account. this operation moves the video to the trash, from where it can be restored if needed. use this endpoint when you want to delete a video that is no longer required or to manage your account's storage. it's important to note that this action doesn't permanently delete the video immediately, as it can be restored from the trash. exercise caution when using this endpoint, as deleted videos may not be recoverable after a certain period.

Action Parameters

video_id
string

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: HEYGEN_V1_VIDEO_LIST

Retrieves a list of videos associated with the user's account on the heygen platform. this endpoint is crucial for content management, allowing users to view and organize their video library efficiently. it provides an overview of all videos created or managed through the heygen service, including ai-generated videos with custom avatars. use this endpoint when you need to display a comprehensive list of videos, manage content, or track video creation progress. the response likely includes metadata for each video such as title, creation date, duration, and status. note that this endpoint does not provide the actual video content or detailed analytics; it's primarily for listing and basic information retrieval.

Action Parameters

Action Response

data
objectRequired
error
string
successful
booleanRequired

SLUG: HEYGEN_V1_VIDEO_STATUS_GET_LATEST_ID

Retrieves the current status of a video in the heygen platform. this endpoint is used to check the progress of video processing, particularly useful for avatar videos that may require time to generate. it provides real-time information on whether the video is still being processed or has been completed. use this endpoint to monitor the state of your video creation requests and determine when a video is ready for further actions or viewing. the status returned can help in managing user expectations and workflow sequencing in applications integrating heygen's video generation capabilities.

Action Parameters

video_id
string

Action Response

data
objectRequired
error
string
successful
booleanRequired