heygen_photo_avatar_create_avatar_action
Create a HeyGen Photo Avatar by uploading photos or generating one based on age, gender, ethnicity, and style parameters. Returns a group ID for polling status.
Instructions
Creates a HeyGen Photo Avatar from uploaded photos or AI generation. Upload mode requires base64 photos; generate mode uses age/gender/ethnicity/style params. Returns group_id for status polling.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source_type | Yes | How to create the avatar. | generate |
| name | No | Display name for the avatar (default: My Avatar). | |
| photos_json | No | JSON array of photo objects: [{"base64": "...", "mimeType": "image/jpeg"}]. Required for upload mode. | |
| age | No | Age range for generated avatar. | Young Adult |
| gender | No | Unspecified | |
| ethnicity | No | Unspecified | |
| orientation | No | square | |
| pose | No | half_body | |
| style | No | Realistic | |
| appearance | No | Optional description of desired appearance traits. | |
| output_variable_name | Yes | Variable name for the result. Access as {{avatar_result.group_id}}, {{avatar_result.status}}. | avatar_result |