Convert Your Image
Upload an image and convert it to WebP format with optional resizing
API Documentation
Learn how to integrate the Image to WebP Converter API into your application
Endpoint
POST https://webp.abrir.xyz/api/convert-image
Optional: Add format=avif parameter (default: WebP)
Usage Examples
📁 File Upload
curl -X POST \
https://webp.abrir.xyz/api/convert-image \
-F "
[email protected]" \
-F "format=webp" \
-o result.webp
🔗 From URL
curl -X POST \
https://webp.abrir.xyz/api/convert-image \
-H "Content-Type: application/json" \
-d '{"imageUrl":"...","format":"webp"}' \
-o result.webp
📊 Base64 Data
curl -X POST \
https://webp.abrir.xyz/api/convert-image \
-H "Content-Type: application/json" \
-d '{"imageBase64":"...","format":"webp"}' \
-o result.webp