curl --request POST \
--url https://api.acedata.cloud/digital-human/videos \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"video_url": "https://cdn.acedata.cloud/634d760216.mp4",
"image_url": "<string>",
"audio_url": "<string>",
"text": "大家好,这是离线生成的数字人。",
"voice_id": "<string>",
"engine": "latentsync",
"guidance": 2,
"steps": 40,
"seam_fix": true,
"speed": 1,
"resolution": "720p",
"callback_url": "<string>",
"async": false
}
'import requests
url = "https://api.acedata.cloud/digital-human/videos"
payload = {
"video_url": "https://cdn.acedata.cloud/634d760216.mp4",
"image_url": "<string>",
"audio_url": "<string>",
"text": "大家好,这是离线生成的数字人。",
"voice_id": "<string>",
"engine": "latentsync",
"guidance": 2,
"steps": 40,
"seam_fix": True,
"speed": 1,
"resolution": "720p",
"callback_url": "<string>",
"async": False
}
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({
video_url: 'https://cdn.acedata.cloud/634d760216.mp4',
image_url: '<string>',
audio_url: '<string>',
text: '大家好,这是离线生成的数字人。',
voice_id: '<string>',
engine: 'latentsync',
guidance: 2,
steps: 40,
seam_fix: true,
speed: 1,
resolution: '720p',
callback_url: '<string>',
async: false
})
};
fetch('https://api.acedata.cloud/digital-human/videos', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"task_id": "0c0b4d3a-2f1e-4a6b-9c2d-2b3c4d5e6f70",
"trace_id": "a9063166-26ed-4451-85b5-54e896817c69",
"video_url": "https://cdn.acedata.cloud/634d760216.mp4",
"duration": 17.2,
"width": 1280,
"height": 720,
"engine": "latentsync",
"state": "succeed"
}{
"error": {
"code": "bad_request",
"message": "video_url or image_url is required"
},
"trace_id": "..."
}{
"error": {
"code": "invalid_token",
"message": "The specified token is invalid or wrong."
},
"trace_id": "..."
}{
"error": {
"code": "used_up",
"message": "Your balance is not sufficient for current request."
},
"trace_id": "..."
}{
"error": {
"code": "too_many_requests",
"message": "You have exceeded the rate limit."
},
"trace_id": "..."
}{
"error": {
"code": "api_error",
"message": "Internal server error."
},
"trace_id": "..."
}Digital Human Videos
curl --request POST \
--url https://api.acedata.cloud/digital-human/videos \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"video_url": "https://cdn.acedata.cloud/634d760216.mp4",
"image_url": "<string>",
"audio_url": "<string>",
"text": "大家好,这是离线生成的数字人。",
"voice_id": "<string>",
"engine": "latentsync",
"guidance": 2,
"steps": 40,
"seam_fix": true,
"speed": 1,
"resolution": "720p",
"callback_url": "<string>",
"async": false
}
'import requests
url = "https://api.acedata.cloud/digital-human/videos"
payload = {
"video_url": "https://cdn.acedata.cloud/634d760216.mp4",
"image_url": "<string>",
"audio_url": "<string>",
"text": "大家好,这是离线生成的数字人。",
"voice_id": "<string>",
"engine": "latentsync",
"guidance": 2,
"steps": 40,
"seam_fix": True,
"speed": 1,
"resolution": "720p",
"callback_url": "<string>",
"async": False
}
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({
video_url: 'https://cdn.acedata.cloud/634d760216.mp4',
image_url: '<string>',
audio_url: '<string>',
text: '大家好,这是离线生成的数字人。',
voice_id: '<string>',
engine: 'latentsync',
guidance: 2,
steps: 40,
seam_fix: true,
speed: 1,
resolution: '720p',
callback_url: '<string>',
async: false
})
};
fetch('https://api.acedata.cloud/digital-human/videos', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"task_id": "0c0b4d3a-2f1e-4a6b-9c2d-2b3c4d5e6f70",
"trace_id": "a9063166-26ed-4451-85b5-54e896817c69",
"video_url": "https://cdn.acedata.cloud/634d760216.mp4",
"duration": 17.2,
"width": 1280,
"height": 720,
"engine": "latentsync",
"state": "succeed"
}{
"error": {
"code": "bad_request",
"message": "video_url or image_url is required"
},
"trace_id": "..."
}{
"error": {
"code": "invalid_token",
"message": "The specified token is invalid or wrong."
},
"trace_id": "..."
}{
"error": {
"code": "used_up",
"message": "Your balance is not sufficient for current request."
},
"trace_id": "..."
}{
"error": {
"code": "too_many_requests",
"message": "You have exceeded the rate limit."
},
"trace_id": "..."
}{
"error": {
"code": "api_error",
"message": "Internal server error."
},
"trace_id": "..."
}التفويضات
API token from https://platform.acedata.cloud
الجسم
Public URL of the source face video (preferred). Supply either video_url or image_url.
"https://cdn.acedata.cloud/634d760216.mp4"
Public URL of a source face photo (photo-driven path). Supply either video_url or image_url.
Public URL of the driving audio (.wav/.mp3/.m4a). OR supply text(+voice_id).
Spoken text -> TTS (requires voice_id).
"大家好,这是离线生成的数字人。"
A cloned voice from POST /digital-human/voices.
[Deprecated] Accepted for backward compatibility but no longer changes the output or the price — every request is billed at the unified rate.
latentsync, heygem Lip-sync strength (LatentSync). Lower loosens sync.
Diffusion steps (LatentSync).
Apply the mouth-seam reduction blend.
Audio tempo multiplier.
[Deprecated] Output is always rendered at 720p.
720p, 540p Webhook; if set (or async=true) returns task_id immediately.
هل كانت هذه الصفحة مفيدة؟

