About this endpoint
What it does
Converts an uploaded image file to a different format and returns the converted image as binary data.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| file | String | Yes | Image file to convert. Max 10 MB and 40 megapixels. Supported input formats: JPEG, PNG, WebP, AVIF, TIFF, or GIF. |
| to | ENUM | Yes | Output format. Allowed values: jpg, png, webp, avif. |
| strip | Boolean | No | Removes EXIF, XMP, and IPTC metadata such as GPS location. Default: false. |
| quality | Integer | No | Output quality from 1 to 100. Applies to jpg, webp, and avif. Default: 85. |
Response
Returns a binary file stream containing the converted image.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| binary | String | Yes | Converted image file in binary format. |



