/VIDEO/heygen-avatar-6
Video
HeyGen

HeyGen Avatar 6 API

Create a lip-synced video from a portrait or an animated character reference video and a speech audio track. Supports 1080p and 2K.

  • Image to video
  • Video to video

Starting at

$0.15

per second of output

5 parameters · 2 price options

HeyGen Avatar 6 API pricing

OptionPrice per second
1080p$0.15
2K$0.21
1curl -X POST https://api.api-stock.com/api/v1/generation/create \
2 -H "Authorization: Bearer $API_STOCK_KEY" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "model": "heygen-avatar-6",
6 "input": {
7 "audioUrl": "https://example.com/speech.mp3",
8 "resolution": "1080p",
9 "imageUrls": [
10 "https://example.com/portrait.jpg"
11 ]
12 }
13 }'

Parameters

NameTypeRequiredDefaultDescription
audioUrlstringYes—Public URL of the speech audio (2–60 seconds, maximum 15 MB). Video length follows the audio. Billing rounds the audio duration up to whole seconds.
resolutionstringNo1080pOutput resolutionOne of: 1080p, 2K
promptstringNo—Optional direction for the avatar's gestures, expression and posture.
videoUrlstringNo—Public URL of an animated or illustrated character video, at least 2 seconds long and up to 50 MB. Providing videoUrl selects video-to-video mode. The output follows the video's aspect ratio.
imageUrlsstring[]No—Public URL of one portrait image, required when videoUrl is omitted. In image-to-video mode the output follows the portrait's aspect ratio. With videoUrl, you may supply an image of the same character.

Frequently asked questions

How much does HeyGen Avatar 6 cost?

HeyGen Avatar 6 starts at $0.15 per second of output on API Stock. The final charge depends on the selected settings.

How do I get an API key for HeyGen Avatar 6?

Create an account and API key on API Stock, then fund your balance. The same key works with HeyGen Avatar 6 and other catalog models.

How do I call the HeyGen Avatar 6 API?

POST to https://api.api-stock.com/api/v1/generation/create with your API key and model "heygen-avatar-6". Use the returned task id for polling or receive a webhook.

What input parameters does HeyGen Avatar 6 accept?

HeyGen Avatar 6 accepts 5 input parameters, including the required field(s) audioUrl. See their types, defaults and allowed values above.

What happens if a HeyGen Avatar 6 request fails?

API Stock automatically retries the request on a reserve provider. If every provider fails, the charge is refunded to your balance.

Can I use HeyGen Avatar 6 with the same API key as other models?

Yes. Use your API Stock API key and balance for HeyGen Avatar 6 and other catalog models.

Read next