Skip to main content
POST
/
mj
/
insight-face
/
swap
midjourney (swapface)
curl --request POST \
  --url https://api.example.com/mj/insight-face/swap
Midjourney’s task submission for the swapface API.
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": ""
}'
{
  "error": {
    "message": "Invalid signature",
    "type": "401"
  }
}

Parameters

ParameterTypeRequiredDefaultDescription
sourceBase64string❌ Nodata:image/png;base64,xxx1Sourcebase64 parameter
targetBase64string❌ Nodata:image/png;base64,xxx2Targetbase64 parameter
accountFilterobject❌ No{"instanceId": ""}Accountfilter parameter
notifyHookstring❌ No-Notifyhook parameter
statestring❌ No-State parameter