POST /v2/videos/generations
Method: POSTEndpoint: /v2/videos/generations
Unified Interface Format
Request Parameters
Header Parameters
text
Authorization
string
Optional
Default Value:
Bearer {{YOUR_API_KEY}}Body Parameters application/json
text
prompt
string
Required
model
enum<string>
Required
wanx2.1-kf2v-plus
Value:
wanx2.1-kf2v-plus
duration
integer
Optional
resolution
string
Optional
images
array
[string]
Required
// provider-specific example normalized for English documentation
Use a publicly accessible URL
Supports HTTP or HTTPS. Local files can be uploaded first to obtain a temporary URL.
Example Value:
https://cdn.translate.alibaba.com/r/wanx-demo-1.png。
String content after passing in a Base64-encoded image.
Data format: data:{MIME_type};base64,{base64_data}.
Example Value: data:image/png;base64,GDU7MtCZzEbTbmRZ...... (the encoded string is truncated for display).
watermark
boolean
Optional
template
string
Optional
negative_prompt
string
Optional
prompt_extend
string
Optional
seed
integer
Optional
Example
{
"prompt"
:
"dance"
,
"model"
:
"wanx2.1-kf2v-plus"
,
"images"
:
[
"https://webstatic.aiproxy.vip/dist/demo.jpg"
,
"https://webstatic.aiproxy.vip/dist/demo.jpg"
]
}Example Request
Shell
bash
curl --location --request POST '/v2/videos/generations' \
--header 'Authorization: Bearer {{YOUR_API_KEY}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"prompt": "dance",
"model": "wanx2.1-kf2v-plus",
"images": [
"https://webstatic.aiproxy.vip/dist/demo.jpg",
"https://webstatic.aiproxy.vip/dist/demo.jpg"
]
}'Response
🟢 200 Success
Content Type: application/json
Response Schema
text
task_id
string
RequiredExample
json
{
"task_id": "e7bed961-d1b9-4b3f-8ef9-5f441bde28c8"
}