The Dreamact API enables video-driven talking head generation, animating multiple facial images to mirror the expressions, mouth movements, and head poses of a driving video. The service reconstructs a drivable face model from input images and applies motion sequences extracted from the source video to create a realistic animated result.
taskId.Enum: application/json
Bearer authentication token. Example: Bearer {{APIKey}}.
The URL of the driving video file. It must be publicly accessible in MP4 format, and the duration must not exceed 1 minute.
A list of publicly accessible image URLs. Supported formats include JPG, JPEG, PNG, WEBP, and GIF.
The processing resolution for the generated video. Supported values: 480P, 720P. Default is 480P. Higher resolution produces better quality but consumes more credits (see Pricing tab).
The quality mode for the generated video. Supported values: high, base. Default is base.
The generation mode. Supported values: replace_body (Swap the character in source video while keeping original movements and background), pose2v (Generate video of the reference character following given pose sequences). Default value: replace_body.
The seed value used for generation to ensure reproducibility. Default value: 42.
Returns 0 for success, or a specific error code.
Returns "success" or a descriptive error message.
The unique identifier for the task. Use this ID with the Polling API to retrieve the generated output.
Use the Polling API to retrieve the processing results.
Alternatively, you can enable Callback to receive task results automatically upon completion.
{
"code": 0,
"message": "success",
"data": {
"task": {
"taskId": "b3e8416cdbe14a229b3c47f4d91bfebb",
"status": 3,
"executionTime": 221829,
"expire": 1769052600483,
"taskType": "wan/dreamact/2.1"
},
"videos": [
{
"videoType": "mp4",
"videoUrl": "https://dreamface-resource-aigc.oss-us-east-1.aliyuncs.com/dreamapi/o/2026-01-20/a96a1b03307a4a28b7bbf5f771c6322d.mp4"
}
]
}
}curl -X POST 'https://api.newportai.com/api/async/wan/dreamact/2.1' \
-H "Authorization: Bearer {{key}}" \
-H 'Content-Type: application/json' \
-d '{
"images":["https://d2t5pyzt5qvy2d.cloudfront.net/api/static_resource/prod/default/INj5UrnnrKIzCR1uYBWv0.png"],
"video":"https://d2t5pyzt5qvy2d.cloudfront.net/api/static_resource/prod/default/mq0MSmKgPGQQsxS9UovqH.mp4",
"seed":-1,
"resolution":"720P",
"qualityMode":"base",
"taskMode":"pose2v"
}'{
"code": 0,
"message": "success",
"data": {
"taskId": "b3e8416cdbe14a229b3c47f4d91bfebb"
}
}