这是一个异步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-t2v-preview \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '{
"input": {
"prompt": "<string>",
"negative_prompt": "<string>",
"audio_url": "<string>"
},
"parameters": {
"size": "<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-t2v-preview \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '{
"input": {
"prompt": "<string>",
"negative_prompt": "<string>",
"audio_url": "<string>"
},
"parameters": {
"size": "<string>",
"duration": 123,
"prompt_extend": true,
"audio": true,
"seed": 123
}
}'
{
"task_id": "<string>"
}
application/json
Hide 字段说明
Hide 字段说明
1920*1080
(即1080P)。
size
参数用于指定视频输出的分辨率,格式为宽*高。不同分辨率档位支持的具体值如下:480P档位:可选分辨率832*480
:16:9480*832
:9:16624*624
:1:11280*720
:16:9720*1280
:9:16960*960
:1:11088*832
:4:3832*1088
:3:41920*1080
:16:91080*1920
:9:161440*1440
:1:11632*1248
:4:31248*1632
:3:41280*720
),不能填写比例(如 1:1
)或档位名称(如 480P
、720P
)。5
秒、10
秒。默认值为5
。true
:默认,开启智能改写false
:不改写true
:默认,自动为视频添加配音false
:不添加音频,输出为静音视频