HeyGen Avatar (Digital Twin) API
HeyGen's flagship talking-avatar (Digital Twin) on the v3 API — the highest-quality lip-sync available. Drives a pre-trained avatar look with a script (or your own audio), with the Avatar IV motion engine, voice emotion/speed/pitch, captions, and custom backgrounds.
$0.084/s on Varosity credits ($0.080/s with your own key). Clips up to 300s with native audio.
no heygen account needed · no subscription · failed renders never billed
Best for
- studio-grade lip sync
- Avatar IV / Avatar V motion engines
- voice emotion + speed control
- captions & custom backgrounds
Trade-offs
- requires a pre-trained avatar look id
- fixed framing
Call it from your code
One Varosity key works for every model. Video renders are async — the response has a jobId; poll GET /api/v1/jobs/{jobId} until status is "succeeded", then read outputUrl.
curl -X POST https://varosity.ai/api/v1/video/generate \
-H "Authorization: Bearer $VAROSITY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prompt": "cinematic aerial of a coastal road at golden hour, slow push-in",
"modelId": "heygen-avatar-4",
"aspectRatio": "16:9",
"durationSec": 5
}'Or ask your agent
Connect Claude, Cursor, or any MCP client to https://varosity.ai/api/mcp with your key, then say:
"Use Varosity with heygen-avatar-4 to make a 5-second clip of …"Agent setup guide
Alternatives to HeyGen Avatar (Digital Twin)
- HeyGen Photo Avatar (Avatar IV)animate ANY photo as the speaker · Avatar IV motion engine$0.084/s
- HeyGen Video Translatemultilingual lip-sync dubbing · preserves original speaker appearance$0.105/s
- OmniHuman 1.5talking avatars · from single photo$0.084/s
- D-ID AI Presentertalking avatars from any photo · text-to-presenter$0.053/s
- HeyGen Video Agentprompt → finished video · agent writes script, picks avatar & scenes$0.126/s
- LatentSync Lip-Syncsmooth temporal consistency · fast inference$0.053/s