Digital Human Task Query API

Use POST /digital-human/tasks to query your own video or voice tasks. First, create a task using the Video Generation Guide, then save the returned task_id.

Query the Final Result

curl --request POST 'https://api.yxai-tech.top/digital-human/tasks' \
  --header "Authorization: Bearer $ACEDATACLOUD_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{"task_id":"YOUR_TASK_ID"}'

When action is omitted, the flattened task result is returned. Read state and progress, and after state=succeed, read the video's video_url or the voice's voice_id. state=failed indicates that execution failed; read error and stop polling. The task query's success indicates whether the query succeeded; whether generation is complete is determined by the task status.

Detailed Records and History

To query a detailed record, submit {"action":"retrieve","id":"YOUR_TASK_ID"}; the original request is in request, and the output is in response. You can also use the task_id field instead of id.

To read recent history, submit {"action":"retrieve_batch","limit":20}; you can filter by type, created_at_min, and created_at_max. The result includes count and items. Here, retrieve_batch returns recent task history; when specifying multiple task IDs, query them individually.

For deletion, use action=delete and a single ID; before proceeding, confirm that you really need to delete this task record. For complete parameters and response fields, see the Tasks API Reference.