HeyGen Avatar 6
HeyGen Avatar 6. Lip-synced talking video from one image and a speech track, up to 60 seconds.
Pricing, live playground and model overview: HeyGen Avatar 6 API on YepAPI
/v1/media/queueOverview
HeyGen Avatar 6 animates one image so the character speaks a supplied audio track, lips in sync. It is HeyGen's full-quality avatar model; HeyGen Avatar 6 Turbo does the same at half the 1080p price. Async operation: submit a job, poll for completion.
| Property | Value |
|---|---|
| Model ID | heygen/heygen-avatar-6 |
| Provider | HeyGen |
| Input | One image and one MP3 or WAV speech track (up to 60 seconds, 15 MB) |
| Resolutions | 1080p, 2K |
| Aspect Ratio | Follows the image |
| Duration | Follows the audio |
| Output | MP4 (H.264, 25 fps) with the speech as its audio track |
| Billing | Dynamic (actual cost per job) |
| Pricing | from $0.211/second |
Usage
All media models use the async job queue. Submit a job, then poll for the result.
Step 1: Submit Job
Audio from a URL
const res = await fetch('https://api.yepapi.com/v1/media/queue', {
method: 'POST',
headers: {
'x-api-key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
model: 'heygen/heygen-avatar-6',
prompt: 'Speaks quietly to the camera, small nods',
imageData: { mimeType: 'image/jpeg', base64: '...' }, // the character
options: {
referenceAudioUrl: 'https://example.com/line-01.mp3',
resolution: '1080p',
},
}),
});
const { data } = await res.json();
// data.jobId — use this to poll for resultsAudio in the request
Send the speech as base64 instead of a URL, for example the result of a text-to-speech job. Models that return PCM need a WAV header first.
curl -X POST https://api.yepapi.com/v1/media/queue \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "heygen/heygen-avatar-6", "prompt": "Speaks quietly to the camera, small nods", "imageData": {"mimeType": "image/jpeg", "base64": "..."}, "audioData": {"mimeType": "audio/mpeg", "base64": "..."}}'Step 2: Poll for Result
const status = await fetch(`https://api.yepapi.com/v1/media/status/${data.jobId}`, {
headers: { 'x-api-key': 'YOUR_API_KEY' },
});
const { data: job } = await status.json();
// job.status — "pending" | "processing" | "completed" | "failed"
// job.result.video — { mimeType, base64 } when completedcurl https://api.yepapi.com/v1/media/status/JOB_ID \
-H "x-api-key: YOUR_API_KEY"Request Body
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
model | string | Yes | heygen/heygen-avatar-6 or alias lip-sync | — |
prompt | string | Yes | How the character behaves (expression, movement). It isn't spoken | — |
imageData | object | Yes | The character: mimeType and base64. One image; images with one entry also works | — |
options.referenceAudioUrl | string | One of the two | Public URL of the speech, MP3 or PCM WAV | — |
audioData | object | One of the two | The speech as mimeType and base64, instead of a URL | — |
options.resolution | string | No | 1080p, 2K | 1080p |
options.duration, options.aspectRatio and options.referenceVideoUrl aren't accepted: length follows the audio and shape follows the image.
Pricing
| Resolution | Cost/sec | 10-second clip |
|---|---|---|
| 1080p | $0.211 | $2.11 |
| 2K | $0.306 | $3.06 |
Billed on the length of the finished video, which is about the length of the audio. The audio is measured when you submit, and that price is held from your balance until the job ends. Failed jobs are free.
Use characters you created, or people who gave explicit consent, and audio you have the right to use. See the Acceptable Use Policy.
Jobs usually finish in one to two minutes. Results retained for 1 hour.
Powered by HeyGen Avatar 6 via our AI provider.