{"uid":"cap_Eob4mCJOup11Vek-kuNxt","slug":"image-resize-api-925ac4c9","name":"Image Resize API","description":"Image processing for AI agents","url":"https://remarkable-light-production-0cb8.up.railway.app/resize?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":800,"format":"png","height":600}},"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_zLhJpcAd29ff8CsxkQGuF","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":"Resizes images and returns the processed result as a base64-encoded image with specified dimensions and format","exampleAgentPrompt":"Can you resize this image to 800 by 600 pixels and return the result as a PNG in base64 format?","exampleUseCases":[{"title":"Thumbnail generation for web app","prompt":"I need to resize a product image to 300 by 300 pixels in PNG format so I can display it as a thumbnail on my e-commerce site — can you do that and give me the base64 output?"},{"title":"Optimize image for AI model input","prompt":"Before I send this photo to my vision model, can you resize it to 224 by 224 pixels in PNG format so it matches the model's expected input dimensions?"},{"title":"Resize user-uploaded avatar","prompt":"A user just uploaded a profile photo and I need it shrunk down to 128 by 128 pixels as a PNG — can you resize it and return the base64-encoded result?"}],"resultDescription":"Returns a JSON object containing the processed image as a base64-encoded string (key: 'image'), along with the output width, height, and format (e.g. 'png'). Example: {\"image\": \"base64...\", \"width\": 800, \"height\": 600, \"format\": \"png\"}.","failureModes":["Missing or malformed 'input' field in request body returns validation error","Unsupported image format or corrupted image data may cause processing failure","Extremely large images may time out or exceed memory limits","Invalid bodyType enum value causes request rejection","Missing required nested fields (type, method, bodyType, body) results in schema validation error"],"whenToPreferThis":"Choose this endpoint when you need a simple, pay-per-call image resizing service that returns base64-encoded output compatible with downstream AI pipelines or web applications. It is well-suited for agents that need to preprocess images on-the-fly without managing dedicated image processing infrastructure. Ideal when you need a consistent JSON response with width, height, and format metadata alongside the image data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T06:32:11.521Z","isFirstParty":false,"canonicalSlug":"image-resize-api-925ac4c9"}