Digital Human API

Create lip-synced videos using footage of a person and audio.

Visual Input

Use an accessible video or photo of a person as input.

Audio-Driven

Provide audio, or use text and an existing voice_id.

Video Delivery

Get a playable, downloadable video_url when the task is complete.

Start with Your First Request

Get a Key, copy the request, and view the corresponding JSON response below.

Request
export ACEDATACLOUD_API_KEY="YOUR_API_KEY"
curl --request POST "https://api.acedata.cloud/digital-human/videos" \
  --header "Authorization: Bearer $ACEDATACLOUD_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{
  "video_url": "YOUR_FACE_VIDEO_URL",
  "audio_url": "YOUR_AUDIO_URL",
  "async": true
}'
Submission Response JSON

The following is an excerpt of key fields from the current API response. The task identifier, usage, and generated content depend on the values returned by your request.

{
  "success": true,
  "task_id": "YOUR_TASK_ID",
  "trace_id": "YOUR_TRACE_ID",
  "state": "pending"
}

Query the original task and retrieve the result

Use the task ID returned upon submission to check progress and retrieve the final result.

Request
curl --request POST "https://api.acedata.cloud/digital-human/tasks" \
  --header "Authorization: Bearer $ACEDATACLOUD_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{"task_id":"YOUR_TASK_ID"}'
Processing response JSON

The following is an excerpt of key fields from the current API response. The task ID, usage, and generated content depend on the values returned by this request.

{
  "success": true,
  "task_id": "YOUR_TASK_ID",
  "trace_id": "YOUR_TRACE_ID",
  "state": "pending",
  "progress": 0
}
Completed response JSON

The following is an excerpt of key fields from the current API response. The task ID, usage, and generated content depend on the values returned by this request.

{
  "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
}

Replace the example placeholders with accessible URLs for the person's video and audio. You can also use image_url as the person's source material.

Read video_url when state=succeed, and check error when state=failed. success describes the query request itself; use state to determine whether the task has completed.

API calls and costs

Refer to the current API and pricing page for request parameters, available models, and costs. If you encounter authentication, balance, or quota errors, check the Key's application, validity period, and usage restrictions. Keep the trace_id when troubleshooting requests.

View parameters, response fields, and error handling

Integrate the Digital Human API into your application

Continue to the complete guide for parameters, result fields, and error handling.