---
title: Rotate Image API
slug: rotate-image-api
url: https://apyhub.com/freedailypro/service/rotate-image-api
provider: FreeDailyPro
tags: [image, rotation, rotate, orientation, png, jpeg, image processing]
auth: api_key
version: 1.0.0
service_type: sync
endpoints: 1
atoms: 10
mcp: true
---

# Rotate Image API

Rotate PNG and JPEG images by 90, 180 or 270 degrees with one API call. Fix camera orientation and standardize uploads up to 15 MB. Try it on ApyHub.

## Endpoints

| Method | URL | Description | Atoms |
| --- | --- | --- | --- |
| POST | `https://api.eu.apyhub.com/freedailypro/rotate-image-api/image-rotate` | What it does Rotates an image by 90, 180 or 270 degrees and returns the rotated image as a file. Yo… | 10 |

## Endpoint reference

### Rotate an image

`POST https://api.eu.apyhub.com/freedailypro/rotate-image-api/image-rotate` · 10 atoms · accepts `multipart/form-data` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `file` | body | string (binary) | yes | The image. Up to 15 MB. |
| `format` | body | string | no | Output format: png or jpeg One of: png, jpeg. Example: `png`. |
| `degrees` | body | integer | yes | Rotation in degrees: 90, 180 or 270 One of: 90, 180, 270. Example: `90`. |

#### Quickstart

Rotate an image by sending the file and rotation degrees as a multipart upload.

```bash
curl -X POST "https://api.eu.apyhub.com/freedailypro/rotate-image-api/image-rotate" \
  -H "apy-token: $APY_TOKEN" \
  -F "file=@/path/to/image.jpg" \
  -F "degrees=90"
```

#### What you'll get back

Returns a binary file in the response body — the rotated image itself.

## About

## What it does
Image Rotation rotates an uploaded image by 90, 180, or 270 degrees and returns the rotated file as binary output.

Send a single image in the `file` field, choose the rotation `degrees`, and optionally set `format` to `png` or `jpeg` for the output. The upload supports images up to 15 MB. The response is the rotated image itself, so you can pass it straight into storage, upload, or a later image pipeline step.

Use Image Rotation when you need to correct camera orientation, standardise user-uploaded media, or prepare assets for a fixed layout. It fits cleanly into workflows where images arrive in inconsistent orientation and need a quick transform before display or processing.

Because the output is binary, this service is best when you want the transformed image back immediately rather than a JSON wrapper around file metadata.

## Usage

Base URL: `https://api.eu.apyhub.com` (default region — see
`GET https://apyhub.com/api/public/regions` for the rest).

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/freedailypro/service/rotate-image-api
