{"uid":"cap_XK7NPCu4Rx2xAV1Y26LcA","slug":"24k-labs-image-crop-api-6db047ca","name":"24K Labs Image Crop API","description":"Crop an image to a box (left, top, right, bottom in pixels).","url":"https://api.24klabs.ai/api/image-crop","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"top":{"type":"number"},"left":{"type":"number"},"right":{"type":"number"},"bottom":{"type":"number"},"image_b64":{"type":"string"}}},"responseSchema":{"type":"json","example":{"width":4}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_xensjhc5rZSNczDuV_te7","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Crops an image to a specified rectangular bounding box defined by left, top, right, and bottom pixel coordinates.","exampleAgentPrompt":"Crop this image to the box defined by left=50, top=30, right=640, bottom=480 pixels and give me the result.","exampleUseCases":[{"title":"Thumbnail region extraction for e-commerce","prompt":"I have a product photo and I only want the item itself — can you crop it to the box from pixel 120 left, 80 top, 900 right, 850 bottom?"},{"title":"Profile picture auto-crop from a group photo","prompt":"Take this group photo and crop it so I just get the face region: left 200, top 50, right 420, bottom 320 pixels."},{"title":"Remove watermark border from screenshot","prompt":"I've got a screenshot with a thick border on all sides — can you crop it to left=40, top=40, right=1240, bottom=680 to strip those borders off?"}],"resultDescription":"Returns the cropped image binary (or URL) containing only the rectangular region bounded by the supplied left, top, right, and bottom pixel coordinates from the source image.","failureModes":["Coordinates out of bounds — if right or bottom exceed image dimensions, the call may fail or return an error","Invalid image URL or unreadable image format returns an error","Negative or non-integer coordinate values may cause a validation error","Zero-size crop box (left >= right or top >= bottom) likely returns an error","Network timeout if source image is very large or hosted on a slow server"],"whenToPreferThis":"Use this endpoint when you need a precise pixel-coordinate crop of an image without any resizing or format conversion. It is ideal for deterministic bounding-box extractions (e.g. from object detection output) and integrates naturally with x402 micropayment workflows at $0.002 per call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T19:01:41.109Z","isFirstParty":false}