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.
Related Resources
- Model Marketplace — Explore all available models and capabilities
- Common API — Check account credits and usage
Request Parameters
Body (application/json)
| Parameter | Type | Required | Description |
|---|---|---|---|
model | string | Yes | wan/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。 |
callBackUrl | string | No | Callback 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. |
input | object | Yes | Parameters for Wan 3.0 video generation. |
input.prompt | string | No | Text 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_url | string | No | URL 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_url | string | No | URL of the last-frame image. Use together with first_frame_url. Same format limits as first_frame_url. |
input.reference_image_urls | array<string> | No | Reference 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_urls | array<string> | No | Reference 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_urls | array<string> | No | Reference 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_urls | array<string> | No | File-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_urls | array<string> | No | Link-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.resolution | string | No | Output resolution level. Default: 1080P. Default:"1080P"。 Allowed values:480P / 720P / 1080P。 示例:1080P。 |
input.aspect_ratio | string | No | Output 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.duration | integer | No | Output 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.audio | boolean | No | Whether the output video includes an audio track. Default: true. Default:true。 示例:true。 |
input.seed | integer | No | Random seed used to reproduce results. If omitted, a random seed is used. |
input.nsfw_checker | boolean | No | Defaults to false. When false, no additional content filtering is applied and results are returned directly by the model. |
Request Example
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
}
}'{
"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.
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
code | integer | 否 | 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。 |
msg | string | 否 | Response message, error description upon failure 示例:success。 |
data | object | 是 | — |
data.taskId | string | 是 | The task ID can be used with the "Get Task Details" endpoint to query the task status. 示例:dc1928bfcbc77cb6c85f3359a9c718b3。 |
{
"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
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
code | integer | 是 | Unified callback status code: 200 for success and 501 for failure. Allowed values:200 / 501。 示例:200。 |
msg | string | 是 | Unified callback message. Allowed values:Playground task completed successfully. / Playground task failed.。 示例:Playground task completed successfully.。 |
data | object | 是 | — |
data.taskId | string | 是 | Unique identifier of the task. |
data.model | string | 是 | The model used for the task. Allowed values:wan/3-0-video-prime。 示例:wan/3-0-video-prime。 |
data.state | string | 是 | Final status of the task. Allowed values:success / fail。 示例:success。 |
data.param | string | 是 | A JSON string containing the parameters submitted for the task. |
data.resultJson | string | 否 | When the task succeeds, a JSON string containing resultUrls. Present only when state is success. |
data.failCode | string | 否 | Failure code, a numeric string such as "400" or "500". Present only when state is fail. |
data.failMsg | string | 否 | Failure reason. Present only when state is fail. |
data.costTime | integer | 否 | Processing time in seconds. Present on both success and failure callbacks. |
data.completeTime | integer | 否 | Task completion timestamp. |
data.createTime | integer | 否 | Task creation timestamp. |
data.updateTime | integer | 否 | Use completeTime as the completion time; updateTime may equal createTime. |
data.creditsConsumed | number | 否 | Credits consumed by the task; 0 for failed tasks. |
Task completed successfully
{
"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
{
"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
}
}