Portrait Cartoonization
Updated at:2025-11-03
Overview
Utilizing world-leading generative adversarial networks, along with face detection, hair segmentation, and portrait segmentation, create thousands of customized 2D anime face images for users. Additionally, 2D anime portraits with masks can be generated through parameter settings.
Parameters
Action name: selfie-anime
| Parameters | Value | Description |
|---|---|---|
| t | Either "anime" or "anime-mask". | Specify whether the 2D anime character wears a mask. "Anime" produces an ordinary 2D anime image, while "anime-mask" generates a 2D anime portrait with a mask. This is optional, with "anime" set as the default. |
| m | An integer between 1 and 8 | Applies when the t parameter is set to "anime-mask." The m parameter, an integer from 1 to 8, determines the mask code to be used. If the t parameter is not set to "anime-mask" or the m parameter is null, a 2D anime image without a mask will be generated. |
Example
- Example of the original image:

- Convert to a 2D anime character:

- Convert to a 2D anime character wearing an N95 mask with No. 1:

- Convert to a 2D anime character wearing a common blue mask with No. 2:

- Convert to a 2D anime character wearing a common white mask with No. 3:

- Convert to a 2D anime character wearing a heavy blue mask with No. 4:

- Convert to a 2D anime character wearing a heavy brown mask with No. 5:

- Convert to a 2D anime character wearing a pink smiley face mask with No. 6:

- Convert to a 2D anime character wearing a heavy mask with No. 7:

- Convert to a 2D anime character wearing a pure pink mask with No. 8:

