curl --request POST \
--url https://api.dreamto.ai/api/v1/jobs/createTask \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "pixverse-v6/reference-to-video",
"input": {
"prompt": "@dog 在 @room 的沙发上打了个滚,然后跳下来跑向镜头",
"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
}
}
'{
"code": 200,
"msg": "success",
"data": {
"taskId": "7d3f0a9c41e85b2f6a1c9e04b8d27f53"
}
}PixVerse V6 参考生视频
创建任务
创建 PixVerse 视频生成任务:model 选择模型,生成参数放在 input 中,可选 callBackUrl 接收完成回调。成功后返回 data.taskId,任务在后台异步执行,用查询任务接口轮询结果。所有响应的 HTTP 状态码都是 200,以 code 判断结果。
POST
/
api
/
v1
/
jobs
/
createTask
curl --request POST \
--url https://api.dreamto.ai/api/v1/jobs/createTask \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "pixverse-v6/reference-to-video",
"input": {
"prompt": "@dog 在 @room 的沙发上打了个滚,然后跳下来跑向镜头",
"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
}
}
'{
"code": 200,
"msg": "success",
"data": {
"taskId": "7d3f0a9c41e85b2f6a1c9e04b8d27f53"
}
}请求体
application/json
创建任务的请求体。
响应
200 - application/json
HTTP 状态码始终为 200。code 为 200 时创建成功,data.taskId 为任务 ID;其他 code 为错误,msg 为原因,data 为 null。

