Theme
Generate Video
POST
https://www.kkiai.com/alibailian/api/v1/services/aigc/video-generation/video-synthesis
Request Parameters
Authorization
Add the Authorization parameter to the Header. Its value is the Token concatenated after Bearer.
Example: Authorization: Bearer ********************
Body Parameters (application/json)
| Parameter | Type | Required | Description |
|---|---|---|---|
model | string | Required | Model name. (Required) Used to specify the model for this video generation. Example value: wan2.5-i2v-preview. |
input | object | Required | Input information. (Required) Basic input information such as prompts, images, etc. |
└ prompt | string | Required | Prompt. (Optional) Used to describe the elements and visual characteristics expected to be included in the generated video. |
└ negative_prompt | string | Required | Negative prompt. (Optional) Used to describe content that you do not want to see in the video. |
└ img_url | string | Required | First frame image. (Required) URL or Base64 encoded data of the first frame image. |
└ audio_url | string | Required | Audio file URL. (Optional, only supported by wan2.5-i2v-preview) The model will use this audio to generate the video. |
└ template | string | Required | Video effect template. (Optional) Name of the video effect template. If not specified, no video effects will be applied. |
parameters | object | Required | Video processing parameters. (Optional) Advanced processing parameters for the video, such as setting resolution, duration, watermark, etc. |
└ resolution | string | Required | Video resolution. (Optional) Specify the resolution level of the generated video without changing the aspect ratio. |
└ duration | integer | Required | Video duration. (Optional) Duration of the generated video in seconds. The value of this parameter depends on the model parameter. |
└ prompt_extend | boolean | Required | Prompt intelligent rewriting. (Optional) Whether to enable intelligent prompt rewriting. Default value is true. |
└ watermark | boolean | Required | Watermark indicator. (Optional) Whether to add an "AI Generated" watermark. Default value is false. |
└ audio | boolean | Required | Auto-add audio. (Optional, only supported by wan2.5-i2v-preview) Controls whether to automatically add audio to the video. Only takes effect when audio_url is empty. |
└ seed | integer | Required | Random seed. (Optional) Fixing the seed value helps improve the reproducibility of generation results. |
Request Example
json
{
"model": "wan2.5-i2v-preview",
"input": {
"prompt": "Change the lighting.",
"img_url": "https://brainrot-yt-shorts.oss-cn-beijing.aliyuncs.com/images/cached/55a955b7e41723417281051d7bebdb45.png"
},
"parameters": {
"resolution": "480P",
"prompt_extend": true,
// "duration": 5,
"audio": true
}
}cURL Example
bash
curl --location --request POST 'https://www.kkiai.com/alibailian/api/v1/services/aigc/video-generation/video-synthesis' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "wan2.5-i2v-preview",
"input": {
"prompt": "Change the lighting.",
"img_url": "https://brainrot-yt-shorts.oss-cn-beijing.aliyuncs.com/images/cached/55a955b7e41723417281051d7bebdb45.png"
},
"parameters": {
"resolution": "480P",
"prompt_extend": true,
// "duration": 5,
"audio": true
}
}'Response
🟢 200 Success
Response Body
| Parameter | Type | Required | Description |
|---|---|---|---|
request_id | string | Required | |
output | object | Required | |
└ task_id | string | Required | |
└ task_status | string | Required |
Response Example
json
{
"request_id": "ccffb21f-c21e-4eba-861a-6c80e6db6e4d",
"output": {
"task_id": "a55bfe14-6e78-4b9d-b97d-128420399ed1",
"task_status": "PENDING"
}
}