Skip to main content
POST
/
utils
/
media
/
images
/
convert
Error
A valid request URL is required to generate request examples
{
  "success": true,
  "data": {
    "url": "<string>",
    "original_format": "<string>",
    "target_format": "<string>",
    "width": 123,
    "height": 123,
    "size_kb": 123,
    "activity_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  }
}

Authorizations

Authorization
string
header
required

Enter token in format (Bearer )

Body

multipart/form-data
format
enum<string>
required

Target format

Available options:
jpg,
png,
webp,
gif,
avif
Example:

"webp"

image
file

The image file

url
string<uri>

Alternative: URL of image

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

90

width
integer
Example:

1920

height
integer
Example:

1080

keep_forever
boolean
Example:

false

Response

200 - application/json

Image converted successfully

success
boolean
Example:

true

data
object