About this endpoint
What it does
Converts an uploaded image file to PNG or JPEG and returns the converted image as binary data. The request body includes the source file and output format, with optional JPEG-specific settings.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| file | String | Yes | The image file to convert. Binary upload. Up to 15 MB. |
| format | ENUM | Yes | Output format. Allowed values: png, jpeg. |
| quality | Number | No | JPEG quality, from 0 to 1. |
| backgroundColor | String | No | Fill color for transparent areas when converting to JPEG, for example #ffffff. |
Response
Returns a binary file containing the converted image.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| data | String | Yes | Binary response body containing the converted image file. |



