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-turbo/ref-video-to-video",
"input": {
"video_url": "https://cdn.vidgo.ai/temp/cartoon-character.mp4",
"image_urls": [
"https://cdn.vidgo.ai/temp/cartoon-character.png"
],
"audio_url": "https://cdn.vidgo.ai/temp/speech.mp3",
"resolution": "2K"
}
}
'{
"code": 200,
"data": {
"task_id": "task-example-001",
"status": "not_started",
"created_time": "2026-11-19T10:30:00"
}
}{
"detail": "video_url is required"
}{
"detail": "video_url is required"
}HeyGen
HeyGen Avatar 6 Turbo Reference Video to Video
The HeyGen Avatar 6 Turbo Reference Video to Video API makes an animated or illustrated character from a reference video speak 2–60 seconds of audio, 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-turbo/ref-video-to-video",
"input": {
"video_url": "https://cdn.vidgo.ai/temp/cartoon-character.mp4",
"image_urls": [
"https://cdn.vidgo.ai/temp/cartoon-character.png"
],
"audio_url": "https://cdn.vidgo.ai/temp/speech.mp3",
"resolution": "2K"
}
}
'{
"code": 200,
"data": {
"task_id": "task-example-001",
"status": "not_started",
"created_time": "2026-11-19T10:30:00"
}
}{
"detail": "video_url is required"
}{
"detail": "video_url 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-turbo/ref-video-to-video — Animated character reference video + speech audio to a talking video, 1080p or 2K.
Features
- Animates cartoon and illustrated characters from a reference video.
- Optional reference photo of the same character.
- Video length follows the audio, 2–60 seconds.
1080por2Koutput that keeps the reference video’s aspect ratio.
Required parameters
video_url(string): A video of an animated or illustrated character, at least 2 seconds long and up to 50 MB, 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
image_urls(string[]): One reference photo of the same character.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
- Reference video and photo: a cartoon character video plus a still of the same character,
2K. - Reference video only: with a short motion direction.
Notes
- The reference video needs to be at least 2 seconds long, up to 50 MB and downloadable; other videos return 400. This mode is built for animated and illustrated characters; a failed task is refunded in full.
- 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