models

HeyGen: Avatar IV

Markdown · JSON

HeyGen: Avatar IV

Avatar IV animates a photo into a lip-synced talking video, with facial expression and gesture timing guided by the voice. HeyGen documents script or recorded-audio workflows and Photo Avatar motion controls for lifelike or stylized presenters.

About the model

This description covers the model’s capabilities. Available in Ailoot inputs, outputs and options are listed for the selected method below.

Avatar IV is HeyGen’s avatar engine for turning a still image into an expressive talking video. Its diffusion-inspired audio-to-expression design uses vocal tone, rhythm and emotion to guide facial movement, head tilts, pauses and micro-expressions. The purpose is a presenter or character delivering spoken content with lip sync and gestures, rather than a general scene generator that creates a whole setting and soundtrack from a cinematic prompt.

The manufacturer describes support for lifelike and stylized characters, including angled or profile images, anime-style faces and pets. Photo-based characters work best when their eyes, mouth and facial structure are easy to identify. HeyGen recommends a clear, well-lit image with a natural posture and visible hands when gestures matter. A very small face, hidden lips, heavy masks, a pronounced beak or highly exaggerated proportions can weaken facial movement and lip sync. Keep the source framing suited to the intended performance.

The producer provides two speech-input paths. A written script is paired with a selected voice; a prerecorded audio track supplies the voice and timing directly. Use the recorded-audio path when the delivery is already established, and the script path when the speech needs to be synthesized. These inputs are alternatives in the documented interface. Prepare the final wording, names and pronunciation before animation, and preserve the audio or script with the returned video so the spoken result can be checked.

HeyGen’s Avatar IV model profile covers studio avatars, Digital Twins, Photo Avatars, direct images and prompt-created subjects. A reusable Photo Avatar provides a stable subject for later videos, while a direct-image workflow starts from the supplied picture. The producer’s Photo Avatar profile offers free-text motion instructions and expressiveness choices of high, medium or low, with low as its default. Retain the chosen avatar look and engine when making a series so a changed source image or rendering model does not become an unnoticed change in the presenter.

For motion direction, describe a visible body action and its emotional quality. “Nods gently with a warm smile” gives one gesture and one expression; a brief greeting can use a friendly wave. The maker recommends one main gesture, optionally paired with a facial expression, and no more than two short clauses for a sequence. Avatar IV handles pacing from the performance, so the Studio guide does not require a second-by-second gesture schedule. Specific, concise wording is easier to inspect than several competing actions in one prompt.

The producer’s audio-to-video profile renders up to thirty minutes of supplied audio per request, and uploaded MP3 or WAV assets have a 32 MB limit. For a longer lesson or recording, divide the material at coherent speech boundaries and retain the original ordering. The final video’s spoken timing should follow the selected audio rather than an unrelated clip-duration estimate.

The documented producer output settings include 720p or 1080p and shapes of 16:9, 9:16, 4:5, 5:4 or 1:1, with an automatic option that follows the source proportions. A cover fit can crop the subject; contain fits the whole subject and may leave surrounding background visible. Its audio-to-video workflow returns MP4 by default. For video avatars, transparent WebM output requires matting support, and the producer applies background removal for that output rather than combining it with a new background. Inspect the actual framing and file before placing the presenter in a larger composition.

A training introduction can use a readable presenter image, a concise explanation and one restrained gesture at the key instruction. A product explainer can retain the same avatar look while changing the spoken script for different features. The producer also documents optional subtitle files and burned captions; review their wording and timing alongside the speech. Rendering is asynchronous in the maker interface, so a creation response and the completed video are different artifacts. Keep the finished recording and its completion state with the task’s result.

Avatar IV remains distinct from Avatar V’s reference-driven motion and its separate Studio preset controls. It is also distinct from HeyGen Video’s general-purpose scene generation and from an interactive live-avatar conversation. Review the rendered mouth movement, visible hands, facial expression, pauses and spoken wording against the source material and intended tone. Image, pose, lighting and motion instructions affect the result; a photo-based animation should be checked as a generated performance, with the chosen inputs retained for later revisions.

Ailoot Ultra · Video POST /v1/videos heygen/avatar-iv

heygen/avatar-iv

HeyGen /heygen/avatar-iv

Overview

Avatar IV animates a photo into a lip-synced talking video, with facial expression and gesture timing guided by the voice. HeyGen documents script or recorded-audio workflows and Photo Avatar motion controls for lifelike or stylized presenters.

Accepted inputs
Text · Images · Audio · Video
Results
Video

Available in Ailoot · inputs & methods

Ailoot Ultra · Video POST /v1/videos
Input types
text, image, audio, video
Output types
video
FieldTypeRequirementValues & limitsDefault
FieldmodelTypestringRequirementRequiredValues & limits
heygen/avatar-iv
Default—
Fieldinput_referencesTypearrayRequirementRequiredValues & limits
Minimum items: 2
Maximum items: 2
Default—
FieldpromptTypestringRequirementOptionalValues & limitsDefault—
Method parameters and lifecycle
ParameterContract
Parametercontent_typeContractapplication/json
ParameterrequiredContractmodel, input_references
Parametermaterial_typesContracttext, image, audio, video
Parametermaterial_conditionsContractUse actual completed owned media asset content URLs with their returned signatures: one video source for BFL, or one image and one audio source for avatar. The Source owner/type/byte witness is required., Supply exactly one PNG/JPEG image and one WAV/MP3 audio asset. The audio is at most32000000 bytes, with duration greater than0 and at most1800 seconds.

Lifecycle: asynchronous_job_then_owned_outputs

GET /v1/videos/{request_id} · actual returned id or polling_url

GET /v1/videos/{request_id}/content

Pricing

How the final charge is calculated

The displayed rates estimate the cost before generation. The final charge is calculated from the cost recorded for the original generation. Measured output duration and forecast quantities are not the final billable quantity.

Tariff references do not add request options. Supported parameters are listed for the selected method.

Fast mode
Not specified When fast mode is selected
Flex mode
Not specified When flex mode is selected
Maximum reasoning effort
Not specified When maximum reasoning effort uses the default adjustment

Estimated rates for comparison

Prices by configuration

Match each charge to the conditions shown. Use one rate for each set of alternative configurations.

ConfigurationRate scheduleForecast quantityBilling unitBilling conditionsCharge
ConfigurationBase token ratesRate scheduleBase rateForecast quantity—Billing unit—Billing conditions—Charge
Input · Input tokens · Estimate for comparison only — / 1K tokens
Output · Output tokens · Estimate for comparison only — / 1K tokens
Input · Cache read · Estimate for comparison only — / 1K tokens
Input · Cache write · Estimate for comparison only — / 1K tokens
Input · Cache write, 1 hour · Estimate for comparison only — / 1K tokens
ConfigurationVideo priceRate schedule—Forecast quantity—Billing unitper video secondBilling conditionsNo additional condition is declared in this pricing key.Charge
Output · Video price · Estimate for comparison only $0.1 per video second
ConfigurationEstimated generation costRate schedule—Forecast quantityone generation estimateBilling unit—Billing conditions—Charge
Output · Estimated generation cost · Estimate for comparison only $0.1 estimate before generation

This estimate is not an additional charge or a fixed rate for the completed generation.

Ailoot reserves an estimated amount before a request. After the result, it settles the final charge from measured usage. Streaming settlement uses the final usage record. How reservation and settlement work →

Example requests

Ailoot Ultra · Video

Use actual input and retain the complete result
set -eu
: "${AILOOT_API_KEY:?Set your Ailoot API key}"
: "${AILOOT_INPUT_REFERENCES_JSON:?Set the actual documented input value}"
export AILOOT_INPUT_REFERENCES_JSON
python3 - <<'PY_REQUEST'
import json,os
from pathlib import Path
request={'model': 'heygen/avatar-iv', 'input_references': '${ACTUAL_OWNED_INPUT_REFERENCES}'}
request['input_references']=json.loads(os.environ['AILOOT_INPUT_REFERENCES_JSON'])
Path('request.json').write_text(json.dumps(request,ensure_ascii=False),encoding='utf-8')
PY_REQUEST
curl --fail-with-body --silent --show-error https://api.ailoot.ai/v1/videos \
  -H "Authorization: Bearer $AILOOT_API_KEY" -H 'Content-Type: application/json' \
  --data-binary @request.json -D response-headers.txt -o response.bin
# Retain the complete response and headers, every actual output, original returned identifiers and all usage fields. Recover the original operation without submitting creation again.

Receive and save results

Ailoot Ultra · Video

  • GET /v1/videos/{request_id}
  • GET /v1/videos/{request_id}/content
Save all completed assets
GET all completed assets
set -eu
: "${AILOOT_API_KEY:?Set your Ailoot API key}"
: "${AILOOT_STATUS_FILE:?Set the actual completed status JSON file}"
export AILOOT_STATUS_FILE
python3 - <<'PY_REQUEST'
import json,os
from pathlib import Path
from urllib.parse import urlsplit,urljoin
f=Path(os.environ["AILOOT_STATUS_FILE"])
if not f.is_file():raise SystemExit("Choose the actual completed status file")
r=json.loads(f.read_text())
if r.get("status")!="completed" or not isinstance(r.get("data"),list) or not r["data"]:raise SystemExit("Wait for a completed status with asset paths")
urls=[]
for x in r["data"]:
    if not isinstance(x,str) or "\n" in x or "\r" in x:raise SystemExit("Invalid asset path")
    u=urljoin("https://api.ailoot.ai",x)
    z=urlsplit(u)
    if z.scheme!="https" or z.netloc!="api.ailoot.ai" or z.username or z.password:raise SystemExit("Use the actual Ailoot asset paths from status")
    urls.append(u)
Path("asset-urls.txt").write_text("\n".join(urls)+"\n")
PY_REQUEST
index=0
while IFS= read -r asset_url; do
  curl --fail-with-body --silent --show-error "$asset_url" \
    -H "Authorization: Bearer $AILOOT_API_KEY" -o "video-${index}.mp4"
  index=$((index + 1))
done < asset-urls.txt
Keep all completed results

Save every completed video or returned file; retrieve every actual returned asset URL.

Retain the complete response and headers, every actual output, original returned identifiers and all usage fields. Recover the original operation without submitting creation again.

If the original response needs checking

Keep X-Client-Request-ID, X-Ailoot-Task-Id and actual returned id/polling_url. Continue the original job; do not submit creation again.

Response fields
FieldType
FieldidType
FieldstatusType
Fielddata[]Type
Fieldoutputs[]Type

Aliases

Model aliases

Ailoot Ultra heygen/avatar-iv

Method path aliases

Use the method paths shown above.

Related caller IDs

heygen/avatar-iv

FAQ · HeyGen: Avatar IV
What inputs and results are available?

POST /v1/videos · heygen/avatar-iv: text, image, audio, video → video

Which fields does the request use?

POST /v1/videos · heygen/avatar-iv: model, input_references, prompt

More details

Connect Ailoot to Claude Code, OpenCode, Hermes or your own app.

The company and its project portfolio

The company and its project portfolio: millions of customers; monthly sales in the billions.

Buy tokens at a discount.

Subscription discounts for regular use. Promo codes offer up to 50% off token purchases.

Subscription
Choose a discounted plan for your regular requests.
Promo code: up to 50% off
Enter your code at checkout. The price updates to reflect the current promotion.
Spending in your history
The model, tokens and amount are recorded for each request.

Choose a subscription · View model prices

Connect the API to a product you sell.

Use Ailoot in SaaS, apps and bots under its official service offer and licence agreement. Request a reseller licence for resale.

Commercial application
Add text, image, video and audio generation to paid features in your service.
Reseller licence
Send a description of your project and how you provide access. Request written terms for use and resale.
Documents on the website
The service offer, licence agreement and data processing policy are available before you connect.

Request a reseller licence · Service offer and licence agreement