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 training takes a few minutes. Poll the status:Wait until
avatar create. This trains a Photo Avatar from your image:status is completed before proceeding.Use
--request-schema on any command to discover all available fields: heygen avatar create --request-schema3
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
--wait to block until the video is ready, or poll manually with heygen video get <video_id>.5
Download

