Our Smart Beauty API utilizes advanced Generative Adversarial Network (GAN) technology to enhance the beauty of faces in images. This powerful API can automatically transform faces to appear more attractive, making subtle yet impactful adjustments. It supports beautification for the largest face in an image and can handle up to 18 faces within a single picture. Ideal for applications in photography, social media, and beauty tech, the Smart Beauty API offers a robust solution for creating stunning, enhanced portraits. Integrate this API into your platform to provide users with state-of-the-art facial enhancement capabilities, delivering natural and visually pleasing results that elevate their photos.
Enhance facial beauty in images using GAN technology with our Smart Beauty API, supporting up to 18 faces per image.
JPEG JPG BMP PNG| Field | Required | Type | Scope | Defaults | Description |
|---|---|---|---|---|---|
image_target |
YES | file |
|||
multi_face |
NO | string |
|
Multiple-face beauty strategy. When set to 1, beauty enhancement is applied to all faces (it is recommended that the number of faces in the image be less than 18, as too many faces may lead to instability). When set to any other value or not specified, only the largest face is processed. |
|
beauty_level |
NO | float |
[0, 1] | 1 |
Beauty level. |
Smart Beauty - Endpoint Features
| Object | Description |
|---|---|
multi_face |
Optional Multiple-face beauty strategy. When set to `1`, beauty enhancement is applied to all faces (it is recommended that the number of faces in the image be less than 18, as too many faces may lead to instability). When set to any other value or not specified, only the largest face is processed. |
beauty_level |
Optional Beauty level. Scope: [0, 1] |
Request Body |
[Required] File Binary |
{"data":{"image":"\/9j\/4AAQSkZJRgABAQAAAQABAAD\/2wBDAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQICAQECAQEBAgICAgICAgICAQICAgICAgICAgL\/2wBDAQEBAQEBAQEBAQECAQEBAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgL\/wAARCADsAMUDASIAAhEBAxEB\/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL\/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZ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f8G+IQCL3..."},"_note":"Response truncated for documentation purposes"}
curl --location 'https://zylalabs.com/api/4445/smart+beauty+api/5458/smart+beauty' \
--header 'Content-Type: application/json' \
--form 'image=@"FILE_PATH"'
| Header | Description |
|---|---|
Authorization
|
[Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed. |
No long-term commitment. Upgrade, downgrade, or cancel anytime.
Our Smart Beauty API utilizes advanced Generative Adversarial Network (GAN) technology to enhance the beauty of faces in images. This powerful API can automatically transform faces to appear more attractive, making subtle yet impactful adjustments. It supports beautification for the largest face in an image and can handle up to 18 faces within a single picture. Ideal for applications in photography, social media, and beauty tech, the Smart Beauty API offers a robust solution for creating stunning, enhanced portraits.
Intelligent beauty: to help cell phone manufacturers, beauty app and other camera class beauty ability, one key intelligent to achieve sharpening skin, skin tone whitening, thin face, five features adjustment, spot and acne treatment. Interactive entertainment: applied to live broadcast, short video, social platforms, easily enhance the user's image.
Outstanding algorithm: Based on massive data training and polishing of actual business scenarios, the effect is outstanding. Rich capability: provide rich editable expression types to meet the needs of various business scenarios. Continuous upgrade: Algorithm engineers continuously upgrade algorithms and service engineers provide reliable support. Business-driven: The algorithm continues to iterate in response to business needs, helping to optimize the effect continuously.
The Smart Beauty API returns an image in Base64 encoding format as part of the response data. This image represents the enhanced version of the input image after applying beauty adjustments.
The key fields in the response data include `request_id`, `log_id`, `error_code`, `error_msg`, and `data`. The `data` field contains the enhanced image under the `image` subfield.
The response data is structured as a JSON object. It includes public parameters for request tracking and error handling, along with a `data` object that contains the enhanced image.
The parameters for the Smart Beauty endpoint include `image_target` (required), `multi_face` (optional), and `beauty_level` (optional). Users can customize the beautification process by adjusting these parameters.
Users can customize their requests by specifying the `multi_face` parameter to enhance multiple faces or the `beauty_level` parameter to adjust the intensity of beautification, ranging from 0 to 1.
The Smart Beauty API provides information on the enhanced image, including its Base64 representation. It also returns metadata such as error codes and messages for troubleshooting.
Users can decode the Base64 image string from the `data.image` field to display or save the enhanced image. They can also check the `error_code` and `error_msg` for any issues during processing.
Typical use cases include enhancing selfies for social media, improving images in beauty apps, and providing real-time beautification in live broadcasts or video calls.
Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.
Service Level:
98%
Response Time:
0ms
Service Level:
100%
Response Time:
0ms
Service Level:
100%
Response Time:
0ms
Service Level:
100%
Response Time:
924ms
Service Level:
100%
Response Time:
800ms
Service Level:
100%
Response Time:
280ms
Service Level:
100%
Response Time:
1,127ms
Service Level:
100%
Response Time:
465ms
Service Level:
100%
Response Time:
319ms
Service Level:
100%
Response Time:
0ms
Service Level:
100%
Response Time:
2,317ms
Service Level:
100%
Response Time:
1,259ms
Service Level:
100%
Response Time:
5,255ms
Service Level:
100%
Response Time:
1,827ms
Service Level:
100%
Response Time:
1,793ms
Service Level:
100%
Response Time:
353ms
Service Level:
100%
Response Time:
1,209ms
Service Level:
100%
Response Time:
198ms
Service Level:
100%
Response Time:
8,561ms
Service Level:
100%
Response Time:
1,251ms