# fastapi.online Image Crop

> fastapi.online Image Crop is a paid API for AI agents from api.fastapi.online, paid per call via x402, $0.001/call, status down (last checked 2026-09-15).

Crops an uploaded image (PNG/JPEG/WebP) to a specified rectangle defined by x/y origin and width/height dimensions

## Facts

- Endpoint: POST https://api.fastapi.online/image-crop
- Price: $0.001/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fastapi-online-image-crop-26a32a0b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wsRZXTB88jZ3Eob-M8mHh

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 fastapi-online-image-crop-26a32a0b -d '<json body>'
```

Example prompt: Crop this image starting at x=50, y=100 with a width of 400 and height of 300 pixels — just send back the cropped PNG.

## When to prefer this

Choose this endpoint when you need a simple, no-signup, pay-per-call image crop operation with crypto payment. Ideal for agents that need to programmatically extract rectangular regions from images on a per-call basis without managing API keys or subscriptions.

## Known failure modes

- Crop coordinates or dimensions out of bounds — returns error if x+width or y+height exceeds image dimensions
- Unsupported file format — only PNG, JPEG, and WebP are accepted
- Missing required parameters — x, y, width, or height not provided returns a validation error
- Payment failure — if USDC payment not included, returns HTTP 402
- File too large — server may reject oversized uploads

## How this service works

Chat, embeddings, OCR, speech-to-text, image editing, image understanding (captioning/Q&amp;A), text-to-speech, translation, writing tools, classification tools, developer tools, local utilities, format/checksum validators, encoding &amp; crypto utilities, date/time calculators, geo/coordinate math, math &amp; finance calculators, novelty tools, and business/social writing generators — 179 endpoints in all, across multiple specialized self-hosted models. Pay per call with crypto — no signup — or get an API key.

## Output

Returns the cropped image file as binary image data (PNG/JPEG/WebP), containing only the rectangular region specified by the x/y origin and width/height parameters.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "x": {
   "type": "string"
  },
  "y": {
   "type": "string"
  },
  "file": {
   "type": "string",
   "format": "binary",
   "description": "Image file (PNG/JPEG/WebP)"
  },
  "width": {
   "type": "string"
  },
  "height": {
   "type": "string"
  }
 }
}
```

## More

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