{
"contentType": "application/json",
"properties": {
"aspect_ratio": {
"description": "比例参数,q2、q3模型支持任意比例或 auto\n默认 16:9,可选值如下:1:1、9:16、16:9、3:4、4:3\nauto:根据输入图或视频自动推荐",
"type": "string"
},
"audio": {
"description": "是否使用音视频直出能力,默认false,可选值 true、false\n- true:使用音视频直出能力。\n- false:不使用音视频直出能力。\n注:viduq3 模型默认值为true",
"type": "string"
},
"auto_subjects": {
"description": "- 是否使用智能主体库能力,默认false,可选值 true、false\n- true:使用智能主体库能力。\n- false:不使用智能主体库能力。",
"type": "string"
},
"callback_url": {
"description": "Callback 协议\n需要您在创建任务时主动设置 callback_url,请求方法为 POST,当视频生成任务有状态变化时,Vidu 将向此地址发送包含任务最新状态的回调请求。回调请求内容结构与查询任务API的返回体一致\n回调返回的\"status\"包括以下状态:\n- processing 任务处理中\n- success 任务完成(如发送失败,回调三次)\n- failed 任务失败(如发送失败,回调三次)\nVidu采用回调签名算法进行认证,详情见:回调签名算法",
"type": "string",
"x-i18n": {
"en-US": {
"description": "Callback protocol: set callback_url when creating the task (POST). On status changes, Vidu sends the latest task status (same shape as the query task API). status: processing, success, failed. See callback signature docs for auth."
}
}
},
"duration": {
"description": "视频时长参数,默认值依据模型而定\nviduq3:默认5秒,可选:3 - 16\nviduq2-pro、viduq2:默认5秒,可选:1 - 10\nviduq1:默认5秒,可选:5\nvidu2.0:默认4秒,可选:4",
"type": "number"
},
"meta_data": {
"description": "元数据标识,json格式字符串,透传字段,您可以 自定义格式 或使用 示例格式 ,示例如下:\n{\n\"Label\": \"your_label\",\"ContentProducer\": \"yourcontentproducer\",\"ContentPropagator\": \"your_content_propagator\",\"ProduceID\": \"yourproductid\", \"PropagateID\": \"your_propagate_id\",\"ReservedCode1\": \"yourreservedcode1\", \"ReservedCode2\": \"your_reserved_code2\"\n}\n该参数为空时,默认使用vidu生成的元数据标识",
"type": "string",
"x-i18n": {
"en-US": {
"description": "Metadata identifier as a JSON string (pass-through). You may use a custom format or the sample shape with Label, ContentProducer, etc. If empty, Vidu-generated metadata is used."
}
}
},
"model": {
"description": "模型名称可选值:viduq3-mix、viduq3、viduq2-pro、viduq2、viduq1、vidu2.0\n- viduq3-mix:画面质感强,支持智能切镜,支持音画同出,动态效果好,均衡性最强\n- viduq3:支持智能切镜,支持音画同出,多机位的一致性更出色\n- viduq2-pro:支持参考视频,支持视频编辑,视频替换\n- viduq2:动态效果好,生成细节丰富\n- viduq1:画面清晰,平滑转场,运镜稳定\n- vidu2.0:生成速度快",
"type": "string"
},
"movement_amplitude": {
"description": "运动幅度默认 auto,可选值:auto、small、medium、large\n注:使用q2、q3系列模型时该参数不生效",
"type": "string"
},
"payload": {
"description": "透传参数\n不做任何处理,仅数据传输\n注:最多 1048576个字符",
"type": "string",
"x-i18n": {
"en-US": {
"description": "Pass-through parameter. Not processed; forwarded as-is. Max 1048576 characters."
}
}
},
"prompt": {
"description": "文本提示词\n生成视频的文本描述。\n注:字符长度不能超过 2000 个字符",
"type": "string",
"x-i18n": {
"en-US": {
"description": "Text prompt describing the video to generate. Max 2000 characters."
}
}
},
"resolution": {
"description": "分辨率参数,默认值依据模型和视频时长而定:\nviduq3(3-16秒):默认 720p, 可选:540p、720p、1080p\nviduq2-pro、viduq2 (1-10秒):默认 720p, 可选:540p、720p、1080p\nviduq1 (5秒):默认 1080p, 可选:1080p\nvidu2.0 (4秒):默认 360p, 可选:360p、720p",
"type": "string"
},
"seed": {
"description": "随机种子\n当默认不传或者传0时,会使用随机数替代\n手动设置则使用设置的种子",
"type": "string",
"x-i18n": {
"en-US": {
"description": "Random seed. If omitted or 0, a random value is used; otherwise the provided seed is used."
}
}
},
"subjects": {
"description": "图片主体信息支持1-7个主体,主体图片共1 ~ 7张",
"items": {
"properties": {
"images": {
"description": "临时主体图片,最多3张图片\n注1:支持传入图片 Base64 编码或图片URL(确保可访问)\n注2:图片支持 png、jpeg、jpg、webp格式\n注3:图片像素不能小于 128*128,且比例需要小于1:4或者4:1\n注4:请注意,http请求的post body不超过20MB,且编码必须包含适当的内容类型字符串,例如:\ndata:image/png;base64,{base64_encode}",
"items": {
"type": "string"
},
"type": "array"
},
"name": {
"description": "用户指定的主体名称(name),生成时可以通过[@name]的方式使用,例如:[@图1]",
"type": "string"
},
"server_id": {
"description": "通过创建主体API获取的 主体id\n注:不传server_id时,为临时主体,系统不保存",
"type": "string"
},
"videos": {
"description": "临时主体视频,最多1个5秒视频\n注1:仅参考生viduq2-pro模型支持使用视频主体\n注2:最多支持上传 1个5秒 的视频\n注3:视频支持 mp4、avi、mov格式\n注4:视频像素不能小于 128*128,且比例需要小于1:4或者4:1\n注5:请注意,base64 decode之后的字节长度需要小于20M,且编码必须包含适当的内容类型字符串,例如:\ndata:video/mp4;base64,{base64_encode}",
"items": {
"type": "string"
},
"type": "array"
},
"voice_id": {
"description": "音色ID用来决定视频中的声音音色,为空时系统会自动推荐,可选枚举值参考列表:新音色列表:https://shengshu.feishu.cn/sheets/EgFvs6DShhiEBStmjzccr5gonOg",
"type": "string"
}
},
"required": [
"name"
],
"type": "object"
},
"type": "array"
},
"watermark": {
"description": "是否添加水印\n- true:添加水印;\n- false:不添加水印;\n注1:目前水印内容为固定,内容由AI生成,默认不加\n注2:您可以通过watermarked_url参数查询获取带水印的视频内容,详情见查询任务接口",
"type": "string",
"x-i18n": {
"en-US": {
"description": "Whether to add a watermark. true: add watermark; false: no watermark. Note: watermark content is fixed (\"AI generated\") and off by default. Use watermarked_url from the query task API for watermarked video."
}
}
},
"wm_position": {
"description": "水印位置,表示水印出现在图片的位置,可选项为:\n1:左上角\n2:右上角\n3:右下角\n4:左下角\n默认为:3",
"type": "string",
"x-i18n": {
"en-US": {
"description": "Watermark position on the image: 1 top-left, 2 top-right, 3 bottom-right, 4 bottom-left. Default: 3."
}
}
},
"wm_url": {
"description": "水印内容,此处为图片URL\n不传时,使用默认水印:内容由AI生成",
"type": "string",
"x-i18n": {
"en-US": {
"description": "Watermark content as an image URL. If omitted, the default watermark \"AI generated\" is used."
}
}
}
},
"required": [
"model",
"prompt",
"subjects"
]
}