數字人短視頻生成
开发中
POST
http://112.124.20.250:8922/ava/video
请求参数
Body 参数application/json
notifyHook
string
回调地址
flagHd
integer
是否合成高清0普通1高清
audioUrl
string
音频
videoUrl
string
视频
background
string
背景
bboxShift
integer
口型大小
subtitle
integer
视频是否加字幕0不加1加
示例
{
"notifyHook": "",
"flagHd": 0,
"audioUrl": "https://ant-aiet.oss-cn-hangzhou.aliyuncs.com/wds.wav",
"videoUrl": "https://ant-aiet.oss-cn-hangzhou.aliyuncs.com/xzr480.mp4",
"background": "https://ant-wh.oss-accelerate.aliyuncs.com/5a43da13-30b8-4e52-a9c3-6747303a4c09.png",
"bboxShift": 0,
"subtitle": 1
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://112.124.20.250:8922/ava/video' \
--header 'Content-Type: application/json' \
--data-raw '{
"notifyHook": "",
"flagHd": 0,
"audioUrl": "https://ant-aiet.oss-cn-hangzhou.aliyuncs.com/wds.wav",
"videoUrl": "https://ant-aiet.oss-cn-hangzhou.aliyuncs.com/xzr480.mp4",
"background": "https://ant-wh.oss-accelerate.aliyuncs.com/5a43da13-30b8-4e52-a9c3-6747303a4c09.png",
"bboxShift": 0,
"subtitle" :1
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
data
string
必需
message
string
必需
示例
{
"code": 200,
"data": "20bb6a18-d5ad-4c71-85de-8421a8484e24",
"message": "success"
}
🟢200回调参数
修改于 2024-10-28 09:40:50