Creates a new avatar from an image, video footage, or a text prompt. Supports photo, digital_twin, and prompt types. Avatar training is asynchronous.
HeyGen API key. Obtain from your HeyGen dashboard.
Discriminated union for POST /v3/avatars request body.
Must be 'prompt' for AI-generated avatars.
"prompt"Name of the avatar.
Prompt for avatar generation.
1000Reference images — each as {"type": "url", "url": "https://..."} or {"type": "asset_id", "asset_id": "..."}. Max 3. Will only work with an avatar_group_id.
3Asset input via publicly accessible HTTPS URL.
Optional identity you would like to attach the prompted avatar to. By default it will create a new identity.
Successful response