Style TransferFree tier available

Photo to Anime API — Transform Photos into Cartoon Art

Convert photos into anime, cartoon, and artistic styles with seven unique styles: Anime, 3D, Hand-drawn, Sketch, Art Style, Design, and Illustration. Upload an image or pass a URL and receive a stylized version instantly.

See It in Action

Real examples generated by the API. See the quality for yourself.

7 Cartoon StylesAPI Output
7 Cartoon Styles

Original photo transformed into 7 unique styles: Anime, 3D, Hand-drawn, Sketch, Art Style, Design, and Illustration

Features

7 Unique Styles

Choose from Anime, 3D, Hand-drawn, Sketch, Art Style, Design, and Illustration — each with a distinct artistic look.

Face-Aware Processing

AI detects faces for high-quality head stylization with seamless blending into the background.

Fast Processing

Get cartoon-styled results in 2-3 seconds with our optimized cloud inference pipeline.

Flexible Input

Upload a file via multipart, pass an image URL via JSON or form-encoded — all work seamlessly.

Full Image Stylization

Both face and background are cartoonized for a cohesive, professional result.

Production Ready

Handles images up to 10 MB, supports JPEG, PNG, WebP, and more. Output delivered via CloudFront CDN.

API Reference

1 endpoint, simple integration. Here's everything you need.

Supported Content Types

multipart/form-dataapplication/jsonapplication/x-www-form-urlencoded
POSThttps://phototoanime1.p.rapidapi.com/cartoonize

Transform a portrait photo into an anime/cartoon style. Choose from 7 styles: anime, 3d, handdrawn, sketch, artstyle, design, illustration.

imagefilerequired

Image file (JPEG, PNG, WebP, BMP, TIFF). Max 10 MB — use with multipart/form-data

image_urlstringrequired

Public URL of the image to process — use with application/json or application/x-www-form-urlencoded

stylestring

Cartoon style to apply: "anime", "3d", "handdrawn", "sketch", "artstyle", "design", or "illustration". Defaults to "anime".

Send either image (file upload) or image_url (JSON/form-encoded), not both.

Response Schema
{
  "image_url": "https://images.ai-engine.net/photo-to-anime-ai/uuid.jpg",
  "width": 1280,
  "height": 960,
  "size_bytes": 245678
}

Response

200

Returns JSON with a public URL to the processed JPEG image, along with width, height, and file size. The URL expires after 24 hours.

Quick Start

Copy-paste code to get started in seconds. Replace YOUR_API_KEY with your RapidAPI key.

# File upload with style
curl -X POST "https://phototoanime1.p.rapidapi.com/cartoonize" \
  -H "x-rapidapi-key: YOUR_API_KEY" \
  -H "x-rapidapi-host: phototoanime1.p.rapidapi.com" \
  -F "image=@photo.jpg" \
  -F "style=anime"

# JSON with image URL
curl -X POST "https://phototoanime1.p.rapidapi.com/cartoonize" \
  -H "x-rapidapi-key: YOUR_API_KEY" \
  -H "x-rapidapi-host: phototoanime1.p.rapidapi.com" \
  -H "Content-Type: application/json" \
  -d '{"image_url": "https://example.com/photo.jpg", "style": "3d"}'

Pricing

Start free, scale as you grow. All plans include full API access with no credit card required for the free tier.

Free

Basic

$0Free

100 requests/mo

  • Full API access
  • All endpoints
  • Standard support

Pro

$12.99/mo

10,000 requests/mo

  • Full API access
  • All endpoints
  • Standard support
Recommended

Ultra

$49.99/mo

50,000 requests/mo

  • Full API access
  • All endpoints
  • Standard support

Mega

$159.99/mo

200,000 requests/mo

  • Full API access
  • All endpoints
  • Standard support

Frequently Asked Questions

What cartoon styles does the photo to anime API offer?
The photo to anime API offers seven unique styles: Anime, 3D, Hand-drawn, Sketch, Art Style, Design, and Illustration. Each style produces a distinct artistic look, and you can specify your preferred style with a single parameter in the API request.
How does the AI cartoon filter handle faces and backgrounds?
The API uses face-aware processing to detect faces and apply high-quality head stylization with seamless blending into the background. Both the face and background are cartoonized together for a cohesive, professional-looking result in 2-3 seconds.
Can I convert photos to anime style programmatically at scale?
Yes. The photo to anime API is a REST endpoint that accepts image files or public URLs and returns a CDN link to the stylized result. It supports JPEG, PNG, WebP, BMP, and TIFF up to 10 MB, making it easy to integrate into apps, social media tools, or batch processing workflows.

Tutorials & Guides

Learn how to integrate this API with step-by-step tutorials and real-world use cases.

Start Using Photo to Anime Today

Sign up on RapidAPI to get your API key. The free tier includes generous monthly requests — no credit card required.