Skip to main content

Prerequisites

  • HeyGen CLI installed and authenticated (heygen auth login)
  • A headshot photo (PNG or JPEG, max 32 MB). Front-facing, good lighting, and a neutral expression works best.

Steps

1

Upload the photo

Upload your image to get an asset_id:
2

Create a Photo Avatar

Pass the asset to avatar create. This trains a Photo Avatar from your image:
Avatar training takes a few minutes. Poll the status:
Wait until status is completed before proceeding.
Use --request-schema on any command to discover all available fields: heygen avatar create --request-schema
3

Pick a voice

Browse available voices:
Copy the voice_id you want. If none of the stock voices fit, see the Design a Custom Voice recipe.
4

Generate the video

Add --wait to block until the video is ready, or poll manually with heygen video get <video_id>.
5

Download

Full shell script

Chain everything together in one script:

Optional parameters

Photo Avatars use the avatar_iv engine. The avatar_id you pass to video create is the look ID from avatar looks list, not the group ID.