HeyGen Avatar V
Model id: heygen/avatar-v. HeyGen Avatar V is the highest-fidelity HeyGen engine: a talking-avatar video from a script or an audio track, using a HeyGen photo avatar or digital twin. Does not support
Model Overview
HeyGen Avatar V is the highest-fidelity HeyGen engine: a talking-avatar video from a script or an audio track, using a HeyGen photo avatar or digital twin. Does not support tools/function calling.
Setup your API Key
If you don't have an API key yet, use our Quickstart guide.
How to Make a Call
API Schemas
Create a video generation task and send it to the server
ID of a HeyGen avatar look. This model accepts photo avatar and digital twin looks.
Text the avatar speaks (max 5000 characters). Provide either script or audio_url.
HeyGen voice ID used with script. Defaults to the avatar’s own voice.
URL of the audio the avatar lip-syncs to. Allowed formats: MP3, WAV; up to 30 minutes. The video lasts as long as the audio. Provide either script or audio_url.
"auto" keeps the aspect ratio of the source (16:9 when it cannot be read).
16:9Possible values: Output resolution. Does not change the price.
720pPossible values: Natural-language direction for body motion and hand gestures (max 1000 characters).
Successful response.
The ID of the generated video.
60ac7c34-3224-4b14-8e7d-0aa0db708325The current status of the generation task.
completedPossible values: curl --request POST \
--url 'https://api.aimlapi.com/v2/video/generations' \
--header 'Authorization: Bearer <YOUR_AIMLAPI_KEY>' \
--header 'Content-Type: application/json' \
--data '{"model": "heygen/avatar-v", "avatar_id": "<avatar_id>"}'Successful response.
{
"id": "60ac7c34-3224-4b14-8e7d-0aa0db708325",
"status": "completed",
"video": {
"url": "https://cdn.aimlapi.com/generations/hedgehog/1759866285599-0cdfb138-c03a-49d4-a601-4f6413e27b15.mp4"
},
"error": {
"name": "text",
"message": "text"
},
"meta": {
"usage": {
"credits_used": 120000,
"usd_spent": 0.06
}
}
}Retrieve the generated video from the server
Poll this endpoint with the generation_id returned by the submit request. When the status is completed, the response includes the generated video URL.
Bearer key
<REPLACE_WITH_YOUR_GENERATION_ID>The ID of the generated video.
60ac7c34-3224-4b14-8e7d-0aa0db708325The current status of the generation task.
completedPossible values: curl -L \
--request GET \
--url 'https://api.aimlapi.com/v2/video/generations?generation_id=<REPLACE_WITH_YOUR_GENERATION_ID>' \
--header 'Authorization: Bearer <YOUR_AIMLAPI_KEY>'{
"id": "60ac7c34-3224-4b14-8e7d-0aa0db708325",
"status": "completed",
"video": {
"url": "https://cdn.aimlapi.com/generations/hedgehog/1759866285599-0cdfb138-c03a-49d4-a601-4f6413e27b15.mp4"
},
"error": {
"name": "text",
"message": "text"
},
"meta": {
"usage": {
"credits_used": 120000
}
}
}Code Example
The examples submit a generation task and poll every 15 seconds until the final result is available.
Last updated
Was this helpful?