API reference
cURL
curl --request POST \ --url https://www.ailabapi.com/api/portrait/editing/ai-face-swap \ --header 'Content-Type: multipart/form-data' \ --header 'ailabapi-api-key: <api-key>' \ --form image_target='@example-file' \ --form image_template='@example-file'
{ "request_id": "", "log_id": "", "error_code": 0, "error_code_str": "", "error_msg": "", "error_detail": { "status_code": 200, "code": "", "code_message": "", "message": "" }, "task_type": "async", "task_id": "" }
API Key for authentication
The image to be modified. The face in this image will be replaced.
JPEG
JPG
PNG
The image that provides the face to use.
Success
The response is of type object.
object