Skip to content

Wan 2.5 - Image 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 image-to-video task.

Request Parameters ​

Body (application/json) ​

ParameterTypeRequiredDescription
modelstringYesThe model name used for generation. This field is required.
- This endpoint must use the wan/2-5-image-to-video model Default:"wan/2-5-image-to-video"。 Allowed values:wan/2-5-image-to-video。 Example:wan/2-5-image-to-video。
promptstringYesPrompt required by the ModelFold gateway; at most 2000 characters. The text prompt describing the desired video motion. Maximum length: 800 characters. maxLength: 800. Example:The same woman from the reference image looks directly into the camera, takes a breath, then smiles brightly and speaks with enthusiasm: "Have you heard? Alibaba Wan 2.5 API is now available on modelfold.ai!" Ambient audio: quiet indoor atmosphere, soft natural room tone. Camera: medium close-up, steady framing, natural daylight mood, accurate lip-sync with dialogue.。
image_urlstringYesURL of the image to use as the first frame. Must be publicly accessible.
- Please provide the URL of the uploaded file, not raw file content
- Accepted types: image/jpeg, image/png, image/webp
- Max size: 10.0MB Example:https://file.aiquickdraw.com/custom-page/akr/section-images/1758796480945qb63zxq8.webp。
durationstringYesThe duration of the generated video in seconds.
- 5: 5 seconds
- 10: 10 seconds Allowed values:5 / 10。 Example:5。
resolutionstringYesRequired. 720p or 1080p. Allowed values:720p / 1080p。 Example:1080p。
negative_promptstringNoNegative prompt used to describe content to avoid. Maximum length: 500 characters. maxLength: 500.
enable_prompt_expansionbooleanNoWhether to enable prompt rewriting using LLM.
- Boolean value: true / false Example:true。
seedintegerNoRandom seed for reproducibility. If omitted, a random seed is chosen.
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-5-image-to-video",
  "prompt": "The same woman from the reference image looks directly into the camera, takes a breath, then smiles brightly and speaks with enthusiasm: \"Have you heard? Alibaba Wan 2.5 API is now available on ModelFold!\" Ambient audio: quiet indoor atmosphere, soft natural room tone. Camera: medium close-up, steady framing, natural daylight mood, accurate lip-sync with dialogue.",
  "image_url": "https://file.aiquickdraw.com/custom-page/akr/section-images/1758796480945qb63zxq8.webp",
  "duration": "5",
  "resolution": "1080p"
}'
json
{
  "model": "wan/2-5-image-to-video",
  "prompt": "The same woman from the reference image looks directly into the camera, takes a breath, then smiles brightly and speaks with enthusiasm: \"Have you heard? Alibaba Wan 2.5 API is now available on ModelFold!\" Ambient audio: quiet indoor atmosphere, soft natural room tone. Camera: medium close-up, steady framing, natural daylight mood, accurate lip-sync with dialogue.",
  "image_url": "https://file.aiquickdraw.com/custom-page/akr/section-images/1758796480945qb63zxq8.webp",
  "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.