跳转到主要内容
图生动作

Wan — 创建任务

提交动画生成任务

POST
/services/aigc/image2video/video-synthesis
cURL - 图像转动画
curl --location 'https://dashscope.aliyuncs.com/api/v1/services/aigc/image2video/video-synthesis' \
  -H 'X-DashScope-Async: enable' \
  -H "Authorization: Bearer $DASHSCOPE_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
  "model": "wan2.2-animate-move",
  "input": {
    "image_url": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250919/adsyrp/move_input_image.jpeg",
    "video_url": "https://help-static-aliyun-doc.aliyuncs.com/file-manage-files/zh-CN/20250919/kaakcn/move_input_video.mp4",
    "watermark": true
  },
  "parameters": {
    "mode": "wan-std"
  }
}'
{
  "request_id": "4909100c-7b5a-9f92-bfe5-xxxxxx",
  "output": {
    "task_id": "0385dc79-5ff8-4d82-bcb6-xxxxxx",
    "task_status": "PENDING"
  }
}

鉴权

string
header
必填

千问云 API Key。详见获取 API Key

Header 参数

enum<string>
必填

必须设置为 enable。HTTP 请求仅支持异步处理。省略此请求头将返回"当前用户 API 不支持同步调用"的错误。

enable

请求体

application/json
enum<string>
必填

模型名称,必须为 wan2.2-animate-move

wan2.2-animate-move
wan2.2-animate-move
object
必填

输入数据,包含人物图像和参考视频。

object
必填

视频生成参数。

响应

200-application/json
string

用于追踪和排查问题的唯一请求标识符。

4909100c-7b5a-9f92-bfe5-xxxxxx
object