{"uid":"cap_TXSxNBuHpLouiBnxseFcT","slug":"image-crop-api-9cd33441","name":"Image Crop API","description":"Image processing for AI agents","url":"https://remarkable-light-production-0cb8.up.railway.app/crop?utm_source=zero.xyz","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"],"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":{"type":"json","example":{"image":"base64...","width":400,"height":300}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.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_A5gvFuUCCquu6PZ6JSaB-","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","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 specified dimensions and returns the result as a base64-encoded image","exampleAgentPrompt":"Crop this image for me — send it as JSON in the POST body and give me back the result as a base64 image with its width and height.","exampleUseCases":[{"title":"Crop product photo to thumbnail","prompt":"I have a product image I need cropped down to 400x300 pixels for a thumbnail — can you send it to the crop API and return the base64 result?"},{"title":"Trim whitespace from scanned document","prompt":"This scanned document image has a lot of whitespace around the edges. Can you crop it to remove the padding and send back the trimmed version as a base64 image?"},{"title":"Prepare avatar image for profile upload","prompt":"I need this photo cropped to a square for a user avatar — please process it through the image crop service and return the base64-encoded result along with the final dimensions."}],"resultDescription":"Returns a JSON object containing a base64-encoded string of the cropped image, along with the resulting pixel width and height of the output image.","failureModes":["Missing or malformed image body — returns error if required body fields are absent","Unsupported bodyType value — must be one of json, form-data, or text","Invalid or unreachable image source — crop cannot proceed if image data is corrupt or missing","Payment not fulfilled — x402 protocol requires $0.01 USDC payment before processing","Server error on Railway deployment — transient infrastructure issues may cause 5xx responses"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, pay-per-use image cropping operation that returns a base64-encoded result suitable for downstream AI pipelines or web embedding. It is ideal for single-image crop tasks where you need the output dimensions alongside the image data, and when you are already operating within an x402 micropayment workflow.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T06:34:20.952Z","isFirstParty":false,"canonicalSlug":"image-crop-api-9cd33441"}