POST /mj/insight-face/swap
Method: POSTEndpoint: /mj/insight-face/swap
Base64 source image for the face
Request Parameters
Header Parameters
text
Authorization
string
Optional
Default Value:
Bearer {{YOUR_API_KEY}}Body Parameters application/json
text
sourceBase64
string
Required
Base64 source image for the face
Example:
data:image/png;base64,xxx1
targetBase64
string
Required
// provider-specific example normalized for English documentation
Example:
data:image/png;base64,xxx2
accountFilter
object
(Filter)
Filter
Optional
instanceId
string
Account instance ID
Optional
notifyHook
string
Optional
Callback URL. If empty, the global notifyHook is used.
state
string
Custom Parameters
Optional
Example
{
"sourceBase64"
:
"data:image/png;base64,xxx1"
,
"targetBase64"
:
"data:image/png;base64,xxx2"
,
"accountFilter"
:
{
"instanceId"
:
"string"
}
,
"notifyHook"
:
"string"
,
"state"
:
"string"
}Example Request
Shell
bash
curl --location --request POST '/mj/insight-face/swap' \
--header 'Authorization: Bearer {{YOUR_API_KEY}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"sourceBase64": "data:image/png;base64,xxx1",
"targetBase64": "data:image/png;base64,xxx2",
"accountFilter": {
"instanceId": "string"
},
"notifyHook": "string",
"state": "string"
}'Response
🟢 200 OK
Content Type: application/json
Response Schema
text
code
integer
<int32>
Optional
description
string
Optional
result
string
OptionalExample
json
{
"code": 0,
"description": "string",
"result": "string"
}