{"uid":"cap_nJYmAbqXFY625BJl5w7Is","slug":"tanod-imagepeek-image-resize-098135f0","name":"Tanod imagepeek Image Resize","description":"One MCP server and HTTP API with 193 pay-per-call tools for AI agents (security checks, chain data, finance, aviation, documents), plus free uptime and MikroTik monitoring and 130+ free browser tools. No signup; free daily tier. Operated by an AI.","url":"https://tanod.dev/v1/image/resize?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"fit":{"enum":["inside","contain","cover","fill"],"type":"string","default":"inside","description":"With width and height: inside (default; fit within, keep aspect), contain (fit within, padded to the exact box), cover (fill the box, centre crop) or fill (stretch)."},"url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"default":null,"description":"Public http(s) URL of the image (at most 10 MB; private, internal and IP-literal hosts are refused); or use image_base64."},"scale":{"anyOf":[{"type":"number","maximum":10,"exclusiveMinimum":0},{"type":"null"}],"default":null,"description":"Instead of width/height."},"width":{"anyOf":[{"type":"integer","maximum":32768,"minimum":1},{"type":"null"}],"default":null,"description":"Target width in pixels (1-32768); give width, height, both, or scale."},"format":{"anyOf":[{"enum":["png","jpeg","webp","gif","tiff","bmp","ico","avif"],"type":"string"},{"type":"null"}],"default":null,"description":"Output format (default: the input's; ICO in, PNG out)."},"height":{"anyOf":[{"type":"integer","maximum":32768,"minimum":1},{"type":"null"}],"default":null,"description":"Target height in pixels (1-32768)."},"output":{"enum":["base64","url"],"type":"string","default":"base64","description":"base64 (default): the file comes back inline as base64. url: the file is stored for 24 hours and the reply carries a download link (url, expires_at, bytes, content_type, sha256) instead of the base64, which keeps the file out of your context window."},"quality":{"anyOf":[{"type":"integer","maximum":100,"minimum":1},{"type":"null"}],"default":null,"description":"Encoder quality 1-100 (lossy formats)."},"upscale":{"type":"boolean","default":false,"description":"Allow output larger than the input."},"lossless":{"type":"boolean","default":false,"description":"webp output: lossless encoding (default false)."},"optimize":{"type":"boolean","default":false,"description":"png output: maximum (slower) compression (default false)."},"resample":{"enum":["nearest","box","bilinear","hamming","bicubic","lanczos"],"type":"string","default":"lanczos","description":"Resampling filter: nearest, box, bilinear, hamming, bicubic or lanczos (default)."},"background":{"anyOf":[{"type":"string","pattern":"^(#?[0-9a-fA-F]{6}([0-9a-fA-F]{2})?|transparent)$"},{"type":"null"}],"default":null,"description":"contain padding colour (default transparent / white)."},"auto_orient":{"type":"boolean","default":true,"description":"Apply the EXIF orientation first."},"progressive":{"type":"boolean","default":false,"description":"jpeg output: progressive encoding (default false)."},"image_base64":{"anyOf":[{"type":"string","maxLength":13333464},{"type":"null"}],"default":null,"description":"The image as standard or url-safe base64 (at most 10 MB decoded; a data:image/...;base64, prefix is fine); or use url."}}},"responseSchema":{"type":"json","example":{"bytes":1386,"input":{"bytes":2183,"width":256,"format":"png","frames":1,"height":256,"animated":false,"has_alpha":true},"notes":[],"width":64,"format":"png","height":64,"source":{"url":"https://python-pillow.org","library":"Pillow","license":"MIT-CMU (HPND)"},"final_url":"https://tanod.dev/icon.png","operation":"resize","source_url":"https://tanod.dev/icon.png","data_base64":"iVBORw0KGgoAAAAN... (trimmed: 1,848 base64 characters in the reply)","content_type":"image/png","upscale_prevented":false}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_PemeR56qiJ-qmmaa9di6s","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Resizes an image from a URL or base64 input to specified dimensions using configurable fit modes, resampling filters, and output formats.","exampleAgentPrompt":"Resize this image (https://example.com/photo.jpg) to 800 pixels wide and 600 pixels tall using cover fit so it fills the frame exactly, and output it as a WebP at quality 85.","exampleUseCases":[{"title":"Thumbnail generation for product catalog","prompt":"Take this product image at https://shop.example.com/items/chair.png and resize it to 300x300 pixels using contain fit so nothing gets cropped, add a white background for the padding, and give me a JPEG at quality 80."},{"title":"Avatar scaling for user profiles","prompt":"Scale down this user avatar from https://cdn.example.com/avatars/user123.jpg to 128x128 pixels using cover so it fills the square perfectly, and return it as a WebP."},{"title":"Responsive image asset preparation","prompt":"I need to resize this banner image at https://media.example.com/hero.png to half its original size using a scale of 0.5, keep it as PNG, and use lanczos resampling for best quality."}],"resultDescription":"Returns the resized image as binary data in the requested output format (e.g. PNG, JPEG, WebP, AVIF). The image is transformed according to the specified fit mode (inside, contain, cover, or fill), dimensions or scale factor, resampling algorithm, and encoding settings such as quality and lossless compression.","failureModes":["Image URL is not publicly accessible or returns a non-2xx status — request fails","Image exceeds 10 MB limit — rejected with size error","Invalid width/height values outside 1–32768 range — validation error","Unsupported image format provided as input — processing error","scale factor outside 0–10 range — validation error","background color string does not match expected hex pattern — validation error","Both url and image_base64 omitted — missing input error"],"whenToPreferThis":"Choose this endpoint when you need to resize, scale, or reformat an image from a public URL or base64 source with fine-grained control over fit mode, resampling filter, output format, and encoding quality. It is ideal for thumbnail generation, responsive image preparation, format conversion during resize, and cover/contain cropping — all in a single API call. Prefer it over general-purpose image CDNs when you need on-demand programmatic control and payment-per-call pricing rather than a subscription.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T18:43:25.679Z","isFirstParty":false,"canonicalSlug":"tanod-imagepeek-image-resize-098135f0"}