Developer APIs
AI APIs Built for
Developers
Simple REST APIs for image generation, video creation, and document processing. The same powerful AI tools, ready for your code.
Simple Integration
Get started in minutes with our REST API. Send a request, get a response. No complex setup required.
- Simple REST API with JSON payloads
- Predictable request/response patterns
- Pay-per-use pricing with credits
- Full documentation and examples
Example: Cartoonize Image
curl https://butterflyapi.com/api/v1/run \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"api": "cartoon",
"input": {
"image_url": "https://example.com/photo.jpg",
"style": "anime"
}
}'Image APIs
5 credits
Image to Image
Transform images using AI with text prompts
View API
3 credits
Text to Image
Generate images from text descriptions
View API
2 credits
Background Remove
Remove backgrounds from images automatically
View API
4 credits
Image Upscale
Upscale images up to 4x resolution
View API
3 credits
Image Enhance
Enhance image quality and details
View API
3 credits
Face Restore
Restore and enhance faces in photos
View API
1 credits
Watermark
Add watermarks to images
View API
6 credits
Cartoonize
Transform photos into cartoon styles
View API