提交swap_face任务
POST
/mj/insight-face/swap
请求参数
Body 参数application/json
sourceBase64
string
必需
示例值:
data:image/png;base64,xxx1
targetBase64
string
必需
示例值:
data:image/png;base64,xxx2
accountFilter
object
必需
instanceId
string
必需
notifyHook
string
可选
state
string
自定义参数
示例
{
"sourceBase64": "data:image/png;base64,xxx1",
"targetBase64": "data:image/png;base64,xxx2",
"accountFilter": {
"instanceId": ""
},
"notifyHook": "",
"state": ""
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.pro365.top/mj/insight-face/swap' \
--header 'Content-Type: application/json' \
--data-raw '{
"sourceBase64": "data:image/png;base64,xxx1",
"targetBase64": "data:image/png;base64,xxx2",
"accountFilter": {
"instanceId": ""
},
"notifyHook": "",
"state": ""
}'
返回响应
🟢200成功
application/json
Body
code
integer <int32>
可选
示例值:
1
description
string
描述
result
string
任务ID
示例
{
"code": 0,
"description": "",
"result": ""
}
修改于 2024-04-07 04:05:31