Face Enhance API

The following code snippet demonstrates the usage of the Face Enhancement API provided by Picsart. This API allows users to enhance facial features in images using a simple HTTP request. By providing the URL of the image and specifying the desired format, you can retrieve an enhanced version of the image with improved facial details.

Enhance the faces in the image

curl -X 'POST' \
  'https://api.picsart.io/tools/1.0/enhance/face' \
  -H 'accept: application/json' \
  -H 'x-picsart-api-key: <API KEY HERE>' \
  -H 'Content-Type: multipart/form-data' \
  -F 'image_url=https://cdn140.picsart.com/21054457501427673826.png' \
  -F 'format=PNG'

To enhance the facial features in an image using the Face Enhancement API, make a POST request to https://api.picsart.io/tools/1.0/enhance/face with the following parameters:

  • accept: Set the value to application/json to indicate the desired response format.
  • x-picsart-api-key: Replace with your actual API Key obtained from Picsart.
  • Content-Type: Set the value to multipart/form-data to indicate the request format.
  • image_url: Provide the URL of the image you want to enhance.
  • format: Specify the desired format for the resulting image, such as PNG.