这是一个异步API,只会返回异步任务的 task_id。您应该使用该 task_id 请求 查询任务结果 API 来检索视频生成结果。
请求头
枚举值:
application/json
Bearer 身份验证格式: Bearer {{API 秘钥}}。
请求体
基础输入信息,如提示词等。
视频处理参数,例如指定输出视频分辨率、时长等。
返回结果
异步任务的 task_id。您应该使用该 task_id 请求 查询任务结果 API 以获取生成结果
curl --request POST \
--url https://api.jiekou.ai/v3/async/wan-2.5-i2v-preview \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '{
"input": {
"prompt": "<string>",
"negative_prompt": "<string>",
"img_url": "<string>",
"audio_url": "<string>"
},
"parameters": {
"resolution": "<string>",
"duration": 123,
"prompt_extend": true,
"audio": true,
"seed": 123
}
}'
{
"task_id": "<string>"
}
curl --request POST \
--url https://api.jiekou.ai/v3/async/wan-2.5-i2v-preview \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '{
"input": {
"prompt": "<string>",
"negative_prompt": "<string>",
"img_url": "<string>",
"audio_url": "<string>"
},
"parameters": {
"resolution": "<string>",
"duration": 123,
"prompt_extend": true,
"audio": true,
"seed": 123
}
}'
{
"task_id": "<string>"
}
application/json
Hide 字段说明
Hide 字段说明
480P
、720P
、1080P
。默认值:1080P
。5
或 10
(单位:秒)。默认值:5
。true
:默认,开启智能改写;false
:不改写。true
:默认,自动为视频添加配音;false
:不添加音频,输出为静音视频。