Skip to content

Wan - 2-6-flash-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-flash-video-to-video for this endpoint Default:"wan/2-6-flash-video-to-video"。 Allowed values:wan/2-6-flash-video-to-video。 Example:wan/2-6-flash-video-to-video。
promptstringYesPrompt required by the ModelFold gateway; at most 2000 characters. Text prompts for video generation. Supports Chinese and English, 2–1,500 characters. maxLength: 1500. 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。
resolutionstringNoVideo resolution tier Default:"1080p"。 Allowed values:720p / 1080p。 Example:720p。
audiobooleanNoWhether to generate video with audio. Audio directly affects the cost, as the pricing differs between videos with sound and silent videos. (Boolean value (true/false))
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. (Boolean value (true/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-flash-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",
  "resolution": "1080p"
}'
json
{
  "model": "wan/2-6-flash-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",
  "resolution": "1080p"
}

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.