Skip to main content

Merge face


Merge face

Base URLs:

  • https://api.novita.ai

POST Merge face

POST /v3/merge-face

This feature helps blend the details of two faces.

Request header parameters

  • AuthorizationstringRequired

    In Bearer {{Key}} format.

  • Content-TypestringRequired

    Only application/json supported

Request Body parameters

  • face_image_filestringRequired

    The base64 of face image, with a maximum resolution of 2048 * 2048 and a max file size of 30 Mb.

  • image_filestringRequired

    The base64 of original image, with a maximum resolution of 2048 * 2048 and a max file size of 30 Mb.

  • extraobject

    Extra info.

    Show properties

Responses

  • image_filestring

  • image_typestring

Example

This feature helps blend the details of two faces.

Please set the Content-Type header to application/json in your HTTP request to indicate that you are sending JSON data. Currently, only JSON format is supported.

Try it in playgroundopen in new window.

Request:

curl --location --request POST 'https://api.novita.ai/v3/merge-face' \
--header 'Authorization: Bearer {{key}}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "face_image_file": "{{Base64 encoded image}}",
    "image_file":"{{Base64 encoded image}}"
}'

HTTP status codes in the 2xx range indicate that the request has been successfully accepted, code 400 means requst params error, while status codes in the 5xx range indicate internal server errors.

You can get images url in image_file of response in base64 format.

Response:

{
    "image_file": "{{Base64 encoded image}}"
    "image_type": "png"
}
novita.ai API
novita.ai API
novita.ai API