Skip to content

Wan 3.0 - Video ​

This page is generated from the upstream official OpenAPI documentation. Endpoints, parameters and examples match the official docs; brand and API domain are replaced with ModelFold.

Endpoint ​

POST /jobs/createTask

Full URL: https://ai.modelfold.online/v1/jobs/createTask

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

Create Task ​

Generate video through Wan 3.0. The standard model uses the parameter "model=wan/3-0-video".

  • Get Task Details — After submission, use the unified query endpoint to check task progress and retrieve results

TIP

For production use, we recommend providing the callBackUrl parameter so your service can receive completion notifications instead of polling for task status.

TIP

Billed seconds = output duration + total duration of reference videos. With duration = -1, billing follows the duration the model chooses. For current prices, see ai.modelfold.online/pricing.

Request Parameters ​

Body (application/json) ​

ParameterTypeRequiredDescription
modelstringYeswan/3-0-video is the standard model. The name of the model used to generate videos. This field is required.
- This endpoint must be wan/3-0-video Allowed values:wan/3-0-video。 示例:wan/3-0-video。
callBackUrlstringNoThe callback URL for task completion notifications. This parameter is optional. If provided, the system will send a POST request to this URL when the task is completed, regardless of whether it succeeds or fails. If not provided, no callback notification will be sent.
inputobjectYesParameters for Wan 3.0 video generation.
  input.promptstringNoText prompt, supporting both Chinese and English. Up to 20,000 characters. Required for text-to-video generation; for other modes, it is recommended to provide it together with media. In reference mode, use Image1/Video1/Audio1 to reference the provided media. 示例:A kitten running across a rooftop under the moonlight, neon lights flickering in the distance, cinematic quality, with smooth camera movement.。
  input.first_frame_urlstringNoURL of the first-frame image. Up to 1 image, used strictly as the first frame of the video. Used for first-frame-to-video / first-and-last-frame-to-video generation. Cannot be provided together with reference_*_urls.
Formats: JPEG/JPG, PNG (transparency not supported), BMP, WEBP; each side [240, 8000] px; aspect ratio ≤ 8:1; ≤ 20MB.
  input.last_frame_urlstringNoURL of the last-frame image. Use together with first_frame_url. Same format limits as first_frame_url.
  input.reference_image_urlsarray&lt;string&gt;NoReference images for the all-purpose reference mode, with up to 10 images. Correspond to Image1, Image2, … in the prompt according to array order. Specifications are the same as first_frame_url. Cannot be provided together with the first-frame/last-frame parameters.
  input.reference_video_urlsarray&lt;string&gt;NoReference videos for the all-purpose reference mode, with up to 5 clips. Each clip must be 1–15 seconds, with a total duration ≤ 15 seconds. Correspond to Video1, Video2, … according to array order.
Formats: mp4, mov; each side [240, 4096] px; aspect ratio ≤ 8:1; each file ≤ 100MB.
There is an additional constraint on the output side: the input video duration + duration must not exceed 30 seconds.
  input.reference_audio_urlsarray&lt;string&gt;NoReference audio for the all-purpose reference mode, with up to 5 clips. Each clip must be 1–15 seconds, with a total duration ≤ 15 seconds. Correspond to Audio1, Audio2, … according to array order. Formats: wav, mp3; ≤ 15MB. Reference audio can be used as the only media input; pairing it with a reference image or video usually gives better results.
  input.reference_file_urlsarray&lt;string&gt;NoFile-to-video generation. Up to 1 file. Cannot be provided together with reference_link_urls, or with the first-frame/last-frame parameters.
Formats: docx/doc/xlsx/xls/pptx/ppt/pdf/txt/key/pages/numbers/md; ≤ 100MB; pdf/docx/ppt/key/pages, etc. ≤ 50 pages.
  input.reference_link_urlsarray&lt;string&gt;NoLink-to-video generation. Up to 1 publicly accessible webpage that does not require login. Cannot be provided together with reference_file_urls, or with the first-frame/last-frame parameters.
  input.resolutionstringNoOutput resolution. Default: 1080P. Default:"1080P"。 Allowed values:480P / 720P / 1080P。 示例:1080P。
  input.aspect_ratiostringNoOutput aspect ratio. adaptive (default) automatically selects the ratio based on the input media and intent. Default:"adaptive"。 Allowed values:adaptive / 16:9 / 4:3 / 1:1 / 3:4 / 9:16。 示例:adaptive。
  input.durationintegerNoOutput video duration in seconds. Default: 5. Without video input, the range is [2, 30]. With reference videos: input video duration + output duration ≤ 30. Pass -1 to use an intelligent duration determined by the model. Default:5。 示例:5。
  input.audiobooleanNoWhether the output video includes an audio track. Default: true. Default:true。 示例:true。
  input.seedintegerNoRandom seed used to reproduce results. If omitted, a random seed will be used.
  input.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://ai.modelfold.online/v1/jobs/createTask" \
  -H "Authorization: Bearer $MODELFOLD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "wan/3-0-video",
  "callBackUrl": "https://your-domain.com/api/callback",
  "input": {
    "prompt": "A kitten running across a rooftop under the moonlight, neon lights flickering in the distance, cinematic quality, with smooth camera movement.",
    "first_frame_url": "https://your-domain.com/input.png",
    "last_frame_url": "https://your-domain.com/input.png",
    "reference_image_urls": [
      "https://your-domain.com/input.png"
    ],
    "reference_video_urls": [
      "https://your-domain.com/input.png"
    ],
    "reference_audio_urls": [
      "https://your-domain.com/input.png"
    ],
    "reference_file_urls": [
      "https://your-domain.com/input.png"
    ],
    "reference_link_urls": [
      "https://your-domain.com/input.png"
    ],
    "resolution": "1080P",
    "aspect_ratio": "adaptive",
    "duration": 5,
    "audio": true,
    "seed": 0,
    "nsfw_checker": false
  }
}'
json
{
  "model": "wan/3-0-video",
  "callBackUrl": "https://your-domain.com/api/callback",
  "input": {
    "prompt": "A kitten running across a rooftop under the moonlight, neon lights flickering in the distance, cinematic quality, with smooth camera movement.",
    "first_frame_url": "https://your-domain.com/input.png",
    "last_frame_url": "https://your-domain.com/input.png",
    "reference_image_urls": [
      "https://your-domain.com/input.png"
    ],
    "reference_video_urls": [
      "https://your-domain.com/input.png"
    ],
    "reference_audio_urls": [
      "https://your-domain.com/input.png"
    ],
    "reference_file_urls": [
      "https://your-domain.com/input.png"
    ],
    "reference_link_urls": [
      "https://your-domain.com/input.png"
    ],
    "resolution": "1080P",
    "aspect_ratio": "adaptive",
    "duration": 5,
    "audio": true,
    "seed": 0,
    "nsfw_checker": false
  }
}

Response ​

200 — Request successful. ​

参数类型必填说明
codeinteger否Status code of the request. The HTTP status is 200 even when the request fails, so always check this field: 200 means success; any other value means the request failed and msg describes the reason. Common values: 401 invalid or missing API key; 402 insufficient credits; 429 rate limit exceeded; 422 or 500 the request could not be processed (read msg and check your parameters before retrying). 可选值:200 / 401 / 402 / 404 / 422 / 429 / 433 / 455 / 500 / 501 / 505。 示例:200。
msgstring否Response message, error description upon failure 示例:success。
dataobject是—
  data.taskIdstring是The task ID can be used with the "Get Task Details" endpoint to query the task status. 示例:dc1928bfcbc77cb6c85f3359a9c718b3。
json
{
  "code": 200,
  "msg": "success",
  "data": {
    "taskId": "task_wan_1765180586443"
  }
}

Callback ​

videoTaskCompleted ​

Callback URL: {request.body#/callBackUrl} (the callBackUrl in the request body).

The system sends this callback when the wan/3-0-video task succeeds or fails.

Callback body parameters

参数类型必填说明
codeinteger是Unified callback status code: 200 for success and 501 for failure. Allowed values:200 / 501。 示例:200。
msgstring是Unified callback message. Allowed values:Playground task completed successfully. / Playground task failed.。 示例:Playground task completed successfully.。
dataobject是—
  data.taskIdstring是Unique identifier of the task.
  data.modelstring是The model used for the task. Allowed values:wan/3-0-video。 示例:wan/3-0-video。
  data.statestring是Final status of the task. Allowed values:success / fail。 示例:success。
  data.paramstring是A JSON string containing the parameters submitted for the task.
  data.resultJsonstring否When the task succeeds, a JSON string containing resultUrls. Present only when state is success.
  data.failCodestring否Failure code, a numeric string such as "400" or "500". Present only when state is fail.
  data.failMsgstring否Failure reason. Present only when state is fail.
  data.costTimeinteger否Processing time in seconds. Present on both success and failure callbacks.
  data.completeTimeinteger否Task completion timestamp.
  data.createTimeinteger否Task creation timestamp.
  data.updateTimeinteger否Use completeTime as the completion time; updateTime may equal createTime.
  data.creditsConsumednumber否Credits consumed by the task; 0 for failed tasks.

Task completed successfully

json
{
  "code": 200,
  "msg": "Playground task completed successfully.",
  "data": {
    "taskId": "bd8f4b1a52048d0f17a38b49591abfa1",
    "model": "wan/3-0-video",
    "state": "success",
    "param": "{\"input\":\"{\\\"duration\\\":5,\\\"aspect_ratio\\\":\\\"adaptive\\\",\\\"audio\\\":true,\\\"prompt\\\":\\\"Under the moonlight, a little cat is running on the roof. In the distance, the neon lights are flashing, giving a cinematic feel. The camera movement is smooth.\\\",\\\"resolution\\\":\\\"480P\\\",\\\"nsfw_checker\\\":false}\",\"callBackUrl\":\"https://webhook.uutool.cn/09df5d64-a00b-4ecf-823f-b992378a1cf3\",\"model\":\"wan/3-0-video\"}",
    "resultJson": "{\"resultUrls\":[\"https://tempfile.aiquickdraw.com/wan30-video-alibaba/1787567408129-b1fmz5um3co.mp4\"]}",
    "costTime": 89,
    "completeTime": 1787567409000,
    "createTime": 1787567320000,
    "updateTime": 1787567409000,
    "creditsConsumed": 40
  }
}

Task failed

json
{
  "code": 501,
  "msg": "Playground task failed.",
  "data": {
    "taskId": "bd8f4b1a52048d0f17a38b49591abfa1",
    "model": "wan/3-0-video",
    "state": "fail",
    "param": "{\"input\":\"{\\\"duration\\\":5,\\\"aspect_ratio\\\":\\\"adaptive\\\",\\\"audio\\\":true,\\\"prompt\\\":\\\"Under the moonlight, a little cat is running on the roof. In the distance, the neon lights are flashing, giving a cinematic feel. The camera movement is smooth.\\\",\\\"resolution\\\":\\\"480P\\\",\\\"nsfw_checker\\\":false}\",\"callBackUrl\":\"https://webhook.uutool.cn/09df5d64-a00b-4ecf-823f-b992378a1cf3\",\"model\":\"wan/3-0-video\"}",
    "failCode": "400",
    "failMsg": "<error detail>",
    "costTime": 89,
    "creditsConsumed": 0
  }
}

ModelFold — one API for all the best AI models.