Skip to main content
POST
Error

Authorizations

Authorization
string
header
required

Enter token in format (Bearer )

Body

multipart/form-data
width
integer
required

Crop width in pixels

Example:

800

height
integer
required

Crop height in pixels

Example:

600

image
file

The image file

url
string<uri>

Alternative: URL of image

position
enum<string>
Available options:
center,
top,
bottom,
left,
right,
top-left,
top-right,
bottom-left,
bottom-right
Example:

"center"

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

"webp"

keep_forever
boolean
Example:

false

Response

200 - application/json

Image cropped successfully

success
boolean
Example:

true

data
object