generate(参考图片)
测试中
POST
https://api.deerapi.com/pika/pro/generate
内容生成
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.deerapi.com/pika/pro/generate' \
--header 'Authorization: Bearer {{api-key}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"callback_url": "http://baidu.com",
"prompt": "customize your prompt here",
"sfx": false,
"image": "https://db.xiaohuhd.com/1.jpeg",
"style": "Inflate",
"model": 1.5,
"options": {
"frameRate": 20,
"camera": {
"pan": "right",
"tilt": "up",
"rotate": "cw",
"zoom": "in"
},
"parameters": {
"guidanceScale": 16,
"motion": 2,
"negativePrompt": "ugly",
"seed": 144124
}
}
}'
响应示例响应示例
{
"code": 200,
"msg": "成功",
"data": {
"task_id": "64d8d683-56c2-533b-c7c8-b78f1faa3438",
"state": "",
"status": "",
"prompt": "",
"prompt_en": null,
"video_url": null,
"poster": null,
"last_frame": null,
"msg": null,
"point": "",
"refund": "",
"create_time": "",
"update_time": ""
},
"exec_time": 0.713854
}
请求参数
Header 参数
Authorization
string
可选
示例值:
Bearer {{api-key}}
Content-Type
string
可选
示例值:
application/json
Body 参数application/json