apyhub
Back

Flip Image Horizontally/Vertically API

What it does

Image Flipper flips an uploaded image horizontally or vertically and returns the transformed file as binary output.

Send a file plus a direction of horizontal or vertical. You can also provide format as png or jpeg when you want to control the image type of the result. The endpoint accepts image files up to 15 MB, which makes it suitable for common app assets, uploaded photos, or generated graphics that need orientation changes before storage or delivery.

Use Image Flipper when you need to mirror product photos for a storefront, correct an image layout for a UI, or create alternate compositions from the same source asset. Because the response is the processed image itself, you can pass it straight into your next upload, download, or media-processing step without extra parsing.

POST
Flip an image
https://api.eu.apyhub.com/freedailypro/flip-image-horizontally-or-vertically/image-flip

QUICKSTART

GUIDE

Quickstart

Flip an image horizontally or vertically by uploading a file and choosing the direction.

curl -X POST "https://api.eu.apyhub.com/freedailypro/flip-image-horizontally-or-vertically/image-flip" \
  -H "apy-token: $APY_TOKEN" \
  -F "file=@/path/to/image.jpg" \
  -F "direction=horizontal"

What you'll get back

Returns the flipped image as a binary file (string with format: binary).

TRY ITLIVE · 10 ATOMS
Loading your default key…
The full key is used to call the gateway and stays in this tab — never sent to orbit or saved.
Max 100MB total per request (all files combined). Larger? Use this API's URL-based endpoint instead, if it has one.
body*
The image. Up to 15 MB.
horizontal or vertical
png or jpeg

About this endpoint

What it does

Flips an uploaded image horizontally or vertically and returns the transformed image as a binary file.

Request Body

ParameterTypeMandatoryDescription
fileStringYesThe image file to flip. Binary upload. Up to 15 MB.
formatStringNoOutput image format. Allowed values: png or jpeg.
directionENUMYesFlip direction. Allowed values: horizontal or vertical.

Response

Returns a binary file containing the flipped image.

ParameterTypeDescription
binaryStringThe response body is a binary image file.

Max 100MB total per request (all files combined). Larger? Use this API's URL-based endpoint instead, if it has one.

▣ COMMON ERRORS

Errors any endpoint can return

400bad_request

Required parameter missing or malformed body.

401unauthorized

API key missing, revoked, or not authorized for this service.

429rate_limited

Your plan's per-second rate exceeded. Retry with exponential backoff.

503upstream_busy

Backend temporarily unavailable. Try again in a few seconds.