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 | Description |
|---|---|---|
| mode | ENUM | Cartoon style mode. Allowed values: stylized, soft, classic, poster. Default: stylized. |
| detail | Integer | Detail level. Minimum: 3, maximum: 11. Default: 7. |
| color_smooth | Integer | Color smoothing level. Minimum: 1, maximum: 12. Default: 7. |
| edge_strength | Number | Edge strength. Minimum: 0, maximum: 1. Default: 0.16. |
Request Body
| Parameter | Type | Description |
|---|---|---|
| file | Binary | 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.



