---
title: Convert Image to Cartoon API
slug: cartoonize-image
url: https://apyhub.com/dosvak/service/cartoonize-image
provider: Dosvak LLC
categories: [File Conversion]
tags: [image-to-image, cartoon-effects, png-conversion, photo-stylization, image-transformation]
auth: api_key
---

# Convert Image to Cartoon API

Convert an uploaded photo into a cartoon-style PNG. Control style, detail, smoothing, and edge strength for avatars, graphics, and effects.

## Endpoints

| Method | URL | Description | Atoms |
| --- | --- | --- | --- |
| POST | `https://api.eu.apyhub.com/dosvak/cartoonize-image` | What it does Converts an uploaded image into a cartoon-style PNG. You send the source image file in… | 100 |

## Examples

### Convert an image into a cartoon-style PNG

#### Quickstart

Upload an image to cartoonize it using the default `stylized` mode.

```bash
curl -X POST "https://api.eu.apyhub.com/dosvak/cartoonize-image?mode=stylized&detail=7&color_smooth=7&edge_strength=0.16" \
  -H "apy-token: $APY_TOKEN" \
  -F "file=@/path/to/image.jpg"
```

#### What you'll get back

Returns a binary file (`string` with `format: binary`) as the cartoonized image response.

```text
(binary file)
```

## About

## What it does
Cartoonize Image turns an uploaded image into a cartoon-style PNG. Send a binary image file and get a transformed image back, ready for use in avatars, profile assets, marketing graphics, or playful product mockups.

Use the `mode` query parameter to choose the visual treatment: `stylized`, `soft`, `classic`, or `poster`. Fine-tune the look with `detail`, `color_smooth`, and `edge_strength` to control how much texture is preserved, how flat the colours become, and how bold the outlines appear.

The input accepts a single image file up to 20 MB in the request body. The response is a binary PNG, so it fits cleanly into pipelines that store, forward, or display generated images without extra parsing.

Cartoonize Image is a good fit for apps that generate shareable avatars, e-commerce visuals, or lightweight image effects where you need a consistent cartoon render from user-uploaded photos.

## Usage

Base URL: `https://api.eu.apyhub.com` (default region — see
`GET https://apyhub.com/api/public/regions` for the rest).

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/dosvak/service/cartoonize-image
