# 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/v1/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-e433eb4d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fbxsXpHlao0dzStZTs21z

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

Example prompt: Can you crop my image so that only the region from pixel (50, 30) on the top-left to pixel (400, 300) on the bottom-right is kept?

## When to prefer this

Use this endpoint when you need a simple, fast, precise pixel-coordinate-based crop of an image with no additional processing. Prefer it over full image editing pipelines when you only need a rectangular region extracted. Pairs well with the sibling image format conversion endpoint if you also need to change the output format after cropping.

## Known failure modes

- Crop coordinates outside image dimensions — returns error indicating out-of-bounds coordinates
- Invalid or malformed image input — returns error about unsupported or unreadable image
- Right coordinate less than or equal to left, or bottom less than or equal to top — returns error about invalid bounding box
- Missing required coordinate parameters — returns validation error
- Image too large or unsupported format — returns processing error

## How this service works

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

## Output

Returns a cropped image containing only the pixels within the specified bounding box (left, top, right, bottom). The output image is the rectangular region cut from the original, preserving the original format or converting as needed.

## 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-e433eb4d/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)
