Skip to main content
POST
  1. After submission, a task_id will be returned. If you provided a callback_url, when the task status becomes finished or failed, a POST request will be sent to the callback_url.
  2. Regardless of whether callback_url is provided, you can retrieve the result through the unified Query Task Status endpoint.
HeyGen Avatar 6 Public Avatar to Video creates a talking video with one of HeyGen’s 1,248 ready-made public avatars. The avatar speaks your audio, or reads text aloud with one of the HeyGen voices. Names of all avatars and voices are listed in Avatars and Voices. Other modes: HeyGen Avatar 6 Image to Video / HeyGen Avatar 6 Reference Video to Video. HeyGen Avatar 6 Turbo offers the same inputs and modes at a lower cost. See HeyGen Avatar 6 Turbo Public Avatar to Video.

Models

  • heygen/avatar-6/identity-to-video — HeyGen public avatar + speech audio or text to a talking video, 1080p or 2K.

Features

  • 1,248 public avatars (156 people in several looks).
  • Speech from your audio (2–60 seconds) or from text (up to 1,000 characters) read by a HeyGen voice.
  • Five aspect ratios: 16:9, 9:16, 1:1, 4:5, 5:4.
  • 1080p or 2K output.

Input modes

Send exactly one of audio_url or text.

Required parameters

  • avatar (string): The name of a HeyGen public avatar from Avatars and Voices, such as Abigail Sofa Front. Names match regardless of letter case and extra spaces.
  • audio_url (string) or text (string): Exactly one of them. audio_url is speech audio, 2–60 seconds long and up to 15 MB; text is what the avatar reads aloud, up to 1,000 characters.

Optional parameters

  • voice (string): Used with text. The HeyGen voice that reads the text, from the 102 voices in Avatars and Voices. Default Warm Pro Narrator. Names match regardless of letter case and extra spaces.
  • aspect_ratio (string): 16:9, 9:16, 1:1, 4:5 or 5:4. Default 16:9.
  • prompt (string): Direction for gestures, expression and posture, up to 1,200 characters.
  • resolution (string): 1080p or 2K. Default 1080p.

Output

  • One MP4 video with lip-synced speech, in the selected aspect_ratio.
  • The video length follows the speech: the duration of audio_url, or the time the avatar takes to read text.

Examples

  • Text: an avatar reads a short script with a chosen voice, 16:9, 1080p.
  • Audio: an avatar speaks an MP3 in vertical 9:16.

Notes

  • avatar is checked against the avatar list at submission; an unknown name returns 400 with the closest matches. Other HeyGen voice names are passed through as given; if HeyGen rejects the voice, the task is refunded in full.
  • Send exactly one of audio_url and text, use voice together with text, and keep text within 1,000 characters; other combinations return 400.
  • The audio is checked at submission: it needs to be 2–60 seconds long, up to 15 MB and downloadable; other audio returns 400.
  • Put model and callback_url at the request root, next to input. input accepts the fields listed above for this mode; other fields return 400.
  • Credits are billed per second at the rate for resolution. With audio_url, the audio duration rounded up to whole seconds is charged at submission. With text, the video length is estimated from the text (about 14 Latin characters, 4.5 CJK characters or 3 digits per second, at least 1 second); the estimate is multiplied by 1.5, rounded up and reserved at submission; when the task succeeds you are charged for the actual video length, rounded up to whole seconds, and the rest is refunded. The final charge is at most the reserved amount. A failed task is refunded in full. See the pricing page for current rates.

Authorizations

Authorization
string
header
required

Use Authorization: Bearer VIDGO_API_KEY.

Body

application/json
model
string
required
Example:

"heygen/avatar-6/identity-to-video"

input
object
required
callback_url
string<uri>

Optional webhook URL for completion or failure notifications.

Example:

"https://your-domain.com/callback"

Response

Task submission result. A task ID identifies asynchronous work; generation may still be running.

code
integer
required
Example:

200

data
object
required