How to Use HeyGen Avatar 6
The mode is chosen automatically from the fields you send (use one mode per request):
- Photo:
images_list (1 photo) + audio_url.
- Reference video:
video_url + audio_url (optional images_list reference photo).
- Public avatar:
avatar + either audio_url or text (with optional voice, aspect_ratio).
Audio must be 2-60 seconds and under 15 MB; the output length follows the audio. Choose resolution 1080p or 2K.
curl -X POST https://api.muapi.ai/api/v1/heygen-avatar-6 \
-H "x-api-key: $MUAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"images_list": ["https://example.com/portrait.png"], "audio_url": "https://example.com/speech.mp3", "resolution": "1080p", "prompt": "Speak warmly to the camera"}'
Then poll GET /api/v1/predictions/{{request_id}}/result, or pass a webhook query parameter.