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
Processing Response JSON
Completed Response JSON
action is omitted, the task result is returned in a flat format. 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 success field in a task query indicates whether the query succeeded; whether generation is complete is determined by the task state.
Detailed Records and History
When querying 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.
When reading 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 one at a time.
The delete operation uses action=delete and a single ID; before executing it, confirm that you really need to delete the task record. See the Task API Reference for the complete parameters and response fields.
