# 24K Labs Image Rotate & Flip

> 24K Labs Image Rotate & Flip is a paid API for AI agents from api.24klabs.ai, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-15).

Rotates a base64-encoded image by any angle (with canvas auto-expansion) and/or mirrors it horizontally or vertically, returning the transformed image as base64 PNG.

## Facts

- Endpoint: POST https://api.24klabs.ai/api/v1/image-rotate-flip
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/24k-labs-image-rotate-flip-83504a4f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZtamOTbey3q3fLxK48m23

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability 24k-labs-image-rotate-flip-83504a4f -d '<json body>'
```

Example prompt: Take this base64 image I have and rotate it 90 degrees clockwise, then flip it horizontally so it's mirrored — return the result as a base64 PNG.

## When to prefer this

Choose this endpoint when you need to rotate an image by an arbitrary angle (not just 90-degree multiples) with automatic canvas expansion to avoid cropping, or when you need to combine rotation and horizontal/vertical mirroring in a single call. It is ideal for lightweight, programmatic image orientation correction or creating mirrored design assets without setting up a full image processing pipeline. Prefer this over general image conversion endpoints when the primary need is geometric transformation rather than format conversion.

## Known failure modes

- Invalid or malformed base64 string returns an error
- Unsupported image format in the base64 payload
- Rotation angle out of accepted range or missing
- Missing required image parameter returns a validation error
- Excessively large image may cause timeout or payload size rejection

## How this service works

Rotate a base64-encoded image by any angle (canvas auto-expands) and/or mirror it horizontally or vertically. Returns the transformed image as base64 PNG.

## Output

Returns a base64-encoded PNG of the transformed image, with the canvas automatically expanded to fit any rotation angle so no content is cropped. The output preserves the original image content but applies the requested rotation and/or mirroring transformations.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "flip": {
   "type": "string"
  },
  "angle": {
   "type": "number"
  },
  "image_b64": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "width": 2,
  "format": "PNG",
  "height": 2,
  "image_b64": "..."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/24k-labs-image-rotate-flip-83504a4f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.24klabs.ai](https://www.zero.xyz/host/api.24klabs.ai/llms.txt)
