wan3.0-video with POST /v1/video/generations.
For specific content requests, select
wan3.0-video-nsfw under the Direct resource group. This NSFW variant is an AnyFast-specific model ID; it is not an official Alibaba Cloud model.Key capabilities
- Generate videos from a prompt, media, or both. At least one of
input.promptandinput.mediais required. - Guide a video with a first frame or with both first and last frames.
- Combine up to 10 reference images, 5 reference videos, and 5 reference audio clips.
- Let the model understand a document, presentation, spreadsheet, text file, or public webpage before generating the video.
- Generate up to 30 seconds of 30 fps video, with synchronized audio enabled by default.
- Let the model select duration and composition with
duration: -1andratio: "adaptive".
Capability examples
Alibaba Cloud’s official page provides the input media below but does not publish output videos for these examples. Treat them as upstream input examples, not as results reproduced through AnyFast.
- Text to video
- First frame
- First and last frames
- Multimodal reference
- File or webpage
Supply
input.prompt without input.media. Describe the subject, action, setting, camera movement, visual style, and desired sound. Prompt content beyond 20,000 characters is automatically truncated.This workflow supports duration values from 2 to 30 seconds, as well as -1 for smart duration selection.Create a task
- Text to video
- First frame
- First and last frames
- Multimodal reference
- File or webpage
cURL
How Wan3.0 selects the workflow
Wan3.0 uses the mediatype values to select its generation workflow.
input.prompt and input.media are individually optional, but a request must include at least one of them. When you include media without a prompt, the model infers the generation intent from the media.
Control the output
Resolution values are service tiers rather than fixed width-by-height dimensions. The exact output dimensions vary with the selected aspect ratio.
Without a video input, set
duration to an integer from 2 to 30 seconds or to -1. When a request contains reference video input, the total input-video duration plus output duration must not exceed 30 seconds.
All generated videos use a 30 fps frame rate.
Input requirements
Images
These requirements apply tofirst_frame, last_frame, and reference_image items.
Videos
Audio
Files and webpages
Prompting tips
- Describe the subject, action, setting, visual style, camera movement, timing, dialogue, music, and sound effects that matter to the result.
- Refer to multimodal inputs by type and order, such as
Image 1,Video 1, andAudio 1, and state what each item should contribute. - For first-and-last-frame generation, describe the motion and visual transition between the two frames.
- For file or webpage references, identify which facts, products, slides, or sections should appear and how they should be ordered.
- Prompt content beyond 20,000 characters is automatically truncated.
Query and retain the result
The create endpoint returns an asynchronous task ID. PollGET /v1/video/generations/{id} until status reaches SUCCESS or FAILURE. A task can begin at NOT_START, then move through QUEUED and IN_PROGRESS; terminal states are SUCCESS and FAILURE. The progress field is a percentage string such as "0%" or "100%".
Alibaba Cloud reports a typical generation time of 1–5 minutes and recommends polling at roughly 15-second intervals. This upstream estimate is not an AnyFast service-level commitment; actual AnyFast processing time can vary with the request and queue state.
cURL
- The task can be queried for 24 hours after creation.
- The generated result URL remains valid for 24 hours.
- Download or transfer the video promptly after
statusreachesSUCCESS.
Wan3.0 Video API Reference
View the complete request and response schema for every workflow.




