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/identity-to-video",
"input": {
"avatar": "Abigail Office Front",
"text": "Hello and welcome. In the next minute I will walk you through our new dashboard.",
"voice": "Warm Pro Narrator",
"prompt": "Speak with calm confidence and nod slightly at the end.",
"aspect_ratio": "16:9",
"resolution": "1080p"
}
}
'{
"code": 200,
"data": {
"task_id": "task-example-001",
"status": "not_started",
"created_time": "2026-11-19T10:30:00"
}
}{
"detail": "avatar mode requires exactly one of audio_url or text"
}{
"detail": "avatar mode requires exactly one of audio_url or text"
}HeyGen
HeyGen Avatar 6 Turbo Public Avatar to Video
The HeyGen Avatar 6 Turbo Public Avatar to Video API makes one of 1,248 HeyGen public avatars speak your audio or read text with a HeyGen voice, at 1080p or 2K in 5 aspect ratios.
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/identity-to-video",
"input": {
"avatar": "Abigail Office Front",
"text": "Hello and welcome. In the next minute I will walk you through our new dashboard.",
"voice": "Warm Pro Narrator",
"prompt": "Speak with calm confidence and nod slightly at the end.",
"aspect_ratio": "16:9",
"resolution": "1080p"
}
}
'{
"code": 200,
"data": {
"task_id": "task-example-001",
"status": "not_started",
"created_time": "2026-11-19T10:30:00"
}
}{
"detail": "avatar mode requires exactly one of audio_url or text"
}{
"detail": "avatar mode requires exactly one of audio_url or text"
}- 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.
text aloud with one of the HeyGen voices. Names of all avatars and voices are listed in Avatars and Voices.
Other modes: HeyGen Avatar 6 Turbo Image to Video / HeyGen Avatar 6 Turbo Reference Video to Video. HeyGen Avatar 6 Turbo is the lower-cost tier of HeyGen Avatar 6 with the same inputs and modes. See HeyGen Avatar 6 Public Avatar to Video.
Models
- heygen/avatar-6-turbo/identity-to-video — HeyGen public avatar + speech audio or text to a talking video, 1080p or 2K.
Features
- 1,248 public avatars (156 people in several looks).
- Speech from your audio (2–60 seconds) or from
text(up to 1,000 characters) read by a HeyGen voice. - Five aspect ratios:
16:9,9:16,1:1,4:5,5:4. 1080por2Koutput.
Input modes
| Speech source | Send | Optional |
|---|---|---|
| Audio | avatar, audio_url | prompt, aspect_ratio, resolution |
| Text | avatar, text | voice, prompt, aspect_ratio, resolution |
audio_url or text.
Required parameters
avatar(string): The name of a HeyGen public avatar from Avatars and Voices, such asAbigail Sofa Front. Names match regardless of letter case and extra spaces.audio_url(string) ortext(string): Exactly one of them.audio_urlis speech audio, 2–60 seconds long and up to 15 MB;textis what the avatar reads aloud, up to 1,000 characters.
Optional parameters
voice(string): Used withtext. The HeyGen voice that reads the text, from the 102 voices in Avatars and Voices. DefaultWarm Pro Narrator. Names match regardless of letter case and extra spaces.aspect_ratio(string):16:9,9:16,1:1,4:5or5:4. Default16:9.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, in the selected
aspect_ratio. - The video length follows the speech: the duration of
audio_url, or the time the avatar takes to readtext.
Examples
- Text: an avatar reads a short script with a chosen voice,
16:9,1080p. - Audio: an avatar speaks an MP3 in vertical
9:16.
Notes
avataris checked against the avatar list at submission; an unknown name returns 400 with the closest matches. Other HeyGen voice names are passed through as given; if HeyGen rejects the voice, the task is refunded in full.- Send exactly one of
audio_urlandtext, usevoicetogether withtext, and keeptextwithin 1,000 characters; other combinations return 400. - 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. Withaudio_url, the audio duration rounded up to whole seconds is charged at submission. Withtext, the video length is estimated from the text (about 14 Latin characters, 4.5 CJK characters or 3 digits per second, at least 1 second); the estimate is multiplied by 1.5, rounded up and reserved at submission; when the task succeeds you are charged for the actual video length, rounded up to whole seconds, and the rest is refunded. The final charge is at most the reserved amount. A failed task is refunded in full. See the pricing page for current rates.
Body
application/json