Send Task

This endpoint is used to send a text to an Interactive Avatar, prompting it to speak the provided text.

❗️

Interactive Avatar is getting upgraded to LiveAvatar! Now with its own website and app. Learn more

We recommend integrating directly with LiveAvatar instead. Docs

If you have an existing HeyGen Interactive Avatar implementation, we recommend checking out our migration guide. Docs


Request Body

FieldTypeDescription
session_idstringThe ID of the session to which the task is to be sent.
textstringThe text of the task.
task_modestringWhether the task is performed synchronously or not (available values: sync and async; default is sync)
task_typestringTask type: repeat or chat ( repeat will simply repeat the input text; for chat type, input text is the message to the avatar and avatar will respond according to the knowledge base set in streaming.new API

Response Body

FieldTypeDescription
duration_msfloathow long the avatar speaks for the input text
task_idstringid to reference the task
Language
Credentials
Header
Click Try It! to start a request and see the response here!