Skip to main content
Wan3.0 uses one model and one creation endpoint for text-to-video, frame-guided video, multimodal reference, and document or webpage reference workflows. Select a tab for the request shape you need, then query the returned task ID.
Alibaba’s official Wan3.0 page lists only wan3.0-video. AnyFast also provides the AnyFast-specific wan3.0-video-nsfw variant through the Direct resource group.

Create task

POST /v1/video/generations
cURL

Request headers

string
required
Bearer authentication in the form Bearer YOUR_API_KEY.
string
default:"application/json"
required
Request body format.

Request body

string
required
AnyFast model ID. Use wan3.0-video, or use the AnyFast-specific wan3.0-video-nsfw variant in the Direct resource group. Alibaba’s official page lists only the standard model.
object
required
Basic generation input. At least one of input.prompt or input.media must be present.
string
required
Video description in Chinese or English. Content beyond 20,000 characters is automatically truncated.
object
Video generation controls.
string
default:"1080P"
Output resolution: 1080P, 720P, or 480P.
string
default:"adaptive"
Output aspect ratio: adaptive, 16:9, 4:3, 1:1, 3:4, or 9:16.
integer
default:5
Output duration in seconds. With no video input, use -1 for smart duration or an integer from 2 through 30.
boolean
default:true
Whether the generated video contains an audio track. The price is the same for true and false.
integer
Random seed from 0 through 2147483647.
boolean
default:false
Whether to add a watermark to the generated video.

Create response

200
string
Task ID used to query the result.
string
Task ID, identical to id.
string
Returned object type, video.
string
AnyFast model ID used by the task.
string
Initial task status, normally queued.
integer
Initial task progress percentage.
integer
Creation time as a Unix timestamp in seconds.

Media limits

Images

  • Roles: first_frame, last_frame, and reference_image.
  • Formats: JPEG, JPG, PNG without an alpha channel, BMP, or WEBP.
  • Each side must be 240–8,000 px, the aspect ratio must not exceed 8:1, and each image must be no larger than 20 MB.
  • Images accept a public HTTP or HTTPS URL or a Base64 data URI. Supply at most one first frame, one last frame, or 10 reference images.

Videos

  • Role: reference_video; up to five clips with no more than 15 seconds total.
  • Formats: MP4 or MOV. Each clip must be 1–15 seconds, each side must be 240–4,096 px, the aspect ratio must not exceed 8:1, and each file must be no larger than 100 MB.
  • Videos require a public HTTP or HTTPS URL.

Audio

  • Role: reference_audio; up to five clips with no more than 15 seconds total.
  • Formats: WAV or MP3. Each clip must be 1–15 seconds and no larger than 15 MB.
  • Audio requires a public HTTP or HTTPS URL.

Files and webpages

  • file supports DOCX, DOC, XLSX, XLS, PPTX, PPT, PDF, TXT, KEY, PAGES, NUMBERS, and MD files up to 100 MB.
  • PDF, DOCX, DOC, PPTX, PPT, KEY, and PAGES inputs support up to 50 pages.
  • link accepts a public HTTP or HTTPS webpage that does not require login.
  • Supply at most one file or one link; they are mutually exclusive.
reference_image, reference_video, reference_audio, file, and link cannot be combined with first_frame or last_frame in the same request.
Source: Alibaba Cloud Wan3.0 video generation API reference.