generate (文生视频)
开发中POST
{{BASE_URL}}/pika/v1/pro/generate最后修改时间: 3 天前
请求参数
Header 参数
Authorization
string
必需
示例值:
sk-xxxxx
User-Agent
string
必需
示例值:
Apifox/1.0.0 (https://apifox.com)
Content-Type
string
必需
示例值:
application/json
Body 参数application/json
callback_url
string
必需
ratio
string
必需
prompt
string
必需
style
string
必需
model
string
1.5
options
object
必需
seconds
integer
必需
motion_vector
object
必需
示例
{
"callback_url": "http://baidu.com",
"style": "Inflate",
"ratio": "16:9",
"prompt": "一只小猫",
"sfx": true,
"model": 1.5,
"options": {
"frameRate": 20,
"camera": {
"pan": "right",
"tilt": "up",
"rotate": "cw",
"zoom": "in"
},
"parameters": {
"guidanceScale": 16,
"motion": 2,
"negativePrompt": "ugly",
"seed": 144124
}
}
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
object {0}
示例
{
"code": 200,
"data": {
"task_id": "43b45f96-9812-4925-8829-6ad7d2cc2ccc"
},
"exec_time": 0.730497,
"msg": "成功"
}
最后修改时间: 3 天前