万相2.7-图生视频API 请求/响应示例 首帧生视频创建任务 请求 plaintext curl location ' H 'XDashScopeAsync: enable' H "Authorization: Bearer ${YOURAPPKEY}" H 'ContentType: application/json' d '{ "model": "wan2.7i2v", "input": { "prompt": "小猫在草地上奔跑,风吹动毛发", "media": [ { "type": "firstframe", "url": " }, { "type": "drivingaudio", "url": " } ] }, "parameters": { "resolution": "720P", "duration": 10, "promptextend": true, "watermark": true } }' 正常响应 plaintext { "output": { "taskstatus": "PENDING", "taskid": "xxxx‑xxxx‑xxxx‑xxxx" }, "requestid": "00d06a841873c0a83bfaf1fae0184625" } 异常响应示例 plaintext { "error": { "type:": "Invalidrequest", "code": "missingparameter", "message": "Missing required parameters" } } 视频续写创建任务 请求 plaintext curl location ' H 'XDashScopeAsync: enable' H "Authorization: Bearer ${YOURAPPKEY}" H 'ContentType: application/json' d '{ "model": "wan2.7i2v", "input": { "prompt": "女孩自拍结束,背起书包出门", "media": [ { "type": "firstclip", "url": " } ] }, "parameters": { "resolution": "720P", "duration": 10, "promptextend": true, "watermark": true } }'