{"uid":"cap_hD-pH4l3ybM7RFClXh1pZ","slug":"nanoapi-image-resize-96c1efe3","name":"NanoAPI Image Resize","description":"Pay-per-use APIs for AI agents: image processing and Solana data endpoints. $0.001-$0.01 USDC per call on Base or Solana via x402 protocol. No signup or API keys required.","url":"https://nanoapi.org/image/resize?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"image":{"type":"string","format":"binary","description":"Image file (PNG, JPEG, WebP, AVIF, max 10MB)"},"width":{"type":"integer","maximum":4096,"minimum":1,"description":"Target width in pixels"},"height":{"type":"integer","maximum":4096,"minimum":1,"description":"Target height in pixels"}}},"responseSchema":{"type":"json","example":"<binary PNG data â resized image at target dimensions>"},"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_vlwZBQVH8tewBSR6LnRaL","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 an uploaded image (PNG, JPEG, WebP, or AVIF) to specified pixel dimensions, returning a binary PNG","exampleAgentPrompt":"Can you resize this product photo to 400 pixels wide by 300 pixels tall? It's a JPEG file I'm about to upload.","exampleUseCases":null,"resultDescription":"A binary PNG file containing the input image resized to exactly the specified width and height in pixels.","failureModes":["Image file exceeds 10MB limit — upload rejected","Width or height exceeds 4096 pixels — validation error","Unsupported image format provided — only PNG, JPEG, WebP, AVIF accepted","Payment not provided or insufficient — 402 Payment Required returned","Network or processing timeout for very large images within limit"],"whenToPreferThis":"Choose this endpoint when you need a simple, pay-per-use image resize without signing up for an API key, especially inside an AI agent workflow that can handle x402 micropayments. At $0.01 USDC per call it is cost-effective for low-to-moderate volume resizing. Prefer alternatives if you need batch processing, complex transformations (crop, filter, compress), or want to avoid per-call payment overhead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T06:33:12.923Z","isFirstParty":false,"canonicalSlug":"nanoapi-image-resize-96c1efe3"}