{"uid":"cap_iTAlVSGAzLgSkflfoH7iq","slug":"relaystation-image-resize-f883a9e1","name":"Relaystation Image Resize","description":"$0.0003/MP. Resize or fit images — animated GIF/WebP preserved with animated:true. 1¢ x402 min; remainder auto-credits — relaystation.ai/penny","url":"https://api.relaystation.ai/v1/image/resize","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":{"fit":{"enum":["cover","contain","fill","inside","outside"],"type":"string"},"file":{"type":"object","description":"cputools input-source: { inline: <base64 ≤ 4 MiB> } or { inputKey: <scratch key from /v1/cputools/upload-url, ≤ 50 MB> }."},"width":{"type":"integer","maximum":10000,"minimum":1},"height":{"type":"integer","maximum":10000,"minimum":1},"animated":{"type":"boolean","description":"Preserve all frames of an animated GIF/WebP (billed per-frame)."}}},"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_6B4nhGR6XihBdfPWrfE11","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":"Resizes or fits images to specified dimensions, preserving animated GIF/WebP frames, priced at $0.0003 per megapixel","exampleAgentPrompt":"Can you resize this image at https://example.com/photo.jpg to 800x600 pixels, keeping it fitted within those bounds — and make sure the animation is preserved since it's a GIF?","exampleUseCases":[{"title":"Thumbnail generation for e-commerce","prompt":"Take this product photo at https://myshop.com/images/jacket.jpg and resize it to 400x400 pixels so it fits our product grid — make sure it stays within those bounds without stretching."},{"title":"Animated GIF downscaling for web","prompt":"I have an animated GIF at https://cdn.example.com/banner.gif that's too large — can you resize it to 640x360 while keeping all the animation frames intact?"},{"title":"Avatar image normalization pipeline","prompt":"Resize the user-uploaded image from https://uploads.myapp.com/user123.webp to 128x128 pixels for their profile picture, preserving any animation if it's an animated WebP."}],"resultDescription":"Returns the resized image binary in the original or target format. Animated GIF and WebP files retain all frames when the animated flag is set. Metadata includes output dimensions and format. Pricing is metered at $0.0003 per megapixel of the source image, with a 1¢ minimum per call via x402 micropayment; any remainder is auto-credited.","failureModes":["Invalid or unreachable image URL returns an error","Unsupported image format returns a format error","Dimensions exceeding service limits return a constraint error","Network timeout fetching remote image","Malformed request body returns 400 bad request","Insufficient x402 payment balance returns payment error"],"whenToPreferThis":"Choose this endpoint when you need a simple, pay-per-use image resize or fit operation without spinning up your own image processing infrastructure. It is especially useful for animated GIF/WebP where frame preservation is required, and for pipelines where per-megapixel metering is more cost-effective than flat-rate services. Prefer it over general-purpose image APIs when you want x402 micropayment billing with auto-credit for remainder.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-16T12:47:21.449Z","isFirstParty":false}