# Image Crop API

> Image Crop API is a paid API for AI agents from remarkable-light-production-0cb8.up.railway.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-19).

Crops an image to specified dimensions and returns the result as a base64-encoded image

## Facts

- Endpoint: POST https://remarkable-light-production-0cb8.up.railway.app/crop?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/image-crop-api-9cd33441
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TXSxNBuHpLouiBnxseFcT

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 image-crop-api-9cd33441 -d '<json body>'
```

Example prompt: Crop this image for me — send it as JSON in the POST body and give me back the result as a base64 image with its width and height.

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-use image cropping operation that returns a base64-encoded result suitable for downstream AI pipelines or web embedding. It is ideal for single-image crop tasks where you need the output dimensions alongside the image data, and when you are already operating within an x402 micropayment workflow.

## Known failure modes

- Missing or malformed image body — returns error if required body fields are absent
- Unsupported bodyType value — must be one of json, form-data, or text
- Invalid or unreachable image source — crop cannot proceed if image data is corrupt or missing
- Payment not fulfilled — x402 protocol requires $0.01 USDC payment before processing
- Server error on Railway deployment — transient infrastructure issues may cause 5xx responses

## How this service works

Image processing for AI agents

## Output

Returns a JSON object containing a base64-encoded string of the cropped image, along with the resulting pixel width and height of the output image.

## 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"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "image": "base64...",
  "width": 400,
  "height": 300
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/image-crop-api-9cd33441/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from remarkable-light-production-0cb8.up.railway.app](https://www.zero.xyz/host/remarkable-light-production-0cb8.up.railway.app/llms.txt)
