{"uid":"cap_fbxsXpHlao0dzStZTs21z","slug":"24k-labs-image-crop-api-e433eb4d","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/v1/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_0jwyJAaqWFUcZ5Q9XFDB4","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":"Can you crop my image so that only the region from pixel (50, 30) on the top-left to pixel (400, 300) on the bottom-right is kept?","exampleUseCases":[{"title":"Crop product photo for thumbnail","prompt":"I have a product photo and I want to crop out just the item — take the region from left 120, top 80, right 640, bottom 480 pixels and give me that cropped version."},{"title":"Extract face region from group photo","prompt":"Can you crop this group photo to just the face in the center? The face region goes from about left 200, top 150, right 350, bottom 340 pixels."},{"title":"Remove watermark border from image","prompt":"My image has a border watermark around the edges — can you crop it so we go from left 20, top 20, right 980, bottom 760 pixels to cut those borders off?"}],"resultDescription":"Returns a cropped image containing only the pixels within the specified bounding box (left, top, right, bottom). The output image is the rectangular region cut from the original, preserving the original format or converting as needed.","failureModes":["Crop coordinates outside image dimensions — returns error indicating out-of-bounds coordinates","Invalid or malformed image input — returns error about unsupported or unreadable image","Right coordinate less than or equal to left, or bottom less than or equal to top — returns error about invalid bounding box","Missing required coordinate parameters — returns validation error","Image too large or unsupported format — returns processing error"],"whenToPreferThis":"Use this endpoint when you need a simple, fast, precise pixel-coordinate-based crop of an image with no additional processing. Prefer it over full image editing pipelines when you only need a rectangular region extracted. Pairs well with the sibling image format conversion endpoint if you also need to change the output format after cropping.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T13:02:41.224Z","isFirstParty":false}