Face Enhance API
The following code snippet demonstrates the usage of the Face Enhancement API.
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
Here, we're using cURL with the command line interface as an example. However, it's possible to generate similar code that fits almost any programming language and the most widely-used frameworks, all based on your specific parameters.
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.
To learn all the details, options, parameters on how to use the service at its full capacity, visit Face Enhance API documentation.
Updated 29 days ago