- 账户权益管理API
- 短视频离线合成API
- 调用须知
- 常见问题
- 流式TTS-音色需报备
- 短视频作品合成、编辑和查询
- 音频作品合成、编辑和查询
- 数字人和音色模型
- 素材准备和编辑
- 直播OpenApi
- 数字人互动
定制
POST
/openApiDigitalPerson/customer/customizeLiveModel
请求参数
Header 参数
authorization
string
必需
示例值:
{{auth|md5}}
req_from
string
必需
示例值:
C
timestamp
integer
时间戳
示例值:
{{timestamp}}
app_id
string
必需
示例值:
{{appId}}
account
string
可选
示例值:
19999999999
Body 参数application/json
name
string
模特名称
assetId
integer
可选
reviewVideo
string
必需
trainVideo
string
必需
avatar
string
可选
squareAvatar
string
方图,展示的方图
description
string
数字人描述
isMatting
boolean
数字人是否需要抠图
assetVersion
integer
必需
platform
integer
必需
示例
{
"name": "voluptate",
"videoAddress": "FileUpload/0/UID_81/Video/10月31日.mp4",
"auditVideoAddress": "FileUpload/0/UID_1/Video/DigitalPersonCustomizedAudit/抖音视频_1685498839576.mp4",
"isMatting": true,
"assetVersion": 3,
"platform": 1,
"description": "qui reprehenderit"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/openApiDigitalPerson/customer/customizeLiveModel' \
--header 'authorization: {{auth|md5}}' \
--header 'req_from: C' \
--header 'timestamp: {{timestamp}}' \
--header 'app_id: {{appId}}' \
--header 'account: 19999999999' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "voluptate",
"videoAddress": "FileUpload/0/UID_81/Video/10月31日.mp4",
"auditVideoAddress": "FileUpload/0/UID_1/Video/DigitalPersonCustomizedAudit/抖音视频_1685498839576.mp4",
"isMatting": true,
"assetVersion": 3,
"platform": 1,
"description": "qui reprehenderit"
}'
返回响应
🟢200成功
application/json
Body
com.yiwise.base.model.bean.ResultModel<java.lang.Long>
code
integer
可选
默认值:
CommonErrorCode.SUCCESS.getCode()
data
integer
可选
requestId
string
请求唯一标记
resultMsg
string
提示信息
默认值:
CommonErrorCode.SUCCESS.getDesc()
host
string
业务主机名
默认值:
getHostName()
errorStackTrace
string
异常堆栈
示例
{
"code": 0,
"data": 0,
"requestId": "",
"resultMsg": "",
"host": "",
"errorStackTrace": ""
}
修改于 2025-01-09 02:50:59