{"uid":"cap_AfHLyutrL0TppgkdeqbUO","slug":"relaystation-image-auto-trim-7c134886","name":"RelayStation Image Auto-Trim","description":"$0.0003/MP. Auto-crop uniform borders — clean edges without manual coordinates. 1¢ x402 min; remainder auto-credits — relaystation.ai/penny","url":"https://api.relaystation.ai/v1/image/trim","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":{"type":"object","properties":{"file":{"type":"object","description":"cputools input-source: { inline: <base64 ≤ 4 MiB> } or { inputKey: <scratch key from /v1/cputools/upload-url, ≤ 50 MB> }."},"threshold":{"type":"number","maximum":255,"minimum":0,"description":"Border-detection sensitivity."}}},"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_7Bu-ZhgaeV_5Id47USDjv","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":"Automatically detects and crops uniform borders from images without requiring manual coordinates, at $0.0003 per megapixel.","exampleAgentPrompt":"Can you automatically trim the uniform white borders off this product image — I don't want to specify any coordinates, just let it detect and crop the blank edges for me?","exampleUseCases":[{"title":"Product photo border cleanup","prompt":"I have a bunch of product photos with thick white padding around them — can you auto-trim the uniform borders off this image so the product fills the frame cleanly?"},{"title":"Scanned document margin removal","prompt":"This scanned document has wide uniform white margins on all sides. Can you automatically detect and crop those blank edges out without me having to specify pixel coordinates?"},{"title":"Screenshot whitespace stripping","prompt":"I have a screenshot with solid gray borders around it — can you trim those uniform edges off automatically so just the content remains?"}],"resultDescription":"Returns the processed image with uniform borders automatically detected and removed. The output is the cropped image file with clean edges, sized to the content area after border removal. Billing is per megapixel at $0.0003/MP with a 1¢ x402 minimum; any remainder is auto-credited.","failureModes":["Image has no uniform borders to detect — returns image unchanged or minimal crop","Unsupported image format submitted — returns format error","Image too large or malformed — returns processing error","Non-uniform or gradient borders may not be fully removed","Network timeout for very large images"],"whenToPreferThis":"Choose this endpoint when you need to automatically remove uniform solid-color borders or padding from images without manually specifying crop coordinates. Ideal for batch-processing product photos, scanned documents, or screenshots where borders are consistent and machine-detectable. Prefer over manual crop endpoints when coordinates are unknown or vary per image.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:43:38.858Z","isFirstParty":false}