Skip to main content
POST
Merge Portraits

Request

  • URL: https://www.ailabapi.com/api/portrait/effects/face-fusion
  • Method: POST
  • Content-Type: multipart/form-data

Image requirements

Headers

Body

Response

Response Field Handling Flow
  1. Handle Public Response Fields Parse and validate the Public Response Fields, checking the status code or response message to ensure the request is successful and error-free.
  2. Handle Business Response Fields If the Public Response Fields are valid and error-free, proceed with processing the business logic in the Business Response Fields.

Public Response Fields

Viewing Public Response Fields and Error Codes

Business Response Fields

Response Example

Authorizations

ailabapi-api-key
string
header
required

API Key for authentication

Body

multipart/form-data
image_target
file

Target image.

image_template
file

Template images.

source_similarity
enum<number>

Face similarity. A lower value produces a result more similar to the template image, while a higher value produces a result more similar to the target image.

Available options:
0,
0.1,
0.2,
0.3,
0.4,
0.5,
0.6,
0.7,
0.8,
0.9,
1

Response

200 - application/json

Success

The response is of type object.