HeyGen
HeyGen Avatar 6 Turbo
heygen-avatar-6-turbo/ref-video-to-video
HeyGen's fast avatar video model, offering a built-in library of digital human avatars and text-to-speech support, and also supporting photo or animated character reference clips with audio-driven lip-sync for talking-head videos, with optional 1080p or 2K resolution
Try heygen-avatar-6-turbo/ref-video-to-video
Input
HTTPS link to a reference clip of an animated or illustrated character, used to determine the avatar's appearance; live-action footage of real people is not supported.
Optional. An HTTPS link to a reference photo of the same character; it can be used together with the reference video to keep the appearance consistent.
HTTPS link to the speech audio that drives lip sync; the generated video has the same duration as the audio, and facial expressions and gestures are driven by the intonation and rhythm of the speech.
Output
Pricing
heygen-avatar-6-turbo/ref-video-to-video per second
| Specifications | Unit Price |
|---|---|
| 1080P | |
| 2K | |
Overview
An animation character lip-sync video generation API for developers and production teams: upload a reference video of an animated or illustrated character and a voice audio track, and get a finished video of that character speaking along with the audio. Both links are required and must be publicly accessible HTTPS addresses, and the output video length follows the audio; a reference image of the same character can optionally be used to stabilize appearance, and a motion prompt can describe actions and expressions. It is suited to marketing, course and content teams that want to quickly turn existing voice recordings into character-on-camera assets.
Key highlights
- Voice directly drives the visual rhythm — the character's lip movements, expressions and head motions are organized around the intonation and rhythm of the audio, so no frame-by-frame lip-syncing is needed during production, letting you focus on reviewing source material and checking the final video.
- The reference video must show an animated or illustrated character — video_url only accepts reference clips of animated or illustrated characters; live-action video is not supported, so filter out live-action footage during material selection before entering the generation workflow.
- An optional image of the same character stabilizes appearance — image_url can supply a reference photo of the same character to help keep the character's appearance consistent across multiple videos, but it is only used to stabilize the look and cannot change the character.
- Two resolution tiers, choose one as needed — resolution defaults to 1080p and can be switched to 2k, with only one tier used per request; before delivery, confirm the image-detail requirements with the publishing destination, then generate in batches.
Capabilities
- video_url drives the character appearance: video_url is a required HTTPS reference video link whose content must be an animated or illustrated character; live-action clips are not supported. When preparing, open each link to confirm the character type, image clarity and whether it is the required character, so that live-action shots in mixed edits are not brought into the request.
- audio_url determines the spoken content and duration: audio_url is a required HTTPS voice file link, and once provided, the video length follows the audio. It is recommended to first normalize sample rate and loudness, cut out excess silence, then split and upload by segment, and audition each segment to confirm there is no crosstalk before submitting.
- image_url stabilizes the same character's appearance: image_url is an optional HTTPS reference image of the same character, used to stabilize appearance rather than to change the character. When choosing an image, confirm that the character in it matches the reference video and that the face is clear and unobstructed; for multi-shot projects, keep the same image fixed to reduce appearance drift between segments.
- motion_prompt describes actions and expressions: motion_prompt is optional text, up to 1200 characters, used to describe the direction of the character's actions and expressions. Write posture, gaze and emotion in short sentences, avoid stacking contradictory requirements, and keep a reusable prompt text for later adjustments.
- resolution selects output quality: resolution defaults to 1080p and can be set to 2k, with one choice per request. 1080p costs $0.0715 per second and 2K costs $0.125126 per second; decide the tier based on the publishing destination first, then apply it uniformly to the same batch of materials to avoid mixing resolutions within one project.
Use cases
- Marketing teams turn voice recordings into character talking-head videos — brand operations teams gather promotional reference clips of an animated character, confirm there are no live-action shots, then pair them with an already recorded ad voiceover and use 2k to generate talking-head short videos for social media and website video slots. Before delivery, review the lip-sync and character appearance in the first three seconds, then export assets in a consistent aspect ratio for the media buying colleagues.
- Training departments produce course explainer videos — course producers split recorded narration audio by chapter, check each segment for crosstalk, and generate explainer segments with a reference video of an illustrated instructor character. After reviewing the lip-sync continuity at chapter transitions, archive according to the learning platform's specifications so that a re-recorded version can be swapped in and redone later.
- Podcast teams visualize clips — podcast editors pick highlight audio clips and pair them with a fixed reference video of an illustrated host character and the same character image to generate short videos in batches. Before publishing, check whether the opening lip-sync and the character match previous episodes, then hand off to operations for distribution to short-video platforms.
- Content studios test multiple recording versions — studios submit different test recordings for the same character separately, compare lip-sync fit and visual feel, and decide on the final voiceover version. Once selected, they fix the reference video, character image and motion_prompt, generate a formal sample for client review, and after approval move into batch production.
Limitations and selection advice
- The reference video only accepts animated or illustrated characters; exclude live-action footage during material selection, and for mixed edits check the character type segment by segment before submitting.
- image_url can only stabilize the appearance of the same character and cannot be used to change the character; before swapping images, confirm it is the same character as the reference video, otherwise image consistency will be broken.
- The output video length is determined by audio_url; once the audio is submitted, the duration is no longer set separately. For segmented production, split the audio into appropriate granularity and record each part separately.
- The generated visuals are not guaranteed to match the reference video frame by frame, and camera motion is only within the reference range; before delivery, review sample segments from the opening, transitions and ending before finalizing.
What's new
View changelog →- New model HeyGen Avatar 6 Turbo is live: three digital-human video routes
Frequently asked questions
View all FAQs →-
Can I generate a video with only text and an avatar?
Yes. identity-to-video supports pure text-driven generation: put the script to be spoken in prompt (up to 5000 characters), select a TTS voice with voice (such as Warm Pro Narrator, Ivy, John Doe, etc.), and choose an image from the built-in avatar library with avatar, and you can generate a lip-synced talking video. In this case the audio is automatically synthesized by the model, and the video duration follows the length of the synthesized audio.
-
How do I drive the avatar with my own recorded audio?
Simply pass audio_url, but it must be an HTTPS link to a speech audio file. Once audio_url is provided, both prompt and voice are ignored, and the video length is determined entirely by the duration of that audio. Note that the audio duration cap corresponds to a generation limit of about 600 seconds, so overly long audio must be trimmed first.
-
Can I specify the video duration myself?
No. The video length for this model is determined by the duration of the input audio and cannot be specified independently through parameters. If driven by text, the duration follows the length of the synthesized speech; if audio_url is passed, it follows the length of that audio. To control the length of the finished video, you can only do so by adjusting the amount of script text or editing the audio.
-
How should I write the prompt to control expressions and actions?
Use the motion_prompt field to describe the actions and expressions, up to 1200 characters; prompt only handles the dialogue content. Suggested order: ① first write the overall emotional tone (e.g. "calm, confident"); ② then write the head and facial details (e.g. "slight nodding, natural blinking, occasional smiling"); ③ finally write the gesture amplitude (e.g. "hands resting naturally in front of the body, occasional small gestures"). Do not repeat the dialogue content, and do not write camera movement or scene changes, as these are not within the scope of motion_prompt's control.
Create a generation task
https://api.hiapi.sh/v1/tasks Headers
AuthorizationstringRequiredAccount API key. Required on every request. Example: Bearer YOUR_HIAPI_API_KEY. Get your API key
Content-TypestringOptionalThe request body is always parsed as JSON; when sent, only application/json (optionally with charset) is accepted — any other value returns 415. Example: application/json.
Idempotency-KeystringOptionalIdempotency key, up to 255 bytes. Retries with the same key from the same account create the task only once; replays return the original taskId.
On network timeouts or client retries, the same key creates the task only once — no double charges (scope: the API key's account). Use a business-unique identifier as the key (e.g. "order-42"); replays return the original taskId, and keys expire 24 hours after the first request. See the Unified Async API overview for the full scenario matrix.
Body
modelstringRequiredCurrent fixed value: heygen-avatar-6-turbo/ref-video-to-video
routestringOptionalCurrent fixed value: default
inputobjectRequired
Business parameters for heygen-avatar-6-turbo/ref-video-to-video and route default — see the parameter table below.
audio_urlstringRequiredminLength 1pattern ^https://HTTPS URL of the speech audio file. Once provided, the lip sync and performance are driven directly by the audio, and the output video duration matches the audio duration.
image_urlstringOptionalminLength 1pattern ^https://Optional HTTPS URL of a reference photo of the same character.
video_urlstringRequiredminLength 1pattern ^https://HTTPS URL of a reference clip of an animated or illustrated-style character; live-action footage is not supported.
resolutionstringOptionalDefault: "1080p"Output resolution, default 1080p; 2k is billed higher than 1080p.
1080p2kmotion_promptstringOptionalmaxLength 1200Optional prompt used to specify the direction of the digital human's movements and expressions.
callbackobjectOptional
Terminal-state notification config. When omitted, no callback is delivered — poll the task yourself. See the callback note below.
Provide callback.url when creating a task and HiAPI POSTs to your service once the task reaches a terminal state — no polling needed. The callback payload mirrors the task detail structure; signature verification, delivery retries and idempotency are documented on the Unified Async API overview page.
urlstringRequiredRequired when callback is present. A POST is sent to this URL once the task reaches a terminal state; must be a valid http(s) URL.
whenstringOptionalDefault: "final"Only final is supported today — notified on both success and fail.
finalstoragestringOptionalDefault: "temp"Artifact storage tier: temp (default, retained about 7 days) or persistent (long-term, billed by size). Insufficient balance or exceeding the storage cap silently downgrades to temp; the effective tier is shown in the task detail response.
temppersistentRequest examples
# Submit an async task; returns a taskId immediately (no waiting for generation)
curl -X POST "https://api.hiapi.sh/v1/tasks" \
-H "Authorization: Bearer $HIAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "heygen-avatar-6-turbo/ref-video-to-video",
"input": {
"audio_url": "…",
"video_url": "…",
"resolution": "1080p"
}
}' const res = await fetch("https://api.hiapi.sh/v1/tasks", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.HIAPI_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
model: "heygen-avatar-6-turbo/ref-video-to-video",
input: {
"audio_url": "…",
"video_url": "…",
"resolution": "1080p"
}
}),
});
const task = await res.json();
// { code: 200, message: "success", data: { taskId } } import os, requests
res = requests.post(
"https://api.hiapi.sh/v1/tasks",
headers={"Authorization": f"Bearer {os.environ['HIAPI_API_KEY']}"},
json={
"model": "heygen-avatar-6-turbo/ref-video-to-video",
"input": {
"audio_url": "…",
"video_url": "…",
"resolution": "1080p"
}
},
)
print(res.json()) # { code, message, data: { taskId } } 200 OK
{
"code": 200,
"message": "success",
"data": {
"taskId": "tk-hiapi-01HZTQ8BX2N3GM3YFK4Z9D7VQR"
}
} 400 Bad Request
{
"code": 400,
"message": "invalid request",
"data": null,
"error_code": "INVALID_REQUEST"
} Get task detail
https://api.hiapi.sh/v1/tasks/:id Response fields
taskIdstringRequiredTask ID, always prefixed with tk-hiapi-.
modelstringRequiredResolved full model name. Tasks submitted with the route parameter return base@route (e.g. gpt-image-2/text-to-image@ext); otherwise identical to the name passed at creation.
routestringOptionalPresent only when the task was submitted with an explicit route parameter; echoes the submitted value.
statusstringRequiredTask status.
queued Queued, not started yet.
handling Being processed.
archiving Processing finished, artifacts being prepared.
success Terminal: completed, artifacts available (output returned).
fail Terminal: failed (error returned).
After submission, check status: success and fail are terminal, everything else is non-terminal. Poll every 1–3 seconds until terminal. On success, download artifacts from output[].url and transfer them before expireAt; pass storage: "persistent" at creation time when long-term retention is needed.
creatednumberRequiredTask creation time (Unix seconds).
completednumberRequiredUnix seconds when the task reached a terminal state; fixed to 0 while not terminal.
outputarrayOptional
Present only when status == success. Artifact list — always an array; a single task may return multiple types at once (e.g. video + first_frame).
Array [ object ]
Array items
urlstringRequiredArtifact URL, directly downloadable.
typestringRequiredCurrent possible values: video, image, audio, first_frame, last_frame, thumbnail; more may be added later.
expireAtnumberRequiredUnix seconds until which the artifact remains accessible; download or transfer before it expires.
errorobjectOptional
Present only when status == fail.
codestringRequiredBusiness error code.
messagestringRequiredError description.
Response examples
Success
{
"code": 200,
"message": "success",
"data": {
"taskId": "tk-hiapi-01HZTQ8BX2N3GM3YFK4Z9D7VQR",
"model": "happyhorse-1-0",
"status": "success",
"created": 1777282033,
"completed": 1777282099,
"output": [
{
"url": "https://cdn.hiapi.ai/tasks/.../video.mp4",
"type": "video",
"expireAt": 1777886899
}
]
}
} Processing (non-terminal)
{
"code": 200,
"message": "success",
"data": {
"taskId": "tk-hiapi-...",
"model": "happyhorse-1-0",
"status": "archiving",
"created": 1777282033,
"completed": 0
}
} Failed
{
"code": 200,
"message": "success",
"data": {
"taskId": "tk-hiapi-...",
"model": "happyhorse-1-0",
"status": "fail",
"created": 1777282033,
"completed": 1777282099,
"error": {
"code": "TASK_FAILED",
"message": "task failed"
}
}
} Articles
View all articles →-
Tutorial
HeyGen Avatar 6 Turbo identity-to-video in practice: five high-value scenarios
From batch narration to a production pipeline: where a digital human earns its place
10 min read -
Tutorial
HeyGen Avatar 6 Turbo Ref Video-to-Video API: Working curl and Python Request
A practical integration path from first call to a finished video
10 min read -
Tutorial
HeyGen Avatar 6 Turbo image-to-video in practice: five high-value scenarios
From product explainers to multilingual clips: how developers put a video model to work
8 min read -
Guide
HeyGen Avatar 6 Turbo image-to-video: Capabilities, Pricing and Integration
From a portrait to a talking clip: input shapes, parameters and per-second cost
8 min read -
Comparison
HeyGen Avatar 6 Turbo image-to-video: how to compare and migrate
8 min read -
Guide
HeyGen Avatar 6 Turbo identity-to-video: Capabilities, Pricing and Integration
From scripts and recordings to talking-head video: capability boundaries, API details and cost estimation
7 min read -
Comparison
HeyGen Avatar 6 Turbo identity-to-video: choosing among digital-human models
From billing to integration: a selection and migration guide for developers
8 min read
Related Models
View all models →Same Type
-
Kling 4.0 Flash Kuaishou $0.122 /second -
Ray 3.2 Luma $0.214 /video -
LTX 2.5 Fast Lightricks $0.043 /second -
Veo 3.1 Fast Google $0.170 /second -
HappyHorse 1.0 Alibaba $0.168 /second -
Gemini Omni 1.1 Google $0.023 /second -
Wan 2.6 Flash Alibaba $0.029 /second -
HappyHorse 1.1 Alibaba $0.160 /second -
Kling 3.0 Kuaishou $0.100 /second -
PixVerse V6 Max PixVerse $0.030 /second -
P-Video 2 Pro Avatar Pruna AI $0.029 /second -
MAGI 2 Sand AI $0.126 /second