| 参数名 | 类型 | 核心说明 & 约束规则 |
|---|---|---|
| input.negative_prompt | string | 可选,排除画面不需要的元素,优化生成质量 ✅ 支持中英文,字符≤500,超量自动截断 📌 建议精准描述画质、构图、角色等负面特征 |
| parameters.shot_type | string | 可选,指定镜头结构,优先级高于input.prompt✅ 仅可选 single(单镜头,默认)/multi(多镜头)📌 设为 single时,无视prompt的多镜头描述 |
| parameters.watermark | boolean | 可选,控制是否添加官方水印 ✅ 仅可选 false(不加,默认)/true(加)📌 水印固定在右下角,文案为“AI生成”,不可自定义 |
{
"model": "wan2.6-r2v",
"input": {
"prompt": "the dog (reference1) is in the room(reference2)",
"negative_prompt": "低分辨率、错误、最差质量、低质量、残缺、多余的手指、比例不良等。",
"reference_video_urls": [
"https://file.302.ai/gpt/resource302db/20251217/8a35dc989353434a897c7e65aa1e9b94.mp4",
"https://file.302.ai/gpt/resource302db/20251217/ea3188010b7e4c779115e5dc80a69532.mp4"
]
},
"parameters": {
"size": "1920*1080",
"duration": 5,
"shot_type": "single",
"watermark": false,
"seed": 12345
}
}curl --location --request POST 'https://api.302.ai/aliyun/api/v1/services/aigc/video-generation/video-synthesis' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "wan2.6-r2v",
"input": {
"prompt": "the dog (reference1) is in the room(reference2)",
"negative_prompt": "低分辨率、错误、最差质量、低质量、残缺、多余的手指、比例不良等。",
"reference_video_urls": [
"https://file.302.ai/gpt/resource302db/20251217/8a35dc989353434a897c7e65aa1e9b94.mp4",
"https://file.302.ai/gpt/resource302db/20251217/ea3188010b7e4c779115e5dc80a69532.mp4"
]
},
"parameters": {
"size": "1920*1080",
"duration": 5,
"shot_type": "single",
"watermark": false,
"seed": 12345
}
}'{
"request_id": "10350f4f-7e3b-4866-93fd-80f82591fb77",
"output": {
"task_id": "7e6aa5a6-6189-46e9-a963-8c144ad38bd8",
"task_status": "PENDING"
}
}