YepAPI
AI Models

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

POST/v1/media/queue
from $0.211/second

Overview

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.

PropertyValue
Model IDheygen/heygen-avatar-6
ProviderHeyGen
InputOne image and one MP3 or WAV speech track (up to 60 seconds, 15 MB)
Resolutions1080p, 2K
Aspect RatioFollows the image
DurationFollows the audio
OutputMP4 (H.264, 25 fps) with the speech as its audio track
BillingDynamic (actual cost per job)
Pricingfrom $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 results

Audio 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 completed
curl https://api.yepapi.com/v1/media/status/JOB_ID \
  -H "x-api-key: YOUR_API_KEY"

Request Body

ParameterTypeRequiredDescriptionDefault
modelstringYesheygen/heygen-avatar-6 or alias lip-sync—
promptstringYesHow the character behaves (expression, movement). It isn't spoken—
imageDataobjectYesThe character: mimeType and base64. One image; images with one entry also works—
options.referenceAudioUrlstringOne of the twoPublic URL of the speech, MP3 or PCM WAV—
audioDataobjectOne of the twoThe speech as mimeType and base64, instead of a URL—
options.resolutionstringNo1080p, 2K1080p

options.duration, options.aspectRatio and options.referenceVideoUrl aren't accepted: length follows the audio and shape follows the image.

Pricing

ResolutionCost/sec10-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.

Info

Use characters you created, or people who gave explicit consent, and audio you have the right to use. See the Acceptable Use Policy.

Info

Jobs usually finish in one to two minutes. Results retained for 1 hour.

Under the Hood

Powered by HeyGen Avatar 6 via our AI provider.

On this page