{
"code": 200,
"msg": "Task completed successfully.",
"data": {
"taskId": "7d3f0a9c41e85b2f6a1c9e04b8d27f53",
"model": "elevenlabs/text-to-dialogue-v3",
"state": "success",
"param": "{\"input\":\"{\\\"dialogue\\\":[{\\\"text\\\":\\\"Did you hear the news? They finally opened the new bakery downtown.\\\",\\\"voice\\\":\\\"pNInz6obpgDQGcFmaJgB\\\"},{\\\"text\\\":\\\"[excited] Really? I've been waiting for months! Let's go this weekend.\\\",\\\"voice\\\":\\\"EXAVITQu4vr4xnSDxMaL\\\"},{\\\"text\\\":\\\"Deal. [laughs] I'll bring the coffee.\\\",\\\"voice\\\":\\\"pNInz6obpgDQGcFmaJgB\\\"}],\\\"stability\\\":0.5}\",\"model\":\"elevenlabs/text-to-dialogue-v3\"}",
"resultJson": "{\"resultUrls\":[\"https://api.dreamto.ai/v1/tasks/7d3f0a9c41e85b2f6a1c9e04b8d27f53/artifacts/8d2c41f0b7e94a6fa1c3d/content?access=Xq3vR8sK1mN6pT2wY9bC4dF7gH0jL5zA8eU1iO3rS6t\"],\"resultObject\":null}",
"failCode": null,
"failMsg": null,
"costTime": 14,
"completeTime": 1795014911000,
"createTime": 1795014897000,
"updateTime": 1795014911000,
"response": {
"resultUrls": [
"https://api.dreamto.ai/v1/tasks/7d3f0a9c41e85b2f6a1c9e04b8d27f53/artifacts/8d2c41f0b7e94a6fa1c3d/content?access=Xq3vR8sK1mN6pT2wY9bC4dF7gH0jL5zA8eU1iO3rS6t"
],
"resultObject": null
}
}
}ElevenLabs V3 多人对话
任务完成回调
创建任务时传了 callBackUrl,任务成功或失败后 DreamTo 向该地址发送此 POST 请求。请求体外层 code 为 200(成功)或 501(失败),data 与查询任务返回的 data 相同。用 X-DreamTo-Signature 校验来源,返回任意 2xx 表示已收到。
WEBHOOK
elevenlabsTaskCompleted
{
"code": 200,
"msg": "Task completed successfully.",
"data": {
"taskId": "7d3f0a9c41e85b2f6a1c9e04b8d27f53",
"model": "elevenlabs/text-to-dialogue-v3",
"state": "success",
"param": "{\"input\":\"{\\\"dialogue\\\":[{\\\"text\\\":\\\"Did you hear the news? They finally opened the new bakery downtown.\\\",\\\"voice\\\":\\\"pNInz6obpgDQGcFmaJgB\\\"},{\\\"text\\\":\\\"[excited] Really? I've been waiting for months! Let's go this weekend.\\\",\\\"voice\\\":\\\"EXAVITQu4vr4xnSDxMaL\\\"},{\\\"text\\\":\\\"Deal. [laughs] I'll bring the coffee.\\\",\\\"voice\\\":\\\"pNInz6obpgDQGcFmaJgB\\\"}],\\\"stability\\\":0.5}\",\"model\":\"elevenlabs/text-to-dialogue-v3\"}",
"resultJson": "{\"resultUrls\":[\"https://api.dreamto.ai/v1/tasks/7d3f0a9c41e85b2f6a1c9e04b8d27f53/artifacts/8d2c41f0b7e94a6fa1c3d/content?access=Xq3vR8sK1mN6pT2wY9bC4dF7gH0jL5zA8eU1iO3rS6t\"],\"resultObject\":null}",
"failCode": null,
"failMsg": null,
"costTime": 14,
"completeTime": 1795014911000,
"createTime": 1795014897000,
"updateTime": 1795014911000,
"response": {
"resultUrls": [
"https://api.dreamto.ai/v1/tasks/7d3f0a9c41e85b2f6a1c9e04b8d27f53/artifacts/8d2c41f0b7e94a6fa1c3d/content?access=Xq3vR8sK1mN6pT2wY9bC4dF7gH0jL5zA8eU1iO3rS6t"
],
"resultObject": null
}
}
}请求头
请求体
application/json
响应
200
返回任意 2xx 状态码表示已收到;超时(10 秒)或非 2xx 时在 1、5、30 分钟后重试,最多投递 4 次。

