| パラメータ名 | タイプ | コア説明 & 制約ルール |
|---|---|---|
| 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": "Low resolution, errors, worst quality, low quality, incompleteness, extra fingers, poor proportions, etc.",
"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": "Low resolution, errors, worst quality, low quality, incompleteness, extra fingers, poor proportions, etc.",
"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"
}
}