← Back to directory

Crop an image to a box or an aspect ratio (Tanod)

https://tanod.dev/v1/image/crop

Overview

The image cropped to a box (`left`, `top`, `width`, `height`; out of bounds is a 422 crop_out_of_bounds) or to an `aspect` ratio such as 16:9 placed by `gravity` (center or a side or corner); the reply carries the applied `box`. Body: `{"url": "https://raw.githubusercontent.com/ianare/exif-samples/master/jpg/gps/DSCN0010.jpg", "aspect": "16:9"}`. Reads PNG, JPEG, WebP, GIF, TIFF, BMP, ICO and AVIF (the first frame of an animation); HEIC, SVG, PDF, PSD and EPS are refused (422

Protocol x402 (POST)
Price $0.0020
Payment Asset USD Coin
Payment Network Base
Category media/images
Provider tanod
Source bazaar
Indexed 2026-10-07 22:29:17

Health

Status healthy
Latency (p50) 996ms
Uptime (30d) 50.0%
Reliability Score 65/100
Last Checked 2026-12-04 04:23:10
Last Healthy 2026-12-04 04:23:10
Consecutive Failures 0

x402 Payment Validation

Payment Requirements Valid
Asset Verified Known USDC
Facilitator —

Input Schema

{ "body": { "aspect": "16:9", "url": "https://raw.githubusercontent.com/ianare/exif-samples/master/jpg/gps/DSCN0010.jpg" }, "bodyType": "json", "method": "POST", "type": "http" }

Output Schema

{ "example": { "bytes": 104465, "content_type": "image/jpeg", "final_url": "https://raw.githubuserc…", "format": "jpeg", "height": 360, "input": { "format": "jpeg", "width": 640 }, "notes": [], "operation": "crop", "source_url": "https://raw.githubuserc…", "width": 640 }, "type": "json" }

Recent Health Checks

Time Status HTTP Latency Error
2026-12-04 04:23:10 healthy 402 996ms
2026-12-03 19:42:21 error — — fetch failed
2026-12-03 09:11:47 healthy 402 3573ms
2026-12-02 21:53:35 healthy 402 793ms
2026-12-02 12:50:04 timeout — — timeout
2026-12-02 00:55:01 error — — fetch failed