# Relaystation Image Crop

> Relaystation Image Crop is a paid API for AI agents from api.relaystation.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Crops a rectangular region from an image using exact pixel coordinates, returning the cropped image output.

## Facts

- Endpoint: POST https://api.relaystation.ai/v1/image/crop
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/relaystation-image-crop-2405f020
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6ylgvjSTTy1aoj33zJJul

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 relaystation-image-crop-2405f020 -d '<json body>'
```

Example prompt: Crop my image at https://example.com/photo.jpg to the region starting at x=100, y=50 with a width of 400 pixels and height of 300 pixels and give me back the cropped result.

## When to prefer this

Choose this endpoint when you need pixel-precise rectangular cropping of an image with exact coordinate control and want a simple, pay-per-call API without managing image processing infrastructure. Ideal for agents performing automated image pipeline steps such as extracting regions detected by object detection, removing borders from scans, or generating thumbnails from known coordinates. The per-megapixel pricing ($0.0003/MP) and 1¢ minimum make it cost-effective for occasional or high-volume cropping tasks within agentic workflows.

## Known failure modes

- Crop coordinates out of bounds for source image dimensions — returns error
- Invalid or inaccessible image URL — returns fetch/download error
- Malformed coordinate parameters (non-integer or negative values) — returns validation error
- Source image format not supported — returns format error
- Payment insufficient or x402 flow failure — returns payment required error

## How this service works

$0.0003/MP. Crop any region by coordinates — exact pixels out. 1¢ x402 min; remainder auto-credits — relaystation.ai/penny

## Output

Returns a pixel-exact cropped image file containing only the specified rectangular region of the source image, defined by x/y origin coordinates plus width and height in pixels.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/relaystation-image-crop-2405f020/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.relaystation.ai](https://www.zero.xyz/host/api.relaystation.ai/llms.txt)
