curl --request POST \
--url https://api.acedata.cloud/digital-human/tasks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"action": "retrieve_batch",
"task_id": "task_49af42c410c24f04ad416b28af55d237",
"id": "<string>"
}
'import requests
url = "https://api.acedata.cloud/digital-human/tasks"
payload = {
"action": "retrieve_batch",
"task_id": "task_49af42c410c24f04ad416b28af55d237",
"id": "<string>"
}
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({
action: 'retrieve_batch',
task_id: 'task_49af42c410c24f04ad416b28af55d237',
id: '<string>'
})
};
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 '
{
"action": "retrieve_batch",
"task_id": "task_49af42c410c24f04ad416b28af55d237",
"id": "<string>"
}
'import requests
url = "https://api.acedata.cloud/digital-human/tasks"
payload = {
"action": "retrieve_batch",
"task_id": "task_49af42c410c24f04ad416b28af55d237",
"id": "<string>"
}
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({
action: 'retrieve_batch',
task_id: 'task_49af42c410c24f04ad416b28af55d237',
id: '<string>'
})
};
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": "..."
}Autorizaciones
API token from https://platform.acedata.cloud
Cuerpo
- Option 1
- Option 2
- Option 3
Use one ID for polling, retrieve, or delete. Use action=retrieve_batch without an ID to list recent history. To retrieve a chosen set of IDs, send individual retrieve requests.
Omit for a flat result, use retrieve for one detailed task, delete for one task, or retrieve_batch to list the authenticated caller's recent tasks. retrieve_batch does not query an array of IDs.
retrieve_batch One task identifier for flat polling, retrieve, or delete. Not an ID array. retrieve_batch ignores this field and lists recent history.
"task_49af42c410c24f04ad416b28af55d237"
Alternative to task_id for a single retrieve or delete request.
Maximum number of recent tasks for retrieve_batch.
1 <= x <= 100For retrieve_batch: only tasks created strictly after this Unix timestamp in seconds.
For retrieve_batch: only tasks created strictly before this Unix timestamp in seconds.
Optional retrieve_batch history kind filter.
videos, voices Respuesta
OK
- Option 1
- Option 2
- Option 3
- Option 4
Flat task result when action is omitted. Video or voice output fields appear when available.
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.
Cloned voice ID when the voice task has completed.
Task failure detail when present.
¿Esta página le ayudó?

