Vidu 参考生视频 viduq4-preview
使用 Vidu 最新旗舰模型(预览版)viduq4-preview 基于参考图片和参考音频生成视频。该模型支持参考 1-15 张图片,支持参考 0-3 个音频。提交任务后,请通过 GET /vidu/ent/v2/tasks/{task_id}/creations 查询状态。 使用模型 viduq4-preview。
请求体
元数据标识,json格式字符串,透传字段,您可以 自定义格式 或使用 示例格式 ,示例如下: { "Label": "your_label","ContentProducer": "yourcontentproducer","ContentPropagator": "your_content_propagator","ProduceID": "yourproductid", "PropagateID": "your_propagate_id","ReservedCode1": "yourreservedcode1", "ReservedCode2": "your_reserved_code2" } 该参数为空时,默认使用vidu生成的元数据标识
Callback 协议 需要您在创建任务时主动设置 callback_url,请求方法为 POST,当视频生成任务有状态变化时,Vidu 将向此地址发送包含任务最新状态的回调请求。回调请求内容结构与查询任务API的返回体一致 回调返回的"status"包括以下状态:
- processing 任务处理中
- success 任务完成(如发送失败,回调三次)
- failed 任务失败(如发送失败,回调三次) Vidu采用回调签名算法进行认证,详情见:https://platform.vidu.cn/docs/callback-signature
响应
提交成功,返回视频任务对象。