# 24K Labs Image Crop API

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

Crops an image to a specified rectangular bounding box defined by left, top, right, and bottom pixel coordinates.

## Facts

- Endpoint: POST https://api.24klabs.ai/api/image-crop
- Price: $0.002/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-crop-api-6db047ca
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XK7NPCu4Rx2xAV1Y26LcA

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-crop-api-6db047ca -d '<json body>'
```

Example prompt: Crop this image to the box defined by left=50, top=30, right=640, bottom=480 pixels and give me the result.

## When to prefer this

Use this endpoint when you need a precise pixel-coordinate crop of an image without any resizing or format conversion. It is ideal for deterministic bounding-box extractions (e.g. from object detection output) and integrates naturally with x402 micropayment workflows at $0.002 per call.

## Known failure modes

- Coordinates out of bounds — if right or bottom exceed image dimensions, the call may fail or return an error
- Invalid image URL or unreadable image format returns an error
- Negative or non-integer coordinate values may cause a validation error
- Zero-size crop box (left >= right or top >= bottom) likely returns an error
- Network timeout if source image is very large or hosted on a slow server

## How this service works

Crop an image to a box (left, top, right, bottom in pixels).

## Output

Returns the cropped image binary (or URL) containing only the rectangular region bounded by the supplied left, top, right, and bottom pixel coordinates from the source image.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "top": {
   "type": "number"
  },
  "left": {
   "type": "number"
  },
  "right": {
   "type": "number"
  },
  "bottom": {
   "type": "number"
  },
  "image_b64": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "width": 4
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/24k-labs-image-crop-api-6db047ca/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)
