Application Process
To use Portrait Cartoonization API, first open the Ace Data Cloud Console and copy your API Token.
If you are not logged in, you will be redirected to sign in and brought back to this page automatically.
A single API Token works across every service on the platform — no need to subscribe per service. New accounts receive free starter credit; when it runs low you can top up your shared balance in the console.
📘 Full documentation: Portrait Cartoonization API →
Basic Usage
First, understand the basic usage method, which is to input the image link to obtain the processed result image. You need to simply pass animage_url field, with the facial image shown below:


accept: the format of the response you want to receive, filled in asapplication/json, which means JSON format.authorization: the key to call the API, which can be directly selected after application.
image_url: the link to the facial image that needs to be processed.

image_url field, which is the cartoon facial image after transformation. The transformed facial information is shown below:

Error Handling
When calling the API, if an error occurs, the API will return the corresponding error code and message. For example:400 token_mismatched: Bad request, possibly due to missing or invalid parameters.400 api_not_implemented: Bad request, possibly due to missing or invalid parameters.401 invalid_token: Unauthorized, invalid or missing authorization token.429 too_many_requests: Too many requests, you have exceeded the rate limit.500 api_error: Internal server error, something went wrong on the server.

