Loading...
Add standout image and document tools to your site or app without building infrastructure. Use our REST APIs or embed a ready-made Studio. Great for no-code platforms, Shopify stores, SaaS products, and developers.

Use the APIs from any platform that can make HTTP requests, or embed the Studio with HTML. Great for website builders, Shopify stores, internal tools, automations, and production SaaS.
Connect from no-code tools, low-code builders, backend services, automations, or custom code.
Predictable request/response and easy auth. Great for workflows like upload → process → display.
Drop a ready-made UI into your site with HTML — perfect for quick launches and customer-facing tools.
Turn any photo into cartoon-style art. Choose from multiple styles and deliver instant results for profiles, storefronts, and customer-facing tools.
Popular looks like 3D, anime, comic, and watercolor—great for product workflows and user-generated content.
Ideal for interactive UIs—generate a preview, show it instantly, and keep users engaged.
One endpoint. Upload image, pick style, get output. Works from no-code tools or custom code.
Render HTML like a browser for accurate styling and layout—perfect for invoices, reports, certificates, and printable documents.
curl https://butterflyapi.com/api/v1/run \
-H "Authorization: Bearer sk_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"api": "html-to-pdf",
"input": {
"html": "<html><body><h1>Invoice #123</h1></body></html>",
"options": { "format": "A4", "printBackground": true }
}
}'curl https://butterflyapi.com/api/v1/run \
-H "Authorization: Bearer sk_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"api": "watermark",
"input": {
"image_url": "https://example.com/photo.jpg",
"watermark_url": "https://example.com/logo.png",
"watermark_position": "bottom-right",
"watermark_opacity": 0.8,
"watermark_scale": 0.2
}
}'Add a logo watermark with configurable placement, size, and opacity—great for marketplaces, previews, and branded assets.
State-of-the-art AI models accessible via simple REST endpoints
Transform images using AI with text prompts
Generate images from text descriptions
Remove backgrounds from images automatically
Upscale images up to 4x resolution
Enhance image quality and details
Restore and enhance faces in photos
Add watermarks to images
Transform photos into cartoon styles
Generate text descriptions from images
Generate AI videos from images
Direct the camera. Generate the shot. 720p cinematic video with directable camera motion.
Convert HTML or raw text to downloadable PDF documents
Add AI image tools directly to your website with a single line of HTML.
<iframe
src="https://butterflyapi.com/embed/studio?key=YOUR_API_KEY"
width="100%"
height="600"
frameborder="0"
/>From image transformation to document workflows—add features customers actually use.
Convert user photos into stylized art for profiles, avatars, and shareable content.
Create branded visuals, watermarked previews, and product-friendly images.
Generate invoices, receipts, certificates, and reports from HTML templates.
Add AI features to your platform without training models or managing infrastructure.
// Cartoonize an image
curl https://butterflyapi.com/api/v1/run \
-H "Authorization: Bearer sk_your_api_key" \
-H "Content-Type: application/json" \
-d '{
"api": "cartoon",
"input": {
"image_url": "https://example.com/photo.jpg",
"style": "anime"
}
}'Get 100 free credits to experiment with Cartoonize, HTML to PDF, Watermark, and more. No credit card required.
Get Free API Key