{"slug":"agent402-tools-api-image-crop-f062ee","title":"Crop an image to a pixel box, and/or rotate (90/180/270) and flip it","host":"agent402.tools","method":"POST","resource":"https://agent402.tools/api/image-crop","category":"image","description":"Crop an image to a pixel box, and/or rotate (90/180/270) and flip it - applied in that order. Send a public image URL or a base64 image. Returns the result as binary, or as a JSON data URI with dataUri:true. Deterministic.","price_listed":0.002,"price_asked":null,"state":"effects","state_label":"Not tested: has real-world effects","checks_7d":0,"answered_7d":0,"latency_ms_median":null,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["algorand:wGHE2Pwdvd7S12BL5FaOP20EGYesN73k","eip155:10","eip155:1329","eip155:137","eip155:143","eip155:42161","eip155:42220","eip155:43114","eip155:4663","eip155:5042","eip155:57073","eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","stellar:pubnet"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"dataUri":true,"height":40,"left":10,"top":10,"url":"https://agent402.tools/fixtures/sample-photo.jpg","width":60},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"properties":{"dataUri":{"type":"boolean"},"flip":{"type":"string"},"format":{"type":"string"},"height":{"type":"number"},"image":{"type":"string"},"left":{"type":"number"},"quality":{"type":"number"},"rotate":{"type":"number"},"top":{"type":"number"},"url":{"type":"string"},"width":{"type":"number"}}},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"properties":{"bytes":{"type":"number"},"dataUri":{"type":"string"},"height":{"type":"number"},"width":{"type":"number"}},"required":["dataUri","width","height","bytes"],"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[],"description_full":"Crop an image to a pixel box, and/or rotate (90/180/270) and flip it - applied in that order. Send a public image URL or a base64 image. Returns the result as binary, or as a JSON data URI with dataUri:true. Deterministic.","last_updated":"2026-11-17T13:38:51.391Z","schemes":["exact","upto"]}