跳转到内容

Wan Motion

集成

模型 id wan-motion
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/wan-motion?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "video": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4",
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

与示例类似的文件: $0.75 750 API 积分 运行前会测量你的文件 在此页面运行

获取 API 密钥
Alibaba 视频转换

角色动画,使用驱动视频的动作移动参考图像,并适配姿势

在 Doitong 上制作

Doitong 社区使用 Wan Motion 制作的公开作品。一键复用提示词。

显示的公开作品:2
Create a realistic cinematic UGC-style commercial video, exactly 30 seconds long. The entire scen... 视频

Create a realistic cinematic UGC-style commercial video, exactly 30 seconds long. The entire scene takes place inside a modern passenger airplane during a daytime flight. Natural smartphone-like cinematography, realistic airplane cabin, authentic passengers, natural lighting, realistic skin...

Реалистичная бытовая сцена в советской одесской квартире зимним вечером. Женщина находится на кух... 视频

Реалистичная бытовая сцена в советской одесской квартире зимним вечером. Женщина находится на кухне, мужчина — в комнате и прихожей. Атмосфера обычной советской семьи перед приходом гостей. Голоса: все персонажи говорят по-русски с естественным, выразительным одесским говором. Характерная...

构建请求

控件根据模型架构生成。更改控件时,代码和价格会同步更新。

默认

可选的文本说明,用于指导生成。

•必填 video_url
拖放文件,或

驱动视频 URL,用作运动来源。

•必填 image_url
拖放文件,或

参考图像 URL,用于定义角色外观。

高级 acceleration · seed · adapt_motion · enable_safety_checker
acceleration 默认 regular

基于缓存的生成加速:选择 'none' 禁用缓存,或选择 'regular' 启用缓存并加快生成。

控制随机性的种子,以获得可复现的结果。

POST /run/wan-motion?wait=20 报价 → $0.75
# Run the model; wait up to 20 s for the finished result in the same call
curl -X POST "https://api.doitong.com/v1/run/wan-motion?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "video": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4",
    "image": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  }'

# Still "queued" or "running"? Poll with the id from the response:
curl "https://api.doitong.com/v1/requests/REQUEST_ID?wait=20" \
  -H "Authorization: Bearer $DOITONG_API_KEY"

运行此请求

你的密钥会保留在此浏览器中:仅发送到 Doitong API;只有勾选“记住”后才会保存到 localStorage。 获取 API 密钥

关于 Wan Motion

需要两个输入:`video_url` 中用于提供动作的驱动视频,以及 `image_url` 中用于提供角色外观的参考图像。可选的 `prompt` 用于引导结果。启用 `adapt_motion` 后,视频中的姿势会适配参考角色的身体比例,适合体型不同的情况。`enhance_identity` 可预处理参考图像,以更好地保持角色身份一致。

参数

发送规范名称或原生名称之一,不要同时发送两者。 规范名称

名称类型 默认值允许值 描述
video_url必填 video
类型url · video
驱动视频 URL,用作运动来源。
image_url必填 image
类型url · image
参考图像 URL,用于定义角色外观。
prompt可选
类型string
默认值
可选的文本说明,用于指导生成。
seed可选
类型integer | null
控制随机性的种子,以获得可复现的结果。
acceleration可选
类型enum
默认值regular
noneregular
基于缓存的生成加速:选择 'none' 禁用缓存,或选择 'regular' 启用缓存并加快生成。
adapt_motion可选
类型boolean
默认值true
适应参考图像与驱动视频主体之间身体比例差异的运动设置。启用后会使驱动运动适配参考比例;当身体形状或尺寸不同时建议启用。
enhance_identity可选
类型boolean
默认值false
使用 Flux Kontext Edit 对参考图像进行预处理,在动画生成前执行以改善身份保持效果。
enable_safety_checker可选
类型boolean
默认值true
对输入和输出进行安全筛查,仅授权账户可以禁用。true 值启用筛查;未经授权的请求无论设置如何都会进行筛查。
必填 规范名称,也可接受

文件参数接受公开的 https:// URL、最大 10 MB 的 data: URI,或上传文件的 file_url。 文件

输出

GET /requests/req_8k2m4q7x1z9c3v5b6n0p2r4t
{
  "id": "req_8k2m4q7x1z9c3v5b6n0p2r4t",
  "object": "request",
  "model": "wan-motion",
  "status": "succeeded",
  "created_at": "2026-10-20T12:00:00Z",
  "started_at": "2026-10-20T12:00:02Z",
  "completed_at": "2026-10-20T12:00:09Z",
  "queue_position": null,
  "cost": {
    "credits": 750,
    "usd": "0.75",
    "charged": 750,
    "refunded": 0
  },
  "input": {
    "video_url": "https://content.doitong.com/video/showcase/v3/gen_fox_cartoon.mp4",
    "image_url": "https://content.doitong.com/images/showcase/v3/gen_fox_cartoon.jpg"
  },
  "output": {
    "video": {
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_name": "0-output.mp4",
      "file_size": 1843200
    },
    "prompt": "woman dancing",
    "seed": 42
  },
  "outputs": [
    {
      "type": "video",
      "url": "https://content.doitong.com/dev-api/2026/10/20/req_8k2m4q7x1z9c3v5b6n0p2r4t/0-output.mp4",
      "content_type": "video/mp4",
      "file_size": 1843200,
      "width": 1280,
      "height": 720,
      "duration": 5,
      "stored": true
    }
  ],
  "error": null,
  "metrics": {
    "inference_seconds": 6.8
  },
  "urls": {
    "self": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t",
    "cancel": "https://api.doitong.com/v1/requests/req_8k2m4q7x1z9c3v5b6n0p2r4t/cancel"
  }
}
你的文件,由你选择每个 outputs[].url 都是存储中的副本:可永久保存(按 GB-月付费),也可免费保存 7 天,由账户设置或 ?storage= 决定。
每个模型的结构相同图像、视频和音频均包含 type、url、content_type、width、height 和 duration。output 是模型自身的结果对象。
输出字段
video
object {url, content_type, file_name, file_size}生成得到的视频文件。
prompt
string用于生成输出的提示词。
seed
integer生成期间应用的种子值。

对于 AI 代理:此页面的 Markdown 版本位于 https://doitong.com/zh/developers/models/wan-motion.md. 所有模型和指南: https://doitong.com/developers/llms.txt