Skip to main content
POST
/
wanx2.1-kf2v-plus
/
async
curl --request POST \
  --url https://modellixapi.jpushoa.com/api/v1/image-to-video/alibaba/wanx2.1-kf2v-plus/async \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "first_frame_url": "https://example.com/first.jpg"
}
'
{
  "code": 0,
  "message": "success",
  "data": {
    "status": "pending",
    "task_id": "task-abc123",
    "model_id": "wan2.6-i2v-flash"
  }
}

Authorizations

Authorization
string
header
required

API Key authentication. Format: Bearer YOUR_API_KEY.

Body

application/json
first_frame_url
string
required

First frame image URL (supports HTTP/HTTPS/Base64)

Example:

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

last_frame_url
string

Last frame image URL (supports HTTP/HTTPS/Base64), not needed when using video effects

Example:

"https://example.com/last.jpg"

prompt
string

Video content description, will be ignored when using video effects

Required string length: 1 - 800
Example:

"Smooth transition"

negative_prompt
string
Maximum string length: 500
template
enum<string>

Video effect template name (5 single-person effects available), only need first_frame_url when using effects

Available options:
hanfu-1,
solaron,
magazine,
mech1,
mech2
Example:

"hanfu-1"

resolution
enum<string>
default:720P

Video resolution tier, only supports 720P

Available options:
720P
Example:

"720P"

duration
enum<integer>
default:5

Video duration in seconds, fixed value

Available options:
5
Example:

5

prompt_extend
boolean
default:true

Enable prompt intelligent rewriting

Example:

true

seed
integer

Random seed for reproducibility

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

42

Response

200 - application/json

Task submitted successfully

code
integer

Response code, 0 for success

Example:

0

message
string

Response message

Example:

"success"

data
object