这是一个异步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.2-t2v \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '{
"input": {
"prompt": "<string>",
"negative_prompt": "<string>"
},
"parameters": {
"size": "<string>",
"prompt_extend": true,
"seed": 123,
"watermark": true
}
}'
{
"task_id": "<string>"
}
curl --request POST \
--url https://api.jiekou.ai/v3/async/wan-2.2-t2v \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '{
"input": {
"prompt": "<string>",
"negative_prompt": "<string>"
},
"parameters": {
"size": "<string>",
"prompt_extend": true,
"seed": 123,
"watermark": true
}
}'
{
"task_id": "<string>"
}
application/json
Hide properties
832*480
:16:9。480*832
:9:16。624*624
:1:1。1920*1080
: 16:9。1080*1920
: 9:16。1440*1440
: 1:1。1632*1248
: 4:3。1248*1632
: 3:4。1280*720
),而不是宽高比(如 1:1
)或分辨率档位名称(如 480P
或 720P
)。true
:默认值,开启智能改写。false
:不开启智能改写。[0, 2147483647]
。如果不提供,则算法自动生成一个随机数作为种子。如果希望生成内容保持相对稳定,可以使用相同的 seed 参数值。false
:默认值,不添加水印。true
:添加水印。