Wan 3.0 - 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.
Parameters for Wan 3.0 video generation.
Request Parameters
Body (application/json)
| Parameter | Type | Required | Description |
|---|---|---|---|
model | string | Yes | wan/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。 Example:wan/3-0-video。 |
prompt | string | Yes | Prompt required by the ModelFold gateway; at most 2000 characters. Text 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. maxLength: 2000. Example:A kitten running across a rooftop under the moonlight, neon lights flickering in the distance, cinematic quality, with smooth camera movement.。 |
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 / 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. |
last_frame_url | string | No | URL of the last-frame image. Use together with first_frame_url. Same format limits as first_frame_url. |
reference_image_urls | array<string> | No | Reference 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. maxItems: 10. |
reference_video_urls | array<string> | No | Reference 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. maxItems: 5. |
reference_audio_urls | array<string> | No | Reference 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. maxItems: 5. |
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 parameters.Formats: docx/doc/xlsx/xls/pptx/ppt/pdf/txt/key/pages/numbers/md; ≤ 100MB; pdf/docx/ppt/key/pages, etc. ≤ 50 pages. maxItems: 1. |
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 parameters. maxItems: 1. |
resolution | string | No | Output resolution. Default: 1080P. Default:"1080P"。 Allowed values:480P / 720P / 1080P。 Example:1080P。 |
aspect_ratio | string | No | Output 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。 Example:adaptive。 |
duration | integer | No | Output 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. ModelFold minimum: 2 seconds; -1 is not supported. Default:5。 Example:5。 |
audio | boolean | No | Whether the output video includes an audio track. Default: true. Default:true。 Example:true。 |
seed | integer | No | Random seed used to reproduce results. If omitted, a random seed will be used. minimum: 0. maximum: 2147483647. |
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
bash
curl -X POST "https://modelfold.ai/v1/videos/generations" \
-H "Authorization: Bearer $MODELFOLD_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "wan/3-0-video",
"prompt": "A kitten running across a rooftop under the moonlight, neon lights flickering in the distance, cinematic quality, with smooth camera movement.",
"resolution": "1080P",
"aspect_ratio": "adaptive",
"duration": 5,
"audio": true
}'json
{
"model": "wan/3-0-video",
"prompt": "A kitten running across a rooftop under the moonlight, neon lights flickering in the distance, cinematic quality, with smooth camera movement.",
"resolution": "1080P",
"aspect_ratio": "adaptive",
"duration": 5,
"audio": true
}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": {}
}