# flipimage: Flip Image – Mirror Horizontally or Vertically

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

Mirrors an image horizontally (left ↔ right), vertically (top ↔ bottom) or both.

- Group: Images
- Endpoint: `POST https://api.1001fx.com/images/flipimage`
- Authentication: header `X-API-KEY: YOURSECRETAPIKEY`
- Content type: multipart/form-data
- Credits: 3 credits per call
- Ready-made in: Make
- Docs: https://1001fx.com/functions/flipimage

## Parameters

- `file` (file, optional) – File: The image (PNG, JPEG, BMP, TIFF, GIF). Either file or fileUrl.
- `fileUrl` (string, optional) – File URL: Public URL of the image. Either file or fileUrl.
- `direction` (enum, required, one of `horizontal`, `vertical`, `both`) – Direction: horizontal, vertical or both.
- `outputFormat` (enum, optional, one of `png`, `jpeg`, `bmp`, `tiff`, `gif`) – Output format: Format of the result; default: same as the input.

## Example: Flip Image – Mirror Horizontally or Vertically

```bash
curl -X POST 'https://api.1001fx.com/images/flipimage' \
  -H 'X-API-KEY: YOURSECRETAPIKEY'
```
