Skip to main content
POST
Error

Authorizations

Authorization
string
header
required

Enter token in format (Bearer )

Body

multipart/form-data
image
file

The image file

url
string<uri>

Alternative: URL of image

max_width
integer

Maximum width

Example:

2000

target_format
enum<string>
Available options:
jpg,
png,
webp,
avif
Example:

"webp"

quality
integer
Required range: 1 <= x <= 100
Example:

85

keep_forever
boolean
Example:

false

Response

200 - application/json

Image optimized successfully

success
boolean
Example:

true

data
object