{"uid":"cap_6ylgvjSTTy1aoj33zJJul","slug":"relaystation-image-crop-2405f020","name":"Relaystation Image Crop","description":"$0.0003/MP. Crop any region by coordinates — exact pixels out. 1¢ x402 min; remainder auto-credits — relaystation.ai/penny","url":"https://api.relaystation.ai/v1/image/crop","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"properties":{}},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_UDlzP7ekoW3ha--F5RWSs","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Crops a rectangular region from an image using exact pixel coordinates, returning the cropped image output.","exampleAgentPrompt":"Crop my image at https://example.com/photo.jpg to the region starting at x=100, y=50 with a width of 400 pixels and height of 300 pixels and give me back the cropped result.","exampleUseCases":[{"title":"Extract product thumbnail from catalog image","prompt":"Take this product catalog image at https://store.example.com/catalog.jpg and crop out just the main product — it starts at pixel x=200, y=150 and is 600 pixels wide by 400 pixels tall."},{"title":"Isolate face region from portrait photo","prompt":"I have a portrait at https://photos.example.com/headshot.png — can you crop just the face area, starting at x=80, y=60 and going 320 pixels wide by 380 pixels tall?"},{"title":"Trim whitespace border from scanned document","prompt":"This scanned document at https://docs.example.com/scan.png has a big white border — crop it to just the content area starting at x=40, y=35 with width 1200 and height 1600 pixels."}],"resultDescription":"Returns a pixel-exact cropped image file containing only the specified rectangular region of the source image, defined by x/y origin coordinates plus width and height in pixels.","failureModes":["Crop coordinates out of bounds for source image dimensions — returns error","Invalid or inaccessible image URL — returns fetch/download error","Malformed coordinate parameters (non-integer or negative values) — returns validation error","Source image format not supported — returns format error","Payment insufficient or x402 flow failure — returns payment required error"],"whenToPreferThis":"Choose this endpoint when you need pixel-precise rectangular cropping of an image with exact coordinate control and want a simple, pay-per-call API without managing image processing infrastructure. Ideal for agents performing automated image pipeline steps such as extracting regions detected by object detection, removing borders from scans, or generating thumbnails from known coordinates. The per-megapixel pricing ($0.0003/MP) and 1¢ minimum make it cost-effective for occasional or high-volume cropping tasks within agentic workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:47:07.437Z","isFirstParty":false}