# 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-13).

Rotate and/or flip an image, returning the transformed result as a base64-encoded PNG/JPEG/WEBP/etc.

## Facts

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

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-34b61ab4 -d '<json body>'
```

Example prompt: Can you rotate this image 90 degrees clockwise and flip it horizontally? Here's the base64-encoded PNG.

## When to prefer this

Choose this endpoint when you need a fast, low-cost ($0.003 USDC) programmatic way to rotate or flip an image and receive the result as base64 without managing any image processing library. Ideal for agents correcting image orientation automatically, pipelines flipping assets for design purposes, or any workflow that needs a simple geometric image transformation in a single API call.

## Known failure modes

- Invalid or malformed base64 input — returns error indicating unreadable image data
- Unsupported image format — returns error if format is not among supported types
- Invalid rotation angle or flip parameter — returns validation error
- Oversized image payload — may return a payload-too-large or timeout error
- Missing required parameters — returns 400-level error with field details

## How this service works

A curated directory of x402 services — each one on the list on purpose, with the health, uptime, and independent trust grades from across the ecosystem gathered in one place.

## Output

A JSON object containing the transformed image as a base64 string, along with the output width, height, and image format (e.g. PNG).

## 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-34b61ab4/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)
