infery
← All models

Heygen v5 Digital Twin

heygen-avatar5-digital-twin

Video generationby Heygen

Create natural HeyGen Avatar V digital twin videos from text or audio, with lip-sync, optional backgrounds, captions, and MP4/WebM output.

Example

Details

Accepts
text

Pricing

Price
12.5 cr / second

Prices in credits (1 credit = $0.01).

Data schema

Input

FieldTypeDescription
fitstringenum: contain, coverHow the avatar fits within the output frame. 'contain' keeps the full avatar in view (may letterbox); 'cover' fills the frame (may crop).
voiceenum: Warm Pro Narrator, Chill Brian, Ivy, John Doe, Monika Sogam, Hope Name of the text-to-speech voice to use for the avatar when ``audio_url`` is not provided.
avatarName of the Avatar V-eligible avatar to use.
promptText the avatar will speak. Required when ``audio_url`` is not provided.
captionbooleanGenerate a sidecar SRT caption file alongside the video.
audio_urlHTTP(S) URL of an audio file for the avatar to lip-sync to. When provided, the avatar uses this audio instead of text-to-speech and ``prompt``/``voice`` are ignored.
watermarkOptional watermark image to overlay on the output video.
backgroundOptional background to composite behind the avatar. Ignored when ``output_format='webm'`` (webm output is transparent).
resolutionstringenum: 720p, 1080p, 4kOutput resolution preset.
aspect_ratiostringenum: 16:9, 9:16, 4:5, 5:4, 1:1, autoAspect ratio of the output video. Supported values: '16:9', '9:16', '4:5', '5:4', '1:1', and 'auto'. 'auto' preserves the source aspect ratio when HeyGen can read it, falling back to '16:9' otherwise.
output_formatstringenum: mp4, webmOutput container format. 'webm' produces a transparent video (automatically removes the background) and ignores the ``background`` field.
remove_backgroundbooleanRemove the avatar's background. Requires a matting-enabled avatar.

Output

FieldTypeDescription
videoThe generated Avatar V video file.
caption_fileGenerated caption file (SRT) when ``caption=True`` and HeyGen returns one.