Advanced Toon Me API

Advanced Image Processing APIs

URL: https://toonme-api.magicapi.com/product/group/clrsdohhu0004ju09h58ld00o

Toonify API (/toonify)

Convert any image into a cartoon character. Powered by advanced Deep Neural Net models that apply advanced techniques to convert an image.

Each image looks as if an expert graphic designer created it.

To toonify an image, simply pass the URL of that image in the request:

Request:

curl -X 'POST' \
  'https://api.magicapi.dev/api/v1/toonme-api/advanced-image-processing/toonify' \
  -H 'accept: application/json' \
  -H 'x-magicapi-key: your-api-key' \
  -H 'Content-Type: application/json' \
  -d '{
  "url": "https://casediy.s3.us-west-1.amazonaws.com/seller/1/user/2024-01-22/mr2tJnwA42ky3XXN9xEp1B1XVoxqmRMXbVcjey62hxKB73h3q8A3bkZExnxJxcjk.png"
}'

Response:

The request will return a request Id. The image processing may take around 15 seconds.

{
  "request_id": "kbpqettbaukkf2dsggn7ctlyru"
}

To get the processed image, you need to call the "predictions" API.

Request:

curl -X 'GET' \
  'https://api.magicapi.dev/api/v1/toonme-api/advanced-image-processing/predictions/kbpqettbaukkf2dsggn7ctlyru' \
  -H 'accept: application/json' \
  -H 'x-magicapi-key: your-api-key'

Response:

{
  "status": "succeeded",
  "image_url": "https://replicate.delivery/pbxt/QLOXVNw5mr6FIFm8ulQs6Jfe64tufOgKi2VVDmJencrcvRfRC/output.png"
}

Example Input Image:

Toonified Image:

Example 2:

Toonified Image:

Background Removal API

This API used an advanced neural net model to remove background from any image.

Request:

curl -X 'POST' \
  'https://api.magicapi.dev/api/v1/toonme-api/advanced-image-processing/remove-background' \
  -H 'accept: application/json' \
  -H 'x-magicapi-key: your-api-key' \
  -H 'Content-Type: application/json' \
  -d '{
  "url": "https://media.gq-magazine.co.uk/photos/5d139edc073ae67dd58adfae/master/pass/Sloane-Street-GQ-13Apr_getty_b.jpg"
}'

Response:

{
  "request_id": "zalw34lb3v6kstveqi7suhmeym"
}

To get the processed image, you need to call the "predictions" API.

Request:

curl -X 'GET' \
  'https://api.magicapi.dev/api/v1/toonme-api/advanced-image-processing/predictions/zalw34lb3v6kstveqi7suhmeym' \
  -H 'accept: application/json' \
  -H 'x-magicapi-key: your-api-key'

Response:

{
  "status": "succeeded",
  "image_url": "https://replicate.delivery/pbxt/QLOXVNw5mr6FIFm8ulQs6Jfe64tufOgKi2VVDmJencrcvRfRC/output.png"
}

Example

Background Removed Image:

Last updated