Loading...
ButterflyAPI gives you a full suite of AI capabilities through simple REST endpoints: Text-to-Image, Image-to-Image, Background Remove, Upscale, Watermark, Cartoonize, Face Restore, Video Generation — all with one API key.

One key
Full suite access
Pay as you go
Credits-based
Skip model hosting and GPU ops. Call an endpoint and deliver features.
Works with Node, Python, PHP, Ruby, no-code tools, and anything that can do HTTP.
Chain endpoints: remove background → upscale → watermark → publish.
Designed for apps, platforms, and teams shipping real features at scale.
Most teams don’t need “one model” — they need a workflow. Combine endpoints to build end-to-end features.
Clean, consistent product photos automatically.
Turn photos into stylized art and social-ready assets.
Build prompt-to-content experiences with guardrails and outputs.
The Cartoonize API turns photos into stylized art across multiple looks — perfect for creator tools, profile makers, and playful UX.
Send an image
Upload or provide an image URL in the request.
Choose a style
Pick a look that matches your product’s vibe.
Get the result
Receive a URL or output payload you can display immediately.
curl https://butterflyapi.com/api/v1/run \
-H "Authorization: Bearer sk_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"api": "cartoonize",
"input": {
"image_url": "https://example.com/photo.jpg",
"style": "stylized-3d"
}
}'Offer different looks inside your product — from anime to comic and beyond.
Simple API surface area — easy to plug into existing upload flows.
Build with curl, Node, Python — anything that can make HTTP requests.
One API key gives you access to everything. Pick an endpoint or chain multiple endpoints into a workflow.
4 endpoints
Transform images using AI with text prompts
Transform images using AI with text prompts
Generate images from text descriptions
Generate images from text descriptions
Generate text descriptions from images
Generate text descriptions from images
Convert HTML or raw text to downloadable PDF documents
Convert HTML or raw text to downloadable PDF documents
3 endpoints
Remove backgrounds from images automatically
Remove backgrounds from images automatically
Add watermarks to images
Add watermarks to images
Transform photos into cartoon styles
Transform photos into cartoon styles
3 endpoints
Upscale images up to 4x resolution
Upscale images up to 4x resolution
Enhance image quality and details
Enhance image quality and details
Restore and enhance faces in photos
Restore and enhance faces in photos
2 endpoints
Generate AI videos from images
Generate AI videos from images
Direct the camera. Generate the shot. 720p cinematic video with directable camera motion.
Direct the camera. Generate the shot. 720p cinematic video with directable camera motion.
Add a ready-made AI image studio to your site with a single line of code.
<iframe
src="https://butterflyapi.com/embed/studio?key=YOUR_API_KEY"
width="100%"
height="600"
frameborder="0"
/>Whether you’re building a SaaS feature, a consumer app, or an internal tool — ButterflyAPI helps you ship.
Generate images from prompts and create stylized visual experiences for users.
Background removal, upscaling, and clean product imagery at scale.
Generate short videos from images or prompts for dynamic content.
Add AI features to your app without managing GPUs or training models.
Make one request. Get output. Build from there.
curl https://butterflyapi.com/api/v1/run \
-H "Authorization: Bearer sk_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"api": "text-to-image",
"input": {
"prompt": "a futuristic city at sunset, cinematic, ultra-detailed",
"width": 1024,
"height": 1024
}
}'Get 100 free credits and try the full suite: generate, edit, enhance, and create video — all with one API key.