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.

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
https://phototoanime1.p.rapidapi.com/cartoonizeTransform a portrait photo into an anime/cartoon style. Choose from 7 styles: anime, 3d, handdrawn, sketch, artstyle, design, illustration.
imagefilerequiredImage file (JPEG, PNG, WebP, BMP, TIFF). Max 10 MB — use with multipart/form-data
image_urlstringrequiredPublic URL of the image to process — use with application/json or application/x-www-form-urlencoded
stylestringCartoon 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.
{
"image_url": "https://images.ai-engine.net/photo-to-anime-ai/uuid.jpg",
"width": 1280,
"height": 960,
"size_bytes": 245678
}Response
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.
Basic
100 requests/mo
- Full API access
- All endpoints
- Standard support
Pro
10,000 requests/mo
- Full API access
- All endpoints
- Standard support
Ultra
50,000 requests/mo
- Full API access
- All endpoints
- Standard support
Mega
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.

Turn Any Photo into Ghibli Art for Free with Python (3 Lines)
Transform your photos into Studio Ghibli style art with 3 lines of Python. No GPU, no model download, no PyTorch. 50 free transformations per month.

How to Build an Anime Filter App with Python and an API
Build an anime and cartoon filter app in Python using a Photo to Anime API. Seven styles, one endpoint, no GPU or ML setup required.

Transform Photos to Anime & Cartoon Styles with an API
Transform photos into anime and cartoon styles with the Photo to Anime API. Supports 7 styles including Anime, 3D, Sketch, and more. Code examples included.
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.