Skip to content

Wan 3.0 - Video Prime ​

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 high-speed model uses model=wan/3-0-video-prime;

  • 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-prime is a high-speed model. The model name used to generate videos. This field is required.
- This endpoint must be wan/3-0-video-prime Allowed values:wan/3-0-video-prime。 示例:wan/3-0-video-prime。
callBackUrlstringNoCallback URL for task completion notifications. This parameter is optional. If provided, the system sends a POST request to this URL when the task is completed, regardless of whether it succeeds or fails. If not provided, no callback notification is sent.
inputobjectYesParameters for Wan 3.0 video generation.
  input.promptstringNoText prompt. Chinese and English are supported. Up to 20,000 characters. Required for text-to-video; for other modes, it is recommended to provide it together with media. In reference mode, use Image1/Video1/Audio1 to reference the provided materials. 示例: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 or 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 all-purpose reference mode. Up to 10 images. Correspond to Image1, Image2, and so on in the prompt according to array order. Same specifications as first_frame_url. Cannot be provided together with the first-frame or last-frame image.
  input.reference_video_urlsarray&lt;string&gt;NoReference videos for all-purpose reference mode. Up to 5 videos. Each video must be 1–15s, with a combined duration of ≤ 15s. Correspond to Video1, Video2, and so on according to array order.
Formats: mp4, mov; each side [240, 4096] px; aspect ratio ≤ 8:1; each file ≤ 100MB.
There is an additional output-side limit: the input video duration plus duration cannot exceed 30 seconds.
  input.reference_audio_urlsarray&lt;string&gt;NoReference audio files for all-purpose reference mode. Up to 5 audio files. Each file must be 1–15s, with a combined duration of ≤ 15s. Correspond to Audio1, Audio2, and so on 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 image.
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 image.
  input.resolutionstringNoOutput resolution level. Default: 1080P. Default:"1080P"。 Allowed values:480P / 720P / 1080P。 示例:1080P。
  input.aspect_ratiostringNoOutput aspect ratio. adaptive (default) automatically selects the aspect ratio based on the input materials 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. When there is no video input, the value must be within [2, 30]. When reference videos are provided: input video duration plus 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 is 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-prime",
  "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-prime",
  "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-prime 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-prime。 示例:wan/3-0-video-prime。
  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-prime",
    "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-prime\"}",
    "resultJson": "{\"resultUrls\":[\"https://tempfile.aiquickdraw.com/wan30-video-prime-alibaba/1787567408129-b1fmz5um3co.mp4\"]}",
    "costTime": 89,
    "completeTime": 1787567409000,
    "createTime": 1787567320000,
    "updateTime": 1787567409000,
    "creditsConsumed": 61
  }
}

Task failed

json
{
  "code": 501,
  "msg": "Playground task failed.",
  "data": {
    "taskId": "bd8f4b1a52048d0f17a38b49591abfa1",
    "model": "wan/3-0-video-prime",
    "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-prime\"}",
    "failCode": "400",
    "failMsg": "<error detail>",
    "costTime": 89,
    "creditsConsumed": 0
  }
}

ModelFold — one API for all the best AI models.