Skip to main content
POST
/
mj
/
insight-face
/
swap
SwapFace
curl --request POST \
  --url https://gptproto.com/mj/insight-face/swap \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '{
  "sourceBase64": "<string>",
  "targetBase64": "<string>",
  "accountFilter": {},
  "notifyHook": "<string>",
  "state": "<string>"
}'
{
  "error": {
    "message": "Invalid request parameters",
    "type": "invalid_request_error",
    "code": "invalid_parameters"
  }
}

Overview

Because of policy reasons, it needs to be applied separately

Authentication

This endpoint requires authentication using a Bearer token.
Authorization
string
required
Your API key in the format: Bearer YOUR_API_KEY

Request Body

sourceBase64
string
Sourcebase64 parameter
targetBase64
string
Targetbase64 parameter
accountFilter
object
Accountfilter parameter
notifyHook
string
Notifyhook parameter
state
string
State parameter

Request Example

curl -X POST "https://gptproto.com/mj/insight-face/swap" \
  -H "Authorization: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "sourceBase64": "data:image/png;base64,xxx1",
  "targetBase64": "data:image/png;base64,xxx2",
  "accountFilter": {
    "instanceId": ""
  },
  "notifyHook": "",
  "state": ""
}'

Response

Success
200
Successful response
{
  "status": "success"
}

Error Responses

{
  "error": {
    "message": "Invalid request parameters",
    "type": "invalid_request_error",
    "code": "invalid_parameters"
  }
}