About this endpoint
What it does
Converts an uploaded image into a cartoon-style PNG. You send the source image file in the request body and can tune the cartoonization with query parameters; the response is the generated PNG as binary data.
Query Parameter(s)
| Attribute | Type | Mandatory | Description |
|---|---|---|---|
| mode | ENUM | No | Cartoon style mode. Allowed values: stylized, soft, classic, poster. Default: stylized. |
| detail | Integer | No | Detail level. Minimum: 3, maximum: 11. Default: 7. |
| color_smooth | Integer | No | Color smoothing level. Minimum: 1, maximum: 12. Default: 7. |
| edge_strength | Number | No | Edge strength. Minimum: 0, maximum: 1. Default: 0.16. |
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| file | String | Yes | Image file. Binary file upload. Maximum size: 20 MB. |
Response
Returns binary data: the generated PNG image. The output schema is a binary string, so there is no JSON wrapper or response field structure to parse.