Skip to main content
POST
/
wan2.7-i2v
/
async
curl --request POST \ --url https://api.modellix.ai/api/v1/alibaba/wan2.7-i2v/async \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "first_frame": "https://example.com/first.png" } '
{
  "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"
    }
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.modellix.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API Key authentication. Format: Bearer YOUR_API_KEY.

Body

application/json

Flattened media parameters for Wan 2.7 I2V. Task mode must be one of: first_frame, first_frame+last_frame, first_frame+driving_audio, first_frame+last_frame+driving_audio, first_clip, first_clip+last_frame.

first_frame
string
required

First frame image URL. Supports HTTP/HTTPS URL, OSS URL, or image base64 data URI.

Pattern: ^(https?://|oss://|data:image/)
Examples:

"https://example.com/first.png"

"oss://dashscope-instant/example/first.png"

"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+M9QDwADhgGAWjR9awAAAABJRU5ErkJggg=="

prompt
string

Optional text prompt, max 5000 chars.

Maximum string length: 5000
negative_prompt
string

Optional negative prompt, max 500 chars.

Maximum string length: 500
last_frame
string

Optional last frame image URL. Supports HTTP/HTTPS URL, OSS URL, or image base64 data URI.

Pattern: ^(https?://|oss://|data:image/)
driving_audio
string

Optional driving audio URL (HTTP/HTTPS/OSS).

Pattern: ^(https?://|oss://)
first_clip
string

Optional first clip URL for continuation mode (HTTP/HTTPS/OSS).

Pattern: ^(https?://|oss://)
resolution
enum<string>
default:1080P

Output resolution tier.

Available options:
720P,
1080P
duration
integer
default:5

Video duration in seconds.

Required range: 2 <= x <= 15
prompt_extend
boolean
default:true

Enable prompt intelligent rewrite.

seed
integer

Random seed for reproducibility.

Required range: 0 <= x <= 2147483647

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

Detailed data about the submitted asynchronous task.