curl --request POST \
--url https://api.acedata.cloud/digital-human/tasks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"task_id": "task_49af42c410c24f04ad416b28af55d237"
}
'import requests
url = "https://api.acedata.cloud/digital-human/tasks"
payload = { "task_id": "task_49af42c410c24f04ad416b28af55d237" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({task_id: 'task_49af42c410c24f04ad416b28af55d237'})
};
fetch('https://api.acedata.cloud/digital-human/tasks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"task_id": "task_...",
"trace_id": "...",
"state": "succeed",
"progress": 100,
"video_url": "https://cdn.acedata.cloud/634d760216.mp4",
"duration": 17.2,
"width": 1280,
"height": 720,
"engine": "latentsync"
}{
"error": {
"code": "no_task",
"message": "task not found"
},
"trace_id": "..."
}Digital Human Tasks
curl --request POST \
--url https://api.acedata.cloud/digital-human/tasks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"task_id": "task_49af42c410c24f04ad416b28af55d237"
}
'import requests
url = "https://api.acedata.cloud/digital-human/tasks"
payload = { "task_id": "task_49af42c410c24f04ad416b28af55d237" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({task_id: 'task_49af42c410c24f04ad416b28af55d237'})
};
fetch('https://api.acedata.cloud/digital-human/tasks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"task_id": "task_...",
"trace_id": "...",
"state": "succeed",
"progress": 100,
"video_url": "https://cdn.acedata.cloud/634d760216.mp4",
"duration": 17.2,
"width": 1280,
"height": 720,
"engine": "latentsync"
}{
"error": {
"code": "no_task",
"message": "task not found"
},
"trace_id": "..."
}授權
API token from https://platform.acedata.cloud
主體
Asynchronous digital-human task identifier.
"task_49af42c410c24f04ad416b28af55d237"
Omit for the flat poll shape. Use retrieve for the detailed shape, which additionally carries created_at / started_at / finished_at / elapsed.
retrieve, retrieve_batch, delete 回應
OK
The flat poll shape returned when action is omitted. Send action: retrieve to additionally receive created_at / started_at / finished_at / elapsed — all Unix timestamps in seconds (float); started_at / finished_at / elapsed are null until the task is claimed / finished.
Whether the task query succeeded.
Asynchronous task identifier.
Request trace identifier.
Current task state.
Completion percentage from 0 to 100.
Generated video URL when available.
Length of the generated video in seconds — not the task's processing time.
Generated video width in pixels.
Generated video height in pixels.
Rendering engine selected for the task.

