Wan图像生成与编辑 请求/响应示例 同步/异步创建任务示例 如果异步,则加上请求头"XDashScopeAsync: enable" 创建任务请求示例 文生图 plaintext curl location ' header 'ContentType: application/json' header "Authorization: Bearer ${YOURAPPKEY}" data '{ "model": "wan2.7imagepro", "input": { "messages": [ { "role": "user", "content": [ {"text": "山间木质观景台,秋日清晨薄雾,柔和自然光,写实摄影"} ] } ] }, "parameters": { "size": "2K", "n": 1, "watermark": false } }' 图像编辑 plaintext curl location ' header 'ContentType: application/json' header "Authorization: Bearer ${YOURAPPKEY}" data '{ "model": "wan2.7imagepro", "input": { "messages": [ { "role": "user", "content": [ {"image": " {"image": " {"text": "图2和图1的色调互换"} ] } ] }, "parameters": { "size": "2K", "n": 1, "watermark": false } }' 组生图 plaintext curl location ' header 'ContentType: application/json' header "Authorization: Bearer ${YOURAPPKEY}" data '{ "model": "wan2.7imagepro", "input": { "messages": [ { "role": "user", "content": [ {"text": "江南古镇小巷,黄昏,暖黄路灯,烟火气息,胶片质感"} ] } ] }, "parameters": { "enablesequential": true, "n": 4, "size": "2K" } }'