创建视频(tasks)
开发中POST
/vidu/v1/tasks最后修改时间: 2 个月前
请求参数
Body 参数application/json
input
object
必需
prompts
array [object {3}]
必需
type
string
必需
settings
object
必需
style
string
必需
aspect_ratio
string
必需
duration
integer
必需
model
string
必需
示例
{
"input": {
"prompts": [
{
"type": "text",
"content": "fly over sky",
"enhance": true
},
{
"type": "image",
"content": "https://filesystem.site/cdn/20240801/oh03MErsxjEvX2iBdvnw57rkfgEtE2.png",
"enhance": true
}
]
},
"type": "img2video",
"settings": {
"style": "general",
"aspect_ratio": "16:9",
"duration": 4,
"model": "vidu-1"
}
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
id
string
必需
input
object
必需
creation_id
string
必需
prompts
array [object {5}]
必需
lang
string
必需
settings
object
必需
style
string
必需
duration
integer
必需
aspect_ratio
string
必需
model
string
必需
type
string
必需
state
string
必需
creations
array[string]
必需
err_code
string
必需
created_at
string
必需
示例
成功示例
{
"id": "2369218477629212",
"input": {
"creation_id": "0",
"prompts": [
{
"type": "text",
"content": "fly",
"negative": false,
"enhance": true,
"recaption": ""
},
{
"type": "image",
"content": "https://vidu.cf.vidu.studio/infer/tasks24/0731/162369218477629212/input/prompt-02.jpeg?Expires=1722528820&Signature=Cf7HE4SuETNaDEAoBkWyX7RgizytsxZsKpvKpzrI1-FOlGcsX5m13xQfnkWtJWL76Zynzgnwe-H8AFRW-h8jz2QIujv0Pu9ke7S7FTJlmavv~sdVpqW4IeKP1uZsU5wRuIF5xpCbzF8CJdbfQRK5T~b6t88hTApCJk0FOcCsgRB2n2YPohJbOq2a3tdptkOwpyQzlR~ImDlypC2y~c1DSQXUaucffebzJAMEKAH67WA3ijZYR-6luBlhFlt2Rxe2OX5nVF2j1Fo9y6bQ08I~3ES6~P~JeCNXD5a6WqUIkNDUWOAr6hjMgqiadJFdKuMM4WYZUe0J3RDh2udwLAZZ8Q__&Key-Pair-Id=KNW0SL0E7LV4E",
"negative": false,
"enhance": true,
"recaption": ""
}
],
"lang": "en"
},
"settings": {
"style": "general",
"duration": 4,
"aspect_ratio": "16:9",
"model": "vidu-1"
},
"type": "character2video",
"state": "queueing",
"creations": [],
"err_code": "",
"created_at": "2024-07-31T16:13:39.972262Z"
}
最后修改时间: 2 个月前