Skip to content

Wan 2.6 - Video to Video ​

Endpoint ​

POST /videos/generations

Full URL: https://modelfold.ai/v1/videos/generations

Authentication: every request must include the Authorization: Bearer <API_KEY> header.

Send model parameters directly in the JSON body. Do not wrap them in input. This request waits for generation to finish and returns data[].url; supported media models also offer async jobs, polling and callbacks. Replace example media URLs with your own publicly accessible files. See API gateway for billing and errors.

Input parameters for the generation task

Request Parameters ​

Body (application/json) ​

ParameterTypeRequiredDescription
modelstringYesThe model name to use for generation. Required field.
- Must be wan/2-6-video-to-video for this endpoint Default:"wan/2-6-video-to-video"。 Allowed values:wan/2-6-video-to-video。 Example:wan/2-6-video-to-video。
promptstringYesPrompt required by the ModelFold gateway; at most 2000 characters. Text prompts for video generation. Supports both Chinese and English, with a minimum of 2 characters and a maximum of 5,000 characters. (Max length: 5000 characters) maxLength: 2000. Example:The video drinks milk tea while doing some improvised dance moves to the music.。
video_urlsarray&lt;string&gt;YesReference video URLs. (File URL after upload, not file content; Accepted types: video/mp4, video/quicktime, video/x-matroska; Max size: 10.0MB) maxItems: 3.
durationstringNoThe duration of the generated video in seconds Default:"5"。 Allowed values:5 / 10。 Example:5。
resolutionstringNoOutput resolution: 720p or 1080p. Set this field explicitly. Allowed values:720p / 1080p。 Example:1080p。
multi_shotsbooleanNoThe multi shots parameter controls the shot composition style during AI video generation, determining whether the generated video is a single continuous shot or multiple shots with transitions. Default:false。 Example:false。
nsfw_checkerbooleanNoDefaults to false. When false, no additional content filtering is applied and results are returned directly by the model.

Request Example ​

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-6-video-to-video",
  "prompt": "The video drinks milk tea while doing some improvised dance moves to the music.",
  "video_urls": [
    "https://example.com/reference.mp4"
  ],
  "duration": "5"
}'
json
{
  "model": "wan/2-6-video-to-video",
  "prompt": "The video drinks milk tea while doing some improvised dance moves to the music.",
  "video_urls": [
    "https://example.com/reference.mp4"
  ],
  "duration": "5"
}

Response ​

200 — Generation completed. usage contains actual billing details; result URLs are illustrative. ​

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

ModelFold — one API for all the best AI models.