/api/v1/convert/images
Convert or transform an image
Convert images between formats (JPG, PNG, WebP, AVIF, TIFF, GIF, HEIC). Optional resize, crop, rotate, and watermark. Max 200MB per file.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| file | file | Yes | Source image file |
| format | string | Yes | Target format (e.g. png, webp, jpg) |
| quality | number | No | Output quality 1–100 (default 90) |
| width | number | No | Resize width in pixels |
| height | number | No | Resize height in pixels |
| fit | string | No | Resize fit: cover, contain, fill, inside, outside |
| rotate | number | No | Rotation in degrees |
| watermark | file | No | Watermark image overlay |
Content-Type: multipart/form-data · Response: binary
Returns the converted image with Content-Disposition attachment headers.
Example
curl -X POST "https://your-domain.com/api/v1/convert/images" \ -F "file=@photo.jpg" \ -F "format=webp" \ -F "quality=85" \ -o output.webp