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
  • Request and Response
  • Rendered images
  • Full-Body Cartoonization
  • Facial Cartoonization
  1. API Product Docs
  2. AILabTools

Cartoon-Yourself

Convert photos into various cartoon styles with our Cartoon Yourself API, featuring advanced 3D game effects and high-quality sketch transformations.

PreviousAILabToolsNextSharpAPI

Last updated 10 months ago

Transform Your Photos with the Cartoon Yourself API

Developer Portal :

Cartoon Yourself API is the ultimate tool for transforming your personal photos into captivating cartoon images, enhanced with advanced artistic effects. By leveraging cutting-edge GAN technology, this API can convert faces and entire images into stunning 3D game styles, adding depth and spatial realism perfect for game expos, cosplay events, and large-scale gaming tournaments.

Key Features

  • Cartoon Transformation: Automatically convert photos into cartoon-style images, preserving unique user-specific features for a personalized result.

  • Headshot Sketch: Detects the head region in an image and generates a high-quality 512x512 pixel sketch, ideal for avatars and artistic portraits.

  • 3D Game Effects: Creates detailed 3D cartoon effects that provide a three-dimensional feel, suitable for promotional activities.

  • EffectGAN Technology: Utilizes sophisticated generative adversarial networks to deliver unique artistic transformations, including Ukiyo-e, Pop Art, Pixar, American comic, angel, and demon styles.

Whether you're looking to create personalized avatars, enhance interactive marketing campaigns, or add artistic flair to digital content, the Cartoon Yourself API offers seamless integration, high performance, and exceptional scalability. Empower your applications with advanced image transformation capabilities, delivering visually appealing and unique cartoon effects tailored to modern digital experiences.

Application Scenarios

  • Protect Privacy: Transforming people into cartoons can help protect their privacy by preventing the identification of individuals in the original images.

  • Social Entertainment: Turn your photos into cartoon characters to create a cute atmosphere and share them with friends.

  • Personalized Avatars: Generate secondary cartoon images with unique personality characteristics for use in avatars across various internet applications.

  • Interactive Marketing: Enhance activity scenarios such as festivals, exhibitions, and marketing promotions, attracting users to interact, participate, and share.

Features and Advantages

  • Reproduce Character Expressions: Based on deep learning algorithms, it recognizes character gender, expressions, and other features, restoring them in cartoon avatars.

  • Full Body Cartoon: Avoid embarrassing scenes with full-body cartoon transformations compared to face-only cartoons.

  • Multi-Person Mode: Capable of handling couple photos, family photos, and group photos.

  • Excellent Algorithm: Based on massive data training and polished through actual business scenarios, ensuring superior results.

  • Realistic Image: Multi-dimensional preservation of user characteristics, defining delicate beauty and extreme beauty in portrait caricature images.

  • Business-Driven: Continually iterates to meet business needs, optimizing the effect continuously.

Unlock the potential of your photos with the Cartoon Yourself API, also known as Toonify API and Cartoonify API, and experience the power of cutting-edge image transformation technology. Enhance your digital content, protect privacy, and engage users like never before. For those looking for an even more accessible solution, explore the Free Toonify API option to start creating stunning cartoon effects at no cost.

If you're also interested in routing solutions, check out the Trueway Routing API, known for being a much more affordable alternative to other mapping APIs.

Categories and Types of Cartoonization

The Cartoon Yourself API offers a variety of cartoonization types, each suited to different artistic needs:

Full-Body Cartoonization

  • Japanese Manga (I): jpcartoon

  • Japanese Manga (II): anime

  • Chinese Fine Brushwork Painting: claborate

  • Hong Kong-Style Comic: hongkong

  • Comic: comic

  • 3D Animation: animation3d

  • Hand-Painted: handdrawn

  • Pencil Drawing (I): sketch

  • Pencil Drawing (II): full

  • Artistic Effects: artstyle

  • Retro Cartoon: classic_cartoon

  • Moe Manga: tccartoon

  • China Comics: hkcartoon

Facial Cartoonization

  • 3D Cartoon: 3d_cartoon

  • Pixar: pixar

  • Pixar Pro: pixar_plus

  • Angel: angel

  • Angel Pro: angel_plus

  • Demon: demon

  • Ukiyo-e: ukiyoe_cartoon

  • American Manga: amcartoon

  • World Famous Paintings: famous

  • 3D Effects: 3d

  • 3D Game Effects: 3d_game

Avatar Cartoonization

  • Popper: bopu_cartoon

  • Western: western

  • Avatar: avatar

  • Japanese Manga (Portrait): jpcartoon_head

  • Pencil Drawing (Head): head

Request and Response

Request

curl -X 'POST' \
  'https://api.magicapi.dev/api/v1/ailabtools/cartoon-yourself/portrait/effects/portrait-animation' \
  -H 'accept: application/json' \
  -H 'x-magicapi-key: API_KEY' \
  -H 'Content-Type: multipart/form-data' \
  -F 'image=@Shahrukh_khan.png;type=image/png' \
  -F 'type=pixar'
const FormData = require('form-data');
const fetch = require('node-fetch');
const formData = new FormData();

formData.append('image', 'null');
formData.append('type', 'pixar');

let url = 'https://api.magicapi.dev/api/v1/ailabtools/cartoon-yourself/portrait/effects/portrait-animation';

let options = {
  method: 'POST',
  headers: {
    'x-magicapi-key': 'SOME_STRING_VALUE',
    'content-type': 'multipart/form-data; boundary=---011000010111000001101001'
  }
};

options.body = formData;

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error('error:' + err));
import http.client

conn = http.client.HTTPSConnection("api.magicapi.dev")

payload = "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"image\"\r\n\r\nnull\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"type\"\r\n\r\npixar\r\n-----011000010111000001101001--\r\n\r\n"

headers = {
    'x-magicapi-key': "SOME_STRING_VALUE",
    'content-type': "multipart/form-data; boundary=---011000010111000001101001"
    }

conn.request("POST", "/api/v1/ailabtools/cartoon-yourself/portrait/effects/portrait-animation", payload, headers)

res = conn.getresponse()
data = res.read()

print(data.decode("utf-8"))
OkHttpClient client = new OkHttpClient();

MediaType mediaType = MediaType.parse("multipart/form-data; boundary=---011000010111000001101001");
RequestBody body = RequestBody.create(mediaType, "-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"image\"\r\n\r\nnull\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"type\"\r\n\r\npixar\r\n-----011000010111000001101001--\r\n\r\n");
Request request = new Request.Builder()
  .url("https://api.magicapi.dev/api/v1/ailabtools/cartoon-yourself/portrait/effects/portrait-animation")
  .post(body)
  .addHeader("x-magicapi-key", "SOME_STRING_VALUE")
  .addHeader("content-type", "multipart/form-data; boundary=---011000010111000001101001")
  .build();

Response response = client.newCall(request).execute();

Response

{
  "data": {
    "image_url": "https://ai-result-001.ailabtools.com/faceBody/generateHumanAnimeStyle/2024-07-12/054013-a2f86213-f590-2a3f-0de2-6e9735ee8bd9-1720762813.png"
  },
  "error_code": 0,
  "error_detail": {
    "status_code": 200,
    "code": "",
    "code_message": "",
    "message": ""
  },
  "log_id": "20240712134009D4D355A1362F35C5D461",
  "request_id": "20240712134009D4D355A1362F35C5D461"
}

Rendered images

Full-Body Cartoonization

Original Image

Result Images

Facial Cartoonization

Original Image

Result Images

Avatar Cartoonization

Original Image

Result Images

Original Image

Japanese Manga (I)

Japanese Manga (II)

Chinese fine brushwork painting

Hong Kong-style comic style

Comic

3D Animation

hand-painted

Pencil drawing (I)

Pencil drawing (II)

Artistic effects

Retro Cartoon

Moe Manga

China Comics

Original Image

3D cartoon

Pixar

Pixar Pro

Angel

Angel Pro

Demon

Ukiyo-e

American Manga

World famous paintings

3D Effects

3D game effects

Original Image

Popper

Western

Avatar

Japanese Manga (portrait)

Pencil drawing (head)

Developer Portal :

https://api.market/store/ailabtools/cartoon-yourself
https://api.market/store/ailabtools/cartoon-yourself