{
"code": 200,
"msg": "Task completed successfully.",
"data": {
"taskId": "7d3f0a9c41e85b2f6a1c9e04b8d27f53",
"model": "pixverse-v6/reference-to-video",
"state": "success",
"param": "{\"input\":\"{\\\"prompt\\\":\\\"@dog rolls over on the sofa in @room, then jumps down and runs toward the camera\\\",\\\"image_references\\\":[{\\\"image_url\\\":\\\"https://your-cdn.example.com/dog.png\\\",\\\"type\\\":\\\"subject\\\",\\\"ref_name\\\":\\\"dog\\\"},{\\\"image_url\\\":\\\"https://your-cdn.example.com/room.png\\\",\\\"type\\\":\\\"background\\\",\\\"ref_name\\\":\\\"room\\\"}],\\\"aspect_ratio\\\":\\\"16:9\\\",\\\"quality\\\":\\\"720p\\\",\\\"duration\\\":5}\",\"model\":\"pixverse-v6/reference-to-video\"}",
"resultJson": "{\"resultUrls\":[\"https://api.dreamto.ai/v1/tasks/7d3f0a9c41e85b2f6a1c9e04b8d27f53/artifacts/8d2c41f0b7e94a6fa1c3d/content?access=Xq3vR8sK1mN6pT2wY9bC4dF7gH0jL5zA8eU1iO3rS6t\"]}",
"failCode": null,
"failMsg": null,
"costTime": 41,
"completeTime": 1794911412000,
"createTime": 1794911371000,
"updateTime": 1794911412000,
"response": {
"resultUrls": [
"https://api.dreamto.ai/v1/tasks/7d3f0a9c41e85b2f6a1c9e04b8d27f53/artifacts/8d2c41f0b7e94a6fa1c3d/content?access=Xq3vR8sK1mN6pT2wY9bC4dF7gH0jL5zA8eU1iO3rS6t"
]
}
}
}PixVerse V6 参考生视频
任务完成回调
创建任务时传了 callBackUrl,任务成功或失败后 DreamTo 向该地址发送此 POST 请求。请求体外层 code 为 200(成功)或 501(失败),data 与查询任务返回的 data 相同。用 X-DreamTo-Signature 校验来源,返回任意 2xx 表示已收到。
WEBHOOK
pixverseTaskCompleted
{
"code": 200,
"msg": "Task completed successfully.",
"data": {
"taskId": "7d3f0a9c41e85b2f6a1c9e04b8d27f53",
"model": "pixverse-v6/reference-to-video",
"state": "success",
"param": "{\"input\":\"{\\\"prompt\\\":\\\"@dog rolls over on the sofa in @room, then jumps down and runs toward the camera\\\",\\\"image_references\\\":[{\\\"image_url\\\":\\\"https://your-cdn.example.com/dog.png\\\",\\\"type\\\":\\\"subject\\\",\\\"ref_name\\\":\\\"dog\\\"},{\\\"image_url\\\":\\\"https://your-cdn.example.com/room.png\\\",\\\"type\\\":\\\"background\\\",\\\"ref_name\\\":\\\"room\\\"}],\\\"aspect_ratio\\\":\\\"16:9\\\",\\\"quality\\\":\\\"720p\\\",\\\"duration\\\":5}\",\"model\":\"pixverse-v6/reference-to-video\"}",
"resultJson": "{\"resultUrls\":[\"https://api.dreamto.ai/v1/tasks/7d3f0a9c41e85b2f6a1c9e04b8d27f53/artifacts/8d2c41f0b7e94a6fa1c3d/content?access=Xq3vR8sK1mN6pT2wY9bC4dF7gH0jL5zA8eU1iO3rS6t\"]}",
"failCode": null,
"failMsg": null,
"costTime": 41,
"completeTime": 1794911412000,
"createTime": 1794911371000,
"updateTime": 1794911412000,
"response": {
"resultUrls": [
"https://api.dreamto.ai/v1/tasks/7d3f0a9c41e85b2f6a1c9e04b8d27f53/artifacts/8d2c41f0b7e94a6fa1c3d/content?access=Xq3vR8sK1mN6pT2wY9bC4dF7gH0jL5zA8eU1iO3rS6t"
]
}
}
}请求头
请求体
application/json
响应
200
返回任意 2xx 状态码表示已收到;超时(10 秒)或非 2xx 时在 1、5、30 分钟后重试,最多投递 4 次。

