API Free WeekHundreds of APIs are free to call this week.Browse free APIs

HeyGen Avatar 4 Digital Twin

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.

Base price
$0.50USD / run
Execution
async
Model type
video
Input fields
4

Try the model

Playground

Open playground
Input
The aspect ratio of the generated image. Allowed values: auto, 16:9, 9:16, 5:4, 4:5, 1:1.
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.
OutputReady

Your output will appear here

Complete the inputs, then click Run.

Model card

Specifications

Pricing

Base price
$0.50 / run

Context & modalities

Input
Schema-defined
Output
video

Capabilities

Chat
Not supported
Vision
Not supported
Reasoning
Not supported
Structured output
Not supported
Function calling
Not supported
Audio input
Not supported

Access

Provider
HeyGen
Model ID
heygen/heygen-avatar4/digital-twin
Execution
async
Base URL
https://api.sandbase.ai
API
Unified Run API
Endpoint
/v1/run

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": "16: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

Start building

Send your first request

OpenAI-compatible endpoint with unified authentication and usage tracking.

Production API
Unified Run API endpoint
https://api.sandbase.ai/v1/run
Model ID
heygen/heygen-avatar4/digital-twin
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
  -X POST "https://api.sandbase.ai/v1/run" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'SANDBASE_JSON'
{
  "model": "heygen/heygen-avatar4/digital-twin"
}
SANDBASE_JSON
)
run_id=$(printf '%s' "$result" | jq -r .id)
for attempt in $(seq 1 120); do
  status=$(printf '%s' "$result" | jq -r .status)
  case "$status" in completed|failed|timeout) break ;; esac
  sleep 2
  result=$(curl --fail-with-body --silent \
    -H "Authorization: Bearer $SANDBASE_API_KEY" \
    "https://api.sandbase.ai/v1/run/$run_id")
done
status=$(printf '%s' "$result" | jq -r .status)
[ "$status" = completed ] || { echo "Generation ended: $status" >&2; exit 1; }
printf '%s\n' "$result"

Choose your model

Compare models

All image & video models
ModelTypeDefault priceReleased
HeyGenVideo$0.50 / runFeb 23, 2026
HeyGenVideo$0.60 / runMay 20, 2026
HeyGenVideo$1.02 / runApr 16, 2026
HeyGenVideo$0.50 / runApr 16, 2026
HeyGenVideo$0.25 / runApr 16, 2026
HeyGenVideo$0.50 / runFeb 23, 2026

Questions

FAQ

How do I call HeyGen Avatar 4 Digital Twin through SandBase?

Create a SandBase API key, then send requests with the model ID "heygen/heygen-avatar4/digital-twin" to Unified Run API (/v1/run) at https://api.sandbase.ai. The request examples on this page show the exact payload.

Do I need a separate HeyGen account?

No. One SandBase API key and balance gives you access to HeyGen Avatar 4 Digital Twin and the other models in the catalog; you do not need to sign up with HeyGen separately.