API.Market
Go to API.market
  • Welcome to API.market
  • What are API Products?
  • How to subscribe to a SaaS API Product?
  • Managing Subscriptions
  • Analytics & Logs
  • How can I cancel my Subscription?
  • How do I add payment details?
  • How does API.market charges me?
  • Error Codes
  • Seller Docs
    • API Seller Console
    • What is an API Product?
    • What is a Pricing Plan
    • Importing an API Source
    • Creating a Product using the Wizard
    • Testing Your APIs & Products
    • Analytics & Logs
    • Custom Usage
    • Overriding Custom Usage on Result Retrieval
  • FUNDAMENTALS
    • Convert Postman Collection to OpenAPI Yaml
    • Create OpenAPI spec using ChatGPT
  • About Us
  • API Product Docs
    • MagicAPI
      • Screenshot API
      • Domain Availability Checker API
      • WhoIS API
      • PDF Conversion API
      • Image Upscale API
      • DNS Checker API
      • Ageify API
      • Image Restoration API
      • Toon Me API
      • Coding Assistant
      • 🎭 FaceSwap API: Instantaneous replaces face with one another
      • 🏞️ Image Upload API
      • Deblurer API
      • Hair Changer API
      • 🤳🏻🤖AI Qr Code Generator API
      • Whisper API
      • Image Colorizer API
      • OpenJourney API
      • Object Remover API
      • Image Captioner API
      • Object Detector API
      • NSFW API
      • Crunchbase API
      • Pipfeed's Extract API Developer Documentation
      • Migrating from Capix FaceSwap API to magicapi/faceswap-capix API
    • BridgeML
      • Meta-Llama-3-8B-Instruct
      • Meta-Llama-3-70B-Instruct
      • Mistral-7B-Instruct-v0.1
      • Mixtral-8x22B-Instruct-v0.1
      • Meta-Llama-2-7b
      • Meta-Llama-2-13b
      • Meta-Llama-2-70b
      • Gemma-7b-it
      • NeuralHermes-2.5-Mistral-7B
      • BAAI/bge-large-en-v1.5
      • CodeLlama-70b-Instruct-hf
      • 🤖🧗Text-to-Image API
      • 📝🎧 Text to Audio API
    • Capix AI
      • FaceSwap Image and Video Face Swap API
      • MakeUp
      • Photolab.me
      • AI Picture Colorizer
      • AI Picture Upscaler
      • AI Background Remover
      • Object Remover
      • TTS Universal
      • Home GPT
      • AI & Plagiarism Checker
      • AI Story Generator
      • AI Essay Generator
      • Book Title Generator
    • Trueway
      • ⛕ 🗺️ Trueway Routing API
      • 🌐📍Trueway Geocoding API: Forward and Reverse Geocoding
      • 🛤️ ⏱️Trueway Matrix API: Travel Distance and Time
      • 🏛️ Trueway Places API
    • AILabTools
      • Cartoon-Yourself
    • SharpAPI
      • 📄 AI-Powered Resume/CV Parsing API
      • 🛩️ Airports Database & Flight Duration API
    • Text to Speech
      • Turn your text into Magical-sounding Audio
Powered by GitBook
On this page
  • About
  • Curl Requests and Responses
  • Available Styles
  1. API Product Docs
  2. MagicAPI

Toon Me API

The Toonme API is a powerful tool that transforms ordinary images into fun cartoon-style images with just a few clicks.

About

With its advanced algorithms and cutting-edge technology, the Toonme API can help businesses and individuals add a touch of creativity and playfulness to their digital content effortlessly.

Introducing the Toonme API, a powerful image-processing tool that transforms your photos into cartoon-style illustrations in seconds! With our API, you can easily integrate the Toonme technology into your own software, app, or website and offer your users a fun and unique way to enhance their photos.

Our state-of-the-art algorithm uses advanced machine learning techniques to analyze and identify the key features of your images and then applies a range of cartoon effects to create stunning illustrations that are sure to impress. From simple line drawings to full-color cartoons, the Toonme API offers a wide range of styles and effects to choose from, giving your users the flexibility to create the perfect look for their images.

Our API is incredibly easy to use, with simple and intuitive methods that allow you to quickly integrate our technology into your existing software. Whether you’re building a photo editing app, a social media platform, or a website that allows users to upload and share images, the Toonme API is the perfect tool to add a touch of creativity and fun.

Some of the key features of the Toonme API include:

  • Fast and reliable image processing

  • A wide range of cartoon styles and effects to choose from

  • Simple and intuitive API methods for easy integration

  • Scalable and flexible architecture that can handle large volumes of requests

  • Robust error handling and support for a variety of image formats

  • With the Toonme API, you can give your users a powerful and fun tool to enhance their photos and express their creativity. So why wait? Sign up today and start exploring the possibilities of the Toonme API!

Curl Requests and Responses

Process the image

curl -X 'POST' \
  'https://api.magicapi.dev/api/v1/toonme-api/toonify/toonme/v1/' \
  -H 'accept: application/json' \
  -H 'x-magicapi-key: API_KEY' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -d 'id=EFFECT_ID&image_url=IMAGE_URL'
import requests

headers = {
    'accept': 'application/json',
    'x-magicapi-key': 'API_KEY',
    'Content-Type': 'application/x-www-form-urlencoded',
}

data = {
    'id': 'EFFECT_ID',
    'image_url': 'IMAGE_URL',
}

response = requests.post('https://api.magicapi.dev/api/v1/toonme-api/toonify/toonme/v1/', headers=headers, data=data)
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.magicapi.dev/api/v1/toonme-api/toonify/toonme/v1/');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'accept: application/json',
    'x-magicapi-key: API_KEY',
    'Content-Type: application/x-www-form-urlencoded',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, 'id=EFFECT_ID&image_url=IMAGE_URL');

$response = curl_exec($ch);

curl_close($ch);
import axios from 'axios';

const response = await axios.post(
  'https://api.magicapi.dev/api/v1/toonme-api/toonify/toonme/v1/',
  new URLSearchParams({
    'id': 'EFFECT_ID',
    'image_url': 'IMAGE_URL'
  }),
  {
    headers: {
      'accept': 'application/json',
      'x-magicapi-key': 'API_KEY'
    }
  }
);
fetch('https://api.magicapi.dev/api/v1/toonme-api/toonify/toonme/v1/', {
  method: 'POST',
  headers: {
    'accept': 'application/json',
    'x-magicapi-key': 'API_KEY'
  },
  body: new URLSearchParams({
    'id': 'EFFECT_ID',
    'image_url': 'IMAGE_URL'
  })
});

Response

{
  "image_process_response": {
    "request_id": "81d8eafc-05ad-4af8-b511-c9709c00748c",
    "status": "OK",
    "description": null,
    "err_code": "0"
  }
}

Get Result

curl -X 'POST' \
  'https://api.magicapi.dev/api/v1/toonme-api/toonify/toonme/v1/result/' \
  -H 'accept: application/json' \
  -H 'x-magicapi-key: cltfo5s0b0001l308yrlcifh9' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -d 'request_id=5d5a7286-7c81-4c41-9899-094c3f7af35a'
import requests

headers = {
    'accept': 'application/json',
    'x-magicapi-key': 'cltfo5s0b0001l308yrlcifh9',
    'Content-Type': 'application/x-www-form-urlencoded',
}

data = {
    'request_id': '5d5a7286-7c81-4c41-9899-094c3f7af35a',
}

response = requests.post('https://api.magicapi.dev/api/v1/toonme-api/toonify/toonme/v1/result/', headers=headers, data=data)
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.magicapi.dev/api/v1/toonme-api/toonify/toonme/v1/result/');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    'accept: application/json',
    'x-magicapi-key: cltfo5s0b0001l308yrlcifh9',
    'Content-Type: application/x-www-form-urlencoded',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, 'request_id=5d5a7286-7c81-4c41-9899-094c3f7af35a');

$response = curl_exec($ch);

curl_close($ch);
import axios from 'axios';

const response = await axios.post(
  'https://api.magicapi.dev/api/v1/toonme-api/toonify/toonme/v1/result/',
  new URLSearchParams({
    'request_id': '5d5a7286-7c81-4c41-9899-094c3f7af35a'
  }),
  {
    headers: {
      'accept': 'application/json',
      'x-magicapi-key': 'cltfo5s0b0001l308yrlcifh9'
    }
  }
);
fetch('https://api.magicapi.dev/api/v1/toonme-api/toonify/toonme/v1/result/', {
  method: 'POST',
  headers: {
    'accept': 'application/json',
    'x-magicapi-key': 'cltfo5s0b0001l308yrlcifh9'
  },
  body: new URLSearchParams({
    'request_id': '5d5a7286-7c81-4c41-9899-094c3f7af35a'
  })
});

Response

{
  "image_process_response": {
    "request_id": "5d5a7286-7c81-4c41-9899-094c3f7af35a",
    "status": "OK",
    "duration": "2.585622667s",
    "total_duration": "2.606477093s",
    "result_url": "http://worker-images-8.ws.pho.to/i1/9D87C39C-E9AF-11EE-8875-122AD1B8A069.jpg",
    "masks": {
      "mask": {
        "@index": "1",
        "@name": "body",
        "#text": "http://worker-images-5.ws.pho.to/i2/4771c8fd24621d44a586a0da73284ad51e8c0607_result.png"
      }
    },
    "answers": null
  }
}

Available Styles

You can choose any style by passing "id" in the toonify request.

Image
Filter Id

6472

4511

6611

3690

6632

2275

7088

6032

2257

3858

5076

4652

2218

3086

1715

2351

5058

2341

2169

2254

2116

3616

2260

3694

2122

1067

950

2797

1911

1850

1344

782

1915

7004

3757

1826

1106

952

1061

953

7007

976

1705

3804

2961

1060

1097

2344

2349

2354

1693

1926

1312

1355

1954

1828

1511

2114

1776

2105

1942

1840

1668

949

986

1552

956

1716

1847

1854

2182

1798

1120

1723

1445

1193

1096

1958

2179

2241

1673

2173

1700

2120

770

2246

1772

1036

462

2301

1055

2231

2310

1054

1276

2202

2221

1059

2277

2174

2230

1862

2274

1068

2248

2556

1136

973

779

2684

2237

2352

2667

268

433

2176

3017

2887

1555

8216

2157

2345

2603

1027

3102

2245

1829

1062

2570

3113

1101

2589

1787

2962

3122

3271

2493

2507

2350

3689

2516

3762

2860

3251

2357

3693

1025

2235

4268

607

2228

2289

1695

1992

951

3097

2671

3177

2806

2348

4080

3663

2494

2542

3854

2859

3735

1026

1853

3152

3018

3718

3699

2573

2375

PreviousImage Restoration APINextCoding Assistant

Last updated 11 months ago