Skip to main content
POST
/
wan2.7-videoedit
/
async
curl --request POST \
  --url https://api.modellix.ai/api/v1/alibaba/wan2.7-videoedit/async \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "video_url": "https://example.com/input.mp4"
}
'
{
  "code": 0,
  "message": "success",
  "data": {
    "status": "pending",
    "task_id": "task-abc123",
    "model_id": "model-123",
    "get_result": {
      "method": "GET",
      "url": "https://api.modellix.ai/api/v1/tasks/task-abc123"
    }
  }
}

Authorizations

Authorization
string
header
required

API Key authentication. Format: Bearer YOUR_API_KEY.

Body

application/json
video_url
string<uri>
required

Input video URL (HTTP/HTTPS/OSS) or Base64 encoded data (required)

Example:

"https://example.com/input.mp4"

prompt
string

Text prompt describing desired video modifications (supports Chinese and English, up to 5000 characters)

Required string length: 1 - 5000
Example:

"Transform the entire scene into clay style"

reference_images
string<uri>[]

Reference image URLs for style transfer (optional, max 4). Combined with video_url, the total media count must be ≤ 5

Maximum array length: 4
Example:
[
"https://example.com/style1.jpg",
"https://example.com/style2.jpg"
]
negative_prompt
string

Negative prompt describing unwanted content

Maximum string length: 500
Example:

"blurry, distorted, low quality"

resolution
enum<string>
default:1080P

Video resolution tier

Available options:
720P,
1080P
Example:

"1080P"

ratio
enum<string>

Video aspect ratio (defaults to input video ratio if not specified)

Available options:
16:9,
9:16,
1:1,
4:3,
3:4
Example:

"16:9"

duration
enum<integer>
default:0

Video duration in seconds (0 = use input video duration without truncation, 2-10 = truncate to specified length)

Available options:
0,
2,
3,
4,
5,
6,
7,
8,
9,
10
Example:

5

audio_setting
enum<string>
default:auto

Audio handling mode (auto: intelligent decision based on prompt, origin: preserve original audio)

Available options:
auto,
origin
Example:

"auto"

prompt_extend
boolean
default:true

Enable intelligent prompt rewriting (improves quality for short prompts but increases processing time)

Example:

true

seed
integer

Random seed for reproducibility (note: results may vary even with same seed)

Required range: 0 <= x <= 2147483647
Example:

42

Response

200 - application/json

Task submitted successfully

code
integer
required

Response code, 0 indicates success

Example:

0

message
string
required

Response message

Example:

"success"

data
object
required