The Polling API is a centralized endpoint used to retrieve the results of all asynchronous tasks (Image Generation, Video Processing, Voice Cloning, etc.). Since most processing tasks take time to complete, the server returns a taskId which you must then use here to check the status and download the final output.
Data Retention Policy: AI-generated results are retained on our servers for 24 hours. After this window, the task data and associated files are automatically deleted and will no longer be accessible.
Enum: application/json
Bearer authentication token. Example: Bearer {{APIKey}}.
The unique task identifier returned by the initial asynchronous API request.
int Operation code, 0 indicates success, non-0 indicates failure
Operation prompt message
Request content
Task-related information
task id
Task status code, integer value, enumeration. 1 task submission; 2 The task is in progress; 3 The task is successful. 4 Task Failure
Provides the reason for a task's failure.
task type
completion execution time
taskid expiration time
images result
image url
image type (jpg,png..)
videos result
video url
video type (mp4..)
audios result
audio url
audio type(wav..)
Speech-to-text pro result
Transcribed text content.
Detailed speech-to-text result with timestamps and additional metadata.
List of word-level transcription data.
Gender of the speaker (if identified).
Start timestamp of the speech segment (in milliseconds).
Transcribed text for this segment.
End timestamp of the speech segment (in milliseconds).
Total length of the speech (in milliseconds).
The type of speech transcription.
clone id, only from voice_clone. Once generated, you can always use it in Do TTS Clone.
scene id, only from scene training. Once generated, you can always use it in AI Model and AI Try On
Matting result, only from matting-related tasks.
URL of the matting result video with the background removed.
URL of the alpha matte video.
URL of the composite result video. Null when no composite output is produced.
curl -X POST 'https://api.newportai.com/api/getAsyncResult' \
-H "Authorization: Bearer {{key}}" \
-H 'Content-Type: application/json' \
-d '{"taskId":"b08337dc08d7428daa64b3d5e61b8350"}'{
"code": 0,
"message": "success",
"data": {
"task": {
"taskId": "b08337dc08d7428daa64b3d5e61b8350",
"status": 3,
"reason": "",
"taskType": "inpainting"
},
"images": [{
"imageUrl": "https://dreamface-resource-aigc.oss-us-east-1.aliyuncs.com/apiDocsAdmin/2025-4-1744786522306-demo_image.jpg",
"imageType": "jpg"
}],
"videos": [{
"videoUrl": "https://dreamface-resource-aigc.oss-us-east-1.aliyuncs.com/apiDocsAdmin/2025-4-1744791726169-videoUrl.mp4",
"videoType": "mp4"
}],
"audios": [{
"audioUrl": "https://dreamface-resource-aigc.oss-us-east-1.aliyuncs.com/apiDocsAdmin/2025-4-1744804212969-dottsClone_result.wav",
"audioType": ".wav"
}],
"sttProResult": {
"text": "Today is a beautiful day. The sun is shining, the birds are singing, and there is a gentle breeze in the air. "
},
"sttResult":{
"data":[
{
"beginTimestampMilliseconds":260,
"sex":"",
"text":"Today is a beautiful day. ",
"endTimestampMilliseconds":1520
},
{
"beginTimestampMilliseconds":1860,
"sex":"",
"text":"The sun is shining, the birds are singing and there is a gentle breeze in the air. ",
"endTimestampMilliseconds":6520
}
],
"tl":22575,
"type":"0"
},
"cloneId": "40dc8e22ab179680ec5480f9fb32d1ec",
"sceneId": "69672179",
"mattingResult": {
"mattingFileUrl": "https://dreamapi-rs-aigc.newportai.com/dreamapi/o/2026-08-07/fc0e79e3feb64f438798a58240bb0c8f.mp4",
"mattingAlphaFileUrl": "https://dreamapi-rs-aigc.newportai.com/dreamapi/o/2026-08-07/2c620b0134c54d5da3631bdeba82e53d.mp4",
"compositeFileUrl": "https://dreamapi-rs-aigc.newportai.com/dreamapi/o/2026-08-07/95174a18a2034e5ab51e45a9d93ed9fb.mp4"
}
}
}