WAN VIDEO

Generate videos using Alibaba Cloud Wan models. Supports both text-to-video and image-to-video.

POST https://api.apiframe.pro/wan-imagine

Headers

Name
Value

Content-Type

application/json

Authorization*

Your APIFRAME API Key

Body

Name
Type
Description

prompt

string

Text description of the desired video. Max 1500 characters. Required for wan2.6-flash, optional otherwise

model*

string

One of: wan2.5, wan2.6, wan2.6-flash

negative_prompt

string

Content to exclude from the video. Max 500 characters.

image_url

string

URL of the first-frame image. Providing this switches to image-to-video mode. Supported formats: JPEG, PNG, BMP, WEBP. Max 10 MB.

Required for wan2.6-flash, optional otherwise

audio_url

boolean

URL of an audio file to synchronize with the video. Supported formats: WAV, MP3. Duration: 3-30 seconds. Max 15 MB.

resolution

string

480P, 720P, or 1080P. Availability depends on model (see table below). 480P for Wan2.5 only

duration

integer

Video duration in seconds. Range depends on model. 2-15 for Any 2.6 model and 5 or 10 for Wan2.5.

webhook_url

string

The final result and updates of this task will be posted at this URL.

webhook_secret

string

Will be passed as x-webhook-secret in the webhook call headers for authentication.

Response

// Success, the task has been submitted
{
  "task_id": "29e983ca-7e86-4017-a9e3-ef6fe9cd5f2a"
}

This endpoint doesn't generate the video instantly, you can use the Fetch endpoint to fetch the result or use webhooks.

The result (posted to the webhook_url or retrieved with the Fetch endpoint) looks like this:

If the job is not completed, you will get a result like this:

Last updated