Rotate an image
POST /v1/process/rotate
POST
/v1/process/rotate
Rotate an image by an arbitrary angle. When expand is true (default), the canvas grows to fit the full rotated image. Exposed areas are filled with fill_color.
This is a free operation — no credits charged.
Authorizations
Section titled “Authorizations ”Request Body
Section titled “Request Body ”object
angle
required
Rotation angle in degrees (-360 to 360). Positive = counter-clockwise.
number format: double
expand
Expand canvas to fit rotated image (default true).
null | boolean
fill_color
Hex color for exposed areas (default #FFFFFF).
null | string
input_image_url
required
HTTPS URL of the image to rotate.
string
Responses
Section titled “ Responses ”OK
object
content_type
MIME type of the output image.
string
expires_at
ISO 8601 expiry time of the signed URL.
string
image_url
Signed URL of the processed image. Expires in 1 hour.
string
operation
Processing operation performed.
string
Bad Request
object
details
error
string
message
string
request_id
string
Unauthorized
object
details
error
string
message
string
request_id
string
Payment Required
object
details
error
string
message
string
request_id
string
Forbidden
object
details
error
string
message
string
request_id
string
Not Found
object
details
error
string
message
string
request_id
string
Conflict
object
details
error
string
message
string
request_id
string
Unprocessable Entity
object
details
error
string
message
string
request_id
string
Too Many Requests
object
details
error
string
message
string
request_id
string
Unavailable For Legal Reasons
object
details
error
string
message
string
request_id
string
Internal Server Error
object
details
error
string
message
string
request_id
string
Bad Gateway
object
details
error
string
message
string
request_id
string
Service Unavailable
object
details
error
string
message
string
request_id
string