SandBase is live — $1 in free credits on signupStart free ›

HeyGen modelsvideo generation api

heygen/heygen-avatar4/digital-twin

Heygen Avatar4 Digital Twin is HeyGen's text-to-video AI model. Turn written scripts and prompts into professional-quality video clips with realistic motion, lighting, and scene composition.

Input
The aspect ratio of the generated image. Allowed values: 21:9, 16:9, 3:2, 4:3, 5:4, 1:1, 4:5, 3:4, 2:3, 9:16.
URL of an audio file for the avatar to lip-sync to. When provided, the avatar uses this audio instead of text-to-speech.
The voice ID to use for the avatar.
The character/avatar ID to use.
Idle

Example output — click Run to generate your own

API README

HeyGen Avatar 4 Digital Twin

heygen/heygen-avatar4/digital-twin creates a talking digital-human video whose facial movement, timing, and expression follow supplied speech or creative direction. Avatar 4 Digital Twin emphasizes lifelike portrait motion, expressive gestures, and reliable identity across repeated presenter videos. This combination makes the model a practical choice when the creative outcome depends on those qualities rather than on a generic media conversion.

For production work with heygen/heygen-avatar4/digital-twin, the workflow suits explainers, training, localization, personalized outreach, and presenter-led content where a reusable human presence needs to deliver changing material. The result is most reliable when the source material and creative brief clearly describe the intended subject, progression, visual or sonic character, and the qualities that must remain unchanged.

Highlights

Speech-driven facial animation aligns mouth shapes, expression, and timing with the performance.

Avatar 4 expression produces lifelike facial movement and presenter gestures.

Presenter consistency supports repeated videos without reshooting the same person.

Expressive performance turns scripted material into an engaging on-camera delivery.

Pricing

Generated or processed durationPrice
Per second$0.100

When to Use

✅ Good fit❌ Consider alternatives
The model's named workflow matches the source material and intended outputA different input modality or model route is required
A managed asynchronous result is suitable for the production pipelineA synchronous, interactive editor is essential
The documented controls cover the required duration, framing, or formatThe project needs controls outside this endpoint's schema
Creative iteration benefits from a repeatable request structureExact deterministic pixels, frames, geometry, or samples are mandatory
A finished downloadable media asset is the desired deliverableEditable source layers or a native project file are required

Prompt Guide

For audio transformation, state the intended result first, then add the subject or source treatment, progression, style, and delivery constraints. Keep one creative variable per phrase, use the documented field names for controls, and change one setting at a time when comparing results.

{
  "aspect_ratio": "21:9",
  "audio": "https://example.com/source.wav"
}

Technical Specs

SpecValue
Model IDheygen/heygen-avatar4/digital-twin
Inputsaspect_ratio, audio, avatar_id, voice
Required inputsNone
Output fieldscontent_type, url
ExecutionAsync (submit, then poll for result)
Aspect Ratio21:9 / 16:9 / 3:2 / 4:3 / 5:4 / 1:1 / 4:5 / 3:4 / 2:3 / 9:16

Related Models

Related Models

heygen/heygen-avatar4/image-to-videoHeygen Avatar4 is HeyGen's image-to-video AI model. Bring static images to life with fluid animation, consistent character motion, and professional-grade video output.heygen/heygen-avatar3/digital-twinHeygen Avatar3 Digital Twin is HeyGen's text-to-video AI model. Turn written scripts and prompts into professional-quality video clips with realistic motion, lighting, and scene composition.heygen/avatar5/digital-twinAvatar5 Digital Twin by HeyGen - generate cinematic videos from text descriptions with AI. Create high-quality video content with natural motion, camera control, and optional audio generation.heygen/heygen/lipsync/precisionHeygen Lipsync Precision by HeyGen - AI-powered video editing and transformation. Apply style transfer, motion control, lip-sync, and visual effects to existing videos with natural language instructions.heygen/heygen/lipsync/speedHeygen Lipsync Speed by HeyGen - AI-powered video editing and transformation. Apply style transfer, motion control, lip-sync, and visual effects to existing videos with natural language instructions.heygen/heygen/translate/precisionHeygen Translate Precision by HeyGen - AI-powered video editing and transformation. Apply style transfer, motion control, lip-sync, and visual effects to existing videos with natural language instructions.heygen/heygen/translate/speedHeygen Translate Speed by HeyGen - AI-powered video editing and transformation. Apply style transfer, motion control, lip-sync, and visual effects to existing videos with natural language instructions.heygen/heygen/video-agent/v2Heygen Video Agent V2 is HeyGen's text-to-video AI model. Turn written scripts and prompts into professional-quality video clips with realistic motion, lighting, and scene composition.