curl --request POST \
--url https://api.vidgo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "heygen/avatar-6/image-to-video",
"input": {
"image_urls": [
"https://cdn.vidgo.ai/temp/presenter.png"
],
"audio_url": "https://cdn.vidgo.ai/temp/speech.mp3",
"prompt": "Face the camera with a warm smile and use small, natural hand gestures.",
"resolution": "1080p"
}
}
'{
"code": 200,
"data": {
"task_id": "task-example-001",
"status": "not_started",
"created_time": "2026-11-19T10:30:00"
}
}{
"detail": "image_urls is required"
}{
"detail": "image_urls is required"
}HeyGen
HeyGen Avatar 6 Image to Video
The HeyGen Avatar 6 Image to Video API turns one photo of a person and 2–60 seconds of speech audio into a lip-synced talking video at 1080p or 2K.
POST
/
api
/
generate
/
submit
curl --request POST \
--url https://api.vidgo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "heygen/avatar-6/image-to-video",
"input": {
"image_urls": [
"https://cdn.vidgo.ai/temp/presenter.png"
],
"audio_url": "https://cdn.vidgo.ai/temp/speech.mp3",
"prompt": "Face the camera with a warm smile and use small, natural hand gestures.",
"resolution": "1080p"
}
}
'{
"code": 200,
"data": {
"task_id": "task-example-001",
"status": "not_started",
"created_time": "2026-11-19T10:30:00"
}
}{
"detail": "image_urls is required"
}{
"detail": "image_urls is required"
}- After submission, a
task_idwill be returned. If you provided acallback_url, when the task status becomesfinishedorfailed, a POST request will be sent to thecallback_url. - Regardless of whether
callback_urlis provided, you can retrieve the result through the unified Query Task Status endpoint.
Models
- heygen/avatar-6/image-to-video — Photo + speech audio to a talking video, 1080p or 2K.
Features
- Lip sync, facial expressions and gestures from one photo.
- Video length follows the audio, 2–60 seconds.
- Optional
promptto guide gestures, expression and posture. 1080por2Koutput that keeps the photo’s aspect ratio.
Required parameters
image_urls(string[]): Exactly one photo of the person to animate, as a publicly accessible HTTP(S) URL.audio_url(string): Speech audio, 2–60 seconds long and up to 15 MB, as a publicly accessible HTTP(S) URL. The video runs the length of the audio.
Optional parameters
prompt(string): Direction for gestures, expression and posture, up to 1,200 characters.resolution(string):1080por2K. Default1080p.
Output
- One MP4 video with lip-synced speech.
- The video length follows the speech; it can be about a tenth of a second shorter than the audio.
Examples
- Photo with speech: a presenter photo and an MP3, with motion direction,
1080p. - 2K output: the same inputs at
2K.
Notes
- A clear, front-facing photo and continuous, clearly spoken audio give the most accurate lip sync.
image_urlstakes exactly one image.- The audio is checked at submission: it needs to be 2–60 seconds long, up to 15 MB and downloadable; other audio returns 400.
- Put
modelandcallback_urlat the request root, next toinput.inputaccepts the fields listed above for this mode; other fields return 400. - Credits are billed per second at the rate for
resolution. The audio duration, rounded up to whole seconds, is charged at submission. A failed task is refunded in full. See the pricing page for current rates.
Body
application/json