Tools
This is a reference catalogue. Tools cannot be configured or run from this page.
Post talking photo binary image
HEYGEN_POST_TALKING_PHOTO_BINARY_IMAGEUploads a JPEG or PNG image to create a talking photo asset for subsequent video generation. The response can include the talking photo ID and URL.
Restore folder from trash
HEYGEN_RESTORE_FOLDERTool to restore a previously deleted folder from trash by its unique folder ID. Use when you need to recover a folder that was moved to trash.
Retrieve avatar details
HEYGEN_RETRIEVE_AVATAR_DETAILSTool to retrieve detailed information about a specific avatar by its ID. Use when you need to get comprehensive information about an avatar including identification details, display properties, and preview media URLs.
Retrieve sharable video URL
HEYGEN_RETRIEVE_SHARABLE_VIDEO_URLTool to generate a public, shareable URL for a specific video by ID. Use when you need to create a public link that allows anyone to view the video without authentication. The generated URL can be shared with anyone and does not require HeyGen account access. Generated URLs may be time-limited; call this tool again to refresh the link if it expires.
Retrieve template details v3
HEYGEN_RETRIEVE_TEMPLATE_DETAILS_V3Tool to retrieve comprehensive details about a specific template including all available variables for replacement and scene mappings for templates built in the New AI Studio. Use when you need to understand the structure, available customization options, variables, and scene configurations of a template before generating videos from it.
Retrieve video status details
HEYGEN_RETRIEVE_VIDEO_STATUS_DETAILSTool to retrieve the current processing status and metadata for a specific video by ID. Use when you need to check video processing progress, get time-limited URLs for video downloads, or monitor video generation completion. Video rendering is asynchronous and typically takes 30–180+ seconds; poll at moderate intervals rather than tight loops. Verify returned URLs are accessible before surfacing to users. Note that returned URLs expire after 7 days but can be regenerated by calling this endpoint again.
Search public avatar groups
HEYGEN_SEARCH_PUBLIC_AVATAR_GROUPSTool to search and retrieve public avatar groups with optional filters and pagination. Use when you need to find specific avatar groups by tags, name, or browse available public avatars.
Create streaming token with expiry
HEYGEN_STREAMING_CREATE_TOKENCreates 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.
Post streaming ice candidates
HEYGEN_STREAMING_ICEThis 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.
Interrupt streaming session
HEYGEN_STREAMING_INTERRUPTInterrupts 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.
Retrieve streaming list
HEYGEN_STREAMING_LISTRetrieves 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.
Set streaming quality endpoint
HEYGEN_STREAMING_NEWInitiates 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.
Start streaming session
HEYGEN_STREAMING_STARTStarts an existing HeyGen streaming session using its session ID and an SDP answer for WebRTC connection setup.
Stop streaming session
HEYGEN_STREAMING_STOPThe 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.
Send task to streaming avatar
HEYGEN_STREAMING_TASKThe 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.
Move folder to trash
HEYGEN_TRASH_FOLDERTool to move a specific folder to trash by its unique folder ID. Use when you need to delete a folder from HeyGen (soft delete - can be recovered later).
Update folder name
HEYGEN_UPDATE_FOLDERTool to update (rename) an existing folder by its unique folder ID. Use when you need to change the name of a folder in HeyGen.
Update knowledge base
HEYGEN_UPDATE_KNOWLEDGE_BASEUpdate an existing knowledge base by ID for Interactive Avatar streaming sessions. The name and opening line are required on every request; a custom prompt can also be supplied.
Update webhook endpoint
HEYGEN_UPDATE_WEBHOOK_ENDPOINTTool to modify an existing webhook endpoint configuration including URL and subscribed event types. Use when you need to update webhook settings or change event subscriptions for an existing endpoint.
Upload asset
HEYGEN_UPLOAD_ASSETTool to upload a file asset (image, video, or audio) to HeyGen platform. Use when you need to upload media files for use in video generation or other HeyGen services.