> ## Documentation Index
> Fetch the complete documentation index at: https://ailabtools.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Cartoon Yourself

> Cartoon Yourself API turns portraits into cartoon, anime, Pixar, 3D, pencil, and comic-style images with AI.

export const FileStoragePolicy = ({uploadedFiles, responseType}) => {
  const responseFileData = {
    URL: {
      stored: "Yes",
      retention: "24 Hours",
      deletion: "Automatic"
    },
    BASE64: {
      stored: "No",
      retention: "N/A",
      deletion: "Immediate"
    }
  };
  if (!uploadedFiles && !responseType) return null;
  return <div>
      <table>
        <thead>
          <tr>
            <th>Data Type</th>
            <th>Stored</th>
            <th>Retention</th>
            <th>Training</th>
            <th>Deletion</th>
          </tr>
        </thead>
        <tbody>
          {uploadedFiles && <tr>
              <td>Uploaded Files</td>
              <td>No</td>
              <td>N/A</td>
              <td>No</td>
              <td>Immediate</td>
            </tr>}
          {responseType && responseFileData?.[responseType] && <tr>
              <td>Response Files ({responseType})</td>
              <td>{responseFileData[responseType]['stored']}</td>
              <td>{responseFileData[responseType]['retention']}</td>
              <td>No</td>
              <td>{responseFileData[responseType]['deletion']}</td>
            </tr>}
        </tbody>
      </table>

      <Tip>
        For more information, see the{" "}<a href="/docs/file-storage-policy">File Storage Policy</a> and{" "}<a href="https://www.ailabtools.com/privacy-policy" target="_blank">Privacy Policy</a>.
      </Tip>
    </div>;
};

export const BillingInstructions = ({creditsPerRequest = 1}) => {
  const creditUnitPrice = 0.0027;
  const billingTiers = [{
    price: 6,
    credits: 2000,
    costPerCredit: 0.003
  }, {
    price: 30,
    credits: 10000,
    costPerCredit: 0.003
  }, {
    price: 300,
    credits: 110000,
    costPerCredit: 0.0027
  }, {
    price: 1500,
    credits: 550000,
    costPerCredit: 0.0027
  }, {
    price: 2500,
    credits: 1000000,
    costPerCredit: 0.0025
  }];
  const formatCurrency = (value, fractionDigits = 2) => value.toLocaleString("en-US", {
    style: "currency",
    currency: "USD",
    minimumFractionDigits: fractionDigits,
    maximumFractionDigits: fractionDigits
  });
  const formatNumber = (value, fractionDigits = 0) => value.toLocaleString("en-US", {
    minimumFractionDigits: fractionDigits,
    maximumFractionDigits: fractionDigits
  });
  return <>
      <table>
        <thead>
          <tr>
            <th style={{
    textAlign: "right"
  }}>Price</th>
            <th style={{
    textAlign: "right"
  }}>Requests</th>
            <th style={{
    textAlign: "right"
  }}>Cost / Request</th>
          </tr>
        </thead>
        <tbody>
          {billingTiers.map(tier => {
    const requests = tier.credits / creditsPerRequest;
    const costPerRequest = tier.costPerCredit * creditsPerRequest;
    return <tr key={tier.credits}>
                <td style={{
      textAlign: "right"
    }}>{formatCurrency(tier.price)}</td>
                <td style={{
      textAlign: "right"
    }}>{formatNumber(requests)}</td>
                <td style={{
      textAlign: "right"
    }}>
                  {formatCurrency(costPerRequest, 4)}
                </td>
              </tr>;
  })}
        </tbody>
      </table>

      <Tip>
        Each successful API request consumes{" "}<strong>{creditsPerRequest} credits (≈{" "}{formatCurrency(creditUnitPrice * creditsPerRequest, 4)})</strong>. Failed requests are not billed.

        <ul>
          <li>
            View pricing on the{" "}<a href="https://www.ailabtools.com/price?tab=api" target="_blank">pricing page</a>{" "}or manage credits in the{" "}<a href="https://www.ailabtools.com/developer/billing" target="_blank">developer platform</a>.
          </li>
          <li>
            Need more credits or an enterprise plan? Contact{" "}<a href="mailto:business@ailabtools.com">business@ailabtools.com</a>.
          </li>
        </ul>
      </Tip>
    </>;
};

export const ExperienceLinks = ({onlineUrl, apiUrl}) => {
  return <Tip>
      Explore this API through the{" "}<a href={`https://www.ailabtools.com${onlineUrl}`} target="_blank">👉 Online Experience 👈</a>{" "}or integrate it using the{" "}<a href={apiUrl}>👉 Run with API 👈</a>.
    </Tip>;
};

* Using advanced adversarial generative network technology, we can break through the "next generation wall" with one click, retain user features in multiple dimensions to achieve the effect of a thousand faces, and with a variety of comic style image migration, we can generate highly cute comic faces with artistic beauty for users.
* Based on the stylized special effects solution-EffectGAN with small sample generation technology, the intelligent creation team creates a variety of special effects. Among them, 3D effects make the user's image more spatially three-dimensional, and the 3D cartoon style provided this time can generate 3D effects one-to-one.
* Cartoon yourself is mainly focused on transforming a photo or characters in a photo into a cartoon effect. If you want to create a cartoon image based on a photo, you can go to [AI Cartoon Generator](/docs/ai-image/effects/ai-anime-generator).

## Renderings show

<Tabs queryString="tabs-effect">
  <Tab value="full-body-cartoonization" title="Full-Body Cartoonization">
    <div class="cm-border-2-solid-218221225100 cm-border-radius-8 cm-text-align-center">
      <div class="cm-grid-template-columns-3 cm-grid-gap-8 cm-padding-8 cm-border-bottom-2-solid-218221225100">
        <div class="cm-grid-column-2-span-1">
          <img class="cm-w cm-border-radius-8" src="https://ai-resource.ailabtools.com/cartoon-yourself/doc/OriginalImage-2.webp" alt="Original Image" />

          <div class="cm-margin cm-word-break-break-all">Original Image</div>
        </div>
      </div>

      <div class="cm-grid-template-columns-4 cm-grid-gap-8 cm-padding-8">
        <div>
          <img class="cm-w cm-border-radius-8" src="https://ai-resource.ailabtools.com/cartoon-yourself/doc/ResultImage-2-jpcartoon-1.webp" alt="Japanese Manga (I)" />

          <div class="cm-margin cm-word-break-break-all">Japanese Manga (I)</div>
        </div>

        <div>
          <img class="cm-w cm-border-radius-8" src="https://ai-resource.ailabtools.com/cartoon-yourself/doc/ResultImage-2-anime-1.webp" alt="Japanese Manga (II)" />

          <div class="cm-margin cm-word-break-break-all">Japanese Manga (II)</div>
        </div>

        <div>
          <img class="cm-w cm-border-radius-8" src="https://ai-resource.ailabtools.com/cartoon-yourself/doc/ResultImage-2-claborate-1.webp" alt="Chinese fine brushwork painting" />

          <div class="cm-margin cm-word-break-break-all">Chinese fine brushwork painting</div>
        </div>

        <div>
          <img class="cm-w cm-border-radius-8" src="https://ai-resource.ailabtools.com/cartoon-yourself/doc/ResultImage-2-hongkong-1.webp" alt="Hong Kong-style comic style" />

          <div class="cm-margin cm-word-break-break-all">Hong Kong-style comic style</div>
        </div>

        <div>
          <img class="cm-w cm-border-radius-8" src="https://ai-resource.ailabtools.com/cartoon-yourself/doc/ResultImage-2-comic-1.webp" alt="Comic" />

          <div class="cm-margin cm-word-break-break-all">Comic</div>
        </div>

        <div>
          <img class="cm-w cm-border-radius-8" src="https://ai-resource.ailabtools.com/cartoon-yourself/doc/ResultImage-2-animation3d-1.webp" alt="3D Animation" />

          <div class="cm-margin cm-word-break-break-all">3D Animation</div>
        </div>

        <div>
          <img class="cm-w cm-border-radius-8" src="https://ai-resource.ailabtools.com/cartoon-yourself/doc/ResultImage-2-handdrawn-1.webp" alt="hand-painted" />

          <div class="cm-margin cm-word-break-break-all">hand-painted</div>
        </div>

        <div>
          <img class="cm-w cm-border-radius-8" src="https://ai-resource.ailabtools.com/cartoon-yourself/doc/ResultImage-2-sketch-1.webp" alt="Pencil drawing (I)" />

          <div class="cm-margin cm-word-break-break-all">Pencil drawing (I)</div>
        </div>

        <div>
          <img class="cm-w cm-border-radius-8" src="https://ai-resource.ailabtools.com/cartoon-yourself/doc/ResultImage-2-full-1.webp" alt="Pencil drawing (II)" />

          <div class="cm-margin cm-word-break-break-all">Pencil drawing (II)</div>
        </div>

        <div>
          <img class="cm-w cm-border-radius-8" src="https://ai-resource.ailabtools.com/cartoon-yourself/doc/ResultImage-2-artstyle-1.webp" alt="Artistic effects" />

          <div class="cm-margin cm-word-break-break-all">Artistic effects</div>
        </div>

        <div>
          <img class="cm-w cm-border-radius-8" src="https://ai-resource.ailabtools.com/cartoon-yourself/doc/ResultImage-2-classic_cartoon-1.webp" alt="Retro Cartoon" />

          <div class="cm-margin cm-word-break-break-all">Retro Cartoon</div>
        </div>

        <div>
          <img class="cm-w cm-border-radius-8" src="https://ai-resource.ailabtools.com/cartoon-yourself/doc/ResultImage-2-tccartoon-1.webp" alt="Moe Manga" />

          <div class="cm-margin cm-word-break-break-all">Moe Manga</div>
        </div>

        <div>
          <img class="cm-w cm-border-radius-8" src="https://ai-resource.ailabtools.com/cartoon-yourself/doc/ResultImage-2-hkcartoon-1.webp" alt="China Comics" />

          <div class="cm-margin cm-word-break-break-all">China Comics</div>
        </div>
      </div>
    </div>
  </Tab>

  <Tab value="facial-cartoonization" title="Facial Cartoonization">
    <div class="cm-border-2-solid-218221225100 cm-border-radius-8 cm-text-align-center">
      <div class="cm-grid-template-columns-3 cm-grid-gap-8 cm-padding-8 cm-border-bottom-2-solid-218221225100">
        <div class="cm-grid-column-2-span-1">
          <img class="cm-w cm-border-radius-8" src="https://ai-resource.ailabtools.com/cartoon-yourself/doc/OriginalImage-2.webp" alt="Original Image" />

          <div class="cm-margin cm-word-break-break-all">Original Image</div>
        </div>
      </div>

      <div class="cm-grid-template-columns-4 cm-grid-gap-8 cm-padding-8">
        <div>
          <img class="cm-w cm-border-radius-8" src="https://ai-resource.ailabtools.com/cartoon-yourself/doc/ResultImage-2-3d_cartoon-1.webp" alt="3D cartoon" />

          <div class="cm-margin cm-word-break-break-all">3D cartoon</div>
        </div>

        <div>
          <img class="cm-w cm-border-radius-8" src="https://ai-resource.ailabtools.com/cartoon-yourself/doc/ResultImage-2-pixar-1.webp" alt="Pixar" />

          <div class="cm-margin cm-word-break-break-all">Pixar</div>
        </div>

        <div>
          <img class="cm-w cm-border-radius-8" src="https://ai-resource.ailabtools.com/cartoon-yourself/doc/ResultImage-2-pixar_plus-1.webp" alt="Pixar Pro" />

          <div class="cm-margin cm-word-break-break-all">Pixar Pro</div>
        </div>

        <div>
          <img class="cm-w cm-border-radius-8" src="https://ai-resource.ailabtools.com/cartoon-yourself/doc/ResultImage-2-angel-1.webp" alt="Angel" />

          <div class="cm-margin cm-word-break-break-all">Angel</div>
        </div>

        <div>
          <img class="cm-w cm-border-radius-8" src="https://ai-resource.ailabtools.com/cartoon-yourself/doc/ResultImage-2-angel_plus-1.webp" alt="Angel Pro" />

          <div class="cm-margin cm-word-break-break-all">Angel Pro</div>
        </div>

        <div>
          <img class="cm-w cm-border-radius-8" src="https://ai-resource.ailabtools.com/cartoon-yourself/doc/ResultImage-2-demon-1.webp" alt="Demon" />

          <div class="cm-margin cm-word-break-break-all">Demon</div>
        </div>

        <div>
          <img class="cm-w cm-border-radius-8" src="https://ai-resource.ailabtools.com/cartoon-yourself/doc/ResultImage-2-ukiyoe_cartoon-1.webp" alt="Ukiyo-e" />

          <div class="cm-margin cm-word-break-break-all">Ukiyo-e</div>
        </div>

        <div>
          <img class="cm-w cm-border-radius-8" src="https://ai-resource.ailabtools.com/cartoon-yourself/doc/ResultImage-2-amcartoon-1.webp" alt="American Manga" />

          <div class="cm-margin cm-word-break-break-all">American Manga</div>
        </div>

        <div>
          <img class="cm-w cm-border-radius-8" src="https://ai-resource.ailabtools.com/cartoon-yourself/doc/ResultImage-2-3d-1.webp" alt="3D Effects" />

          <div class="cm-margin cm-word-break-break-all">3D Effects</div>
        </div>

        <div>
          <img class="cm-w cm-border-radius-8" src="https://ai-resource.ailabtools.com/cartoon-yourself/doc/ResultImage-2-3d_game-1.webp" alt="3D game effects" />

          <div class="cm-margin cm-word-break-break-all">3D game effects</div>
        </div>
      </div>
    </div>
  </Tab>

  <Tab value="avatar-cartoonization" title="Avatar Cartoonization">
    <div class="cm-border-2-solid-218221225100 cm-border-radius-8 cm-text-align-center">
      <div class="cm-grid-template-columns-3 cm-grid-gap-8 cm-padding-8 cm-border-bottom-2-solid-218221225100">
        <div class="cm-grid-column-2-span-1">
          <img class="cm-w cm-border-radius-8" src="https://ai-resource.ailabtools.com/cartoon-yourself/doc/OriginalImage-2.webp" alt="Original Image" />

          <div class="cm-margin cm-word-break-break-all">Original Image</div>
        </div>
      </div>

      <div class="cm-grid-template-columns-4 cm-grid-gap-8 cm-padding-8">
        <div>
          <img class="cm-w cm-border-radius-8" src="https://ai-resource.ailabtools.com/cartoon-yourself/doc/ResultImage-2-jpcartoon_head-1.webp" alt="Japanese Anime" />

          <div class="cm-margin cm-word-break-break-all">Japanese Anime</div>
        </div>

        <div>
          <img class="cm-w cm-border-radius-8" src="https://ai-resource.ailabtools.com/cartoon-yourself/doc/ResultImage-2-head-1.webp" alt="Pencil drawing (head)" />

          <div class="cm-margin cm-word-break-break-all">Pencil drawing (head)</div>
        </div>
      </div>
    </div>
  </Tab>
</Tabs>

<ExperienceLinks onlineUrl="/face-anime-converter" apiUrl="/docs/ai-portrait/effects/portrait-animation/api" />

## Billing Instructions

<BillingInstructions creditsPerRequest={20} />

## File Storage Policy

<FileStoragePolicy uploadedFiles responseType="URL" />

## Application Scenarios

* **Personalized avatar**: Helps users generate secondary comic images with personality characteristics, which can be used in the avatar scene of Internet applications.
* **Interactive marketing**: festivals, exhibitions, marketing and other activity scenarios to attract users to interact, participate and share.
* **Promotion**: You can add portrait effects to h5 or other forms of communication for product promotion and event promotion.
* **Interactive entertainment**: In short videos, social networking platforms, or integrated into photo album apps, users' selfies or personalized photos are converted into different styles of special effects with one click, attracting users to interact and share.
* **Protecting privacy**: To protect the privacy of the characters in the image, cartoonizing the characters avoids identifying who the original characters are. Preserve the social fun level while avoiding over-entertainment.
* **Social entertainment**: Turn your photos into cartoon characters to create a cute atmosphere and share them with friends with illustrations.

## Featured Advantages

* **Advanced algorithms**: Based on deep learning algorithms, we can intelligently edit and process images containing portrait content, and provide a variety of portrait special effects capabilities to meet various business needs such as Internet entertainment, interactive marketing, and video processing.
* **Abundant pop-up effects**: Based on the integration of image understanding, image processing, image generation and other technologies, it creates a variety of portrait effects capabilities and pop-up effects gameplay to explore the application of solutions in new areas such as data production/aided design/content creation and promote the business upgrade of B-side enterprise customers.
* **Realistic image**: multi-dimensional preservation of user characteristics, defining the two main features of exquisite beauty and extreme likeness of portrait cartoon image.
* **Rich materials**: secondary yuan anime images include portrait Japanese manga style, full-image Japanese manga style, national trendy style, retro manga style, moe manga style, image manga, watercolor and other styles of migration.
* **Continuous update**: algorithm and style continue to iterate, covering more scenes, including but not limited to face, landscape, etc.
* **Accurate portrayal**: Through deep learning algorithm, the five features of human face are accurately restored, and even the hair can be accurately restored.
* **Respect for privacy**: Images uploaded by customers will be deleted within 24 hours, and the service does not keep customer images.
* **Reproduction of character expressions**: Based on deep learning algorithm, the character's gender, expressions and other features are recognized and restored on the cartoon avatar.
* **Full body cartoon**: Compared to face cartoon, it can avoid embarrassing scenes such as laughing.
* **Multi-person mode**: It can handle couple photos, family photos and group type photos.
