97 lines
2.8 KiB
JSON
97 lines
2.8 KiB
JSON
{
|
|
"input": {
|
|
"negative_prompt": {
|
|
"description": "反向提示词,用来描述不希望在视频画面中出现的内容,可以对视频画面进行限制",
|
|
"max_chars": 500,
|
|
"required": false,
|
|
"type": "string"
|
|
},
|
|
"prompt": {
|
|
"description": "文本提示词。支持中英文,每个汉字/字母/标点占一个字符,超过部分自动截断。通过 character1、character2 引用参考角色,每个参考仅包含单一角色。模型仅通过此方式识别参考中的角色",
|
|
"max_chars": 1500,
|
|
"required": true,
|
|
"type": "string"
|
|
},
|
|
"reference_urls": {
|
|
"image_formats": ["JPEG", "JPG", "PNG", "BMP", "WEBP"],
|
|
"image_max": 5,
|
|
"image_max_size_mb": 20,
|
|
"image_note": "PNG不支持透明通道",
|
|
"image_resolution_px": {
|
|
"max": 8000,
|
|
"min": 240
|
|
},
|
|
"items": "string",
|
|
"ref_ordering": "按数组顺序定义角色顺序,第1个URL对应character1,第2个对应character2,依此类推。每个参考文件仅包含一个主体角色",
|
|
"required": true,
|
|
"total_max": 5,
|
|
"type": "array",
|
|
"video_duration_sec": {
|
|
"max": 30,
|
|
"min": 1
|
|
},
|
|
"video_formats": ["MP4", "MOV"],
|
|
"video_max": 3,
|
|
"video_max_size_mb": 100
|
|
}
|
|
},
|
|
"model": "wan2.6-r2v-flash",
|
|
"parameters": {
|
|
"audio": {
|
|
"default": true,
|
|
"description": "是否生成有声视频",
|
|
"required": false,
|
|
"supported_models": ["wan2.6-r2v-flash"],
|
|
"type": "boolean"
|
|
},
|
|
"duration": {
|
|
"default": 5,
|
|
"description": "生成视频的时长,单位为秒",
|
|
"max": 10,
|
|
"min": 2,
|
|
"required": false,
|
|
"type": "integer"
|
|
},
|
|
"seed": {
|
|
"max": 2147483647,
|
|
"min": 0,
|
|
"required": false,
|
|
"type": "integer"
|
|
},
|
|
"shot_type": {
|
|
"default": "single",
|
|
"description": "镜头类型。参数优先级:shot_type \u003e prompt。single=单镜头视频,multi=多镜头视频",
|
|
"enum": ["single", "multi"],
|
|
"required": false,
|
|
"type": "string"
|
|
},
|
|
"size": {
|
|
"default": "1920*1080",
|
|
"description": "视频分辨率,格式为宽*高。必须设置为具体数值(如1280*720),而不是1:1或720P",
|
|
"format": "{width}*{height}",
|
|
"required": false,
|
|
"sizes": {
|
|
"1080P": {
|
|
"16:9": "1920*1080",
|
|
"1:1": "1440*1440",
|
|
"3:4": "1248*1632",
|
|
"4:3": "1632*1248",
|
|
"9:16": "1080*1920"
|
|
},
|
|
"720P": {
|
|
"16:9": "1280*720",
|
|
"1:1": "960*960",
|
|
"3:4": "832*1088",
|
|
"4:3": "1088*832",
|
|
"9:16": "720*1280"
|
|
}
|
|
},
|
|
"type": "string"
|
|
},
|
|
"watermark": {
|
|
"default": false,
|
|
"required": false,
|
|
"type": "boolean"
|
|
}
|
|
}
|
|
} |