Skip to content
Browse all functions

Rotate Image

images/rotateimage

rotateimage (Rotate Image) is a 1001fx API function in the group Images: POST https://api.1001fx.com/images/rotateimage, 3 credits per call. It works as a ready-made module in Make or as a plain HTTP call.

3 credits per callHTTP APIMake

Rotates an image clockwise by any angle (90, 180, 270 or free). With free angles the canvas grows and the corners are filled with the background color (transparent for PNG).

Endpoint

POSThttps://api.1001fx.com/images/rotateimage
Header
X-API-KEY: YOURSECRETAPIKEY How to
Content type
multipart/form-data

Parameters

  • filefileoptional

    The image (PNG, JPEG, BMP, TIFF, GIF). Either file or fileUrl.

  • fileUrlstringoptional

    Public URL of the image. Either file or fileUrl.

    Example:
    https://api.1001fx.com/testdata/image.png
  • anglenumberrequired

    Degrees clockwise, e.g. 90.

    Example:
    90
  • backgroundstringoptional

    Fill color for free angles, e.g. #ffffff; default transparent.

  • outputFormatenumoptional

    Format of the result; default: same as the input.

    Values:
    png
    jpeg
    bmp
    tiff
    gif

Examples

Rotate Image

Rotate Image

Input

Expects multipart/form-data or a json body
{
  "fileUrl": "https://api.1001fx.com/testdata/image.png",
  "angle": 90
}

Output · HTTP 200

Response
{
  "statusCode": 200
}
Show curl command
curl -X POST 'https://api.1001fx.com/images/rotateimage' \
  -H 'X-API-KEY: YOURSECRETAPIKEY'

Try rotateimage now

Run it in your browser or create a free account and get 100 credits every month.

Changelog

  • 1.0.001.11.2026created