Digital Human
Turn a face + voice + text into an offline talking-head video
This is only a basic call example. See the full docs for more parameters and advanced usage.
View DocsDigital 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.
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
}'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.
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"}'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
}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.
Integrate the Digital Human API into your application
Continue to the complete guide for parameters, result fields, and error handling.
Digital Human video generation API — turn a portrait plus audio or text into a talking-head video.
Digital Human voice-clone API — upload an audio sample to clone a custom voice for speech synthesis.
Digital Human task query API — check the status and result of a talking-head video or voice-clone task.
Packages
We offer various credit packages. The more you purchase, the higher the discount you receive.
up to46% OFF
