Skip to content

Wan 动画移动 ​

接口 ​

POST /videos/generations

完整 URL: https://modelfold.ai/v1/videos/generations

鉴权:所有请求都需要 Authorization: Bearer <API_KEY> 请求头。

模型参数直接放在 JSON 请求体中,不要套 input。请求等待生成完成后返回 data[].url;支持的媒体模型也可使用 异步创建、轮询及回调。示例素材地址须替换为自己的公开可访问文件。计费及错误说明见 API 网关。

生成任务的输入参数

请求参数 ​

请求体 (application/json) ​

参数类型必填说明
modelstring是用于生成任务的模型名称。必填字段。
- 该端点必须使用 wan/2-2-animate-move 模型 默认值:"wan/2-2-animate-move"。 可选值:wan/2-2-animate-move。 示例:wan/2-2-animate-move。
video_urlstring是输入视频的 URL。(为上传后的文件 URL,非文件内容;支持的类型:video/mp4、video/quicktime、video/x-matroska;最大文件大小:100.0MB) 示例:https://file.aiquickdraw.com/custom-page/akr/section-images/17586254974931y2hottk.mp4。
image_urlstring是输入图像的 URL。(为上传后的文件 URL,非文件内容;支持的类型:image/jpeg、image/png、image/webp;最大文件大小:5.0MB) 示例:https://file.aiquickdraw.com/custom-page/akr/section-images/1758625466310wpehpbnf.png。
resolutionstring否生成视频的分辨率(720p)。 默认值:"720p"。 可选值:720p。 示例:720p。
nsfw_checkerboolean否默认 false。为 false 时不额外进行内容过滤,结果由模型直接返回。
promptstring是本站网关要求传入 prompt,最长 2000 字。 maxLength: 2000.

请求示例 ​

bash
curl -X POST "https://modelfold.ai/v1/videos/generations" \
  -H "Authorization: Bearer $MODELFOLD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "wan/2-2-animate-move",
  "video_url": "https://file.aiquickdraw.com/custom-page/akr/section-images/17586254974931y2hottk.mp4",
  "image_url": "https://file.aiquickdraw.com/custom-page/akr/section-images/1758625466310wpehpbnf.png",
  "resolution": "720p",
  "prompt": "A paper boat drifting down a rainy street."
}'
json
{
  "model": "wan/2-2-animate-move",
  "video_url": "https://file.aiquickdraw.com/custom-page/akr/section-images/17586254974931y2hottk.mp4",
  "image_url": "https://file.aiquickdraw.com/custom-page/akr/section-images/1758625466310wpehpbnf.png",
  "resolution": "720p",
  "prompt": "A paper boat drifting down a rainy street."
}

响应 ​

200 — 生成完成。usage 返回实际计费明细;结果地址仅作结构示例。 ​

json
{
  "ok": true,
  "created": 1792134000,
  "data": [
    {
      "url": "https://modelfold.ai/uploads/outputs/result.mp4"
    }
  ],
  "usage": {}
}

ModelFold — 一个 API,接入所有主流 AI 模型。