{"uid":"cap_MqT5bPA05UbG8u53Rf25C","slug":"x402-experiments-image-resize-lab-paidapis-net-32ecafc8","name":"x402-experiments Image Resize (lab.paidapis.net)","description":"Task-runner: resize an image (?url=, ?width=, ?height=, max 2000px each) and return it as a data URL. Priced at $0.02/output-megapixel (min $0.005) — sells compute, metered by resource use, not a flat fee.","url":"https://lab.paidapis.net/api/resize-image","method":"GET","headers":{},"bodySchema":{"type":"object","required":["url","width","height"],"properties":{"url":{"type":"string","description":"Public http(s) URL of the source image."},"width":{"type":"integer","description":"Output width in px, up to 2000."},"height":{"type":"integer","description":"Output height in px, up to 2000."}}},"responseSchema":{"type":"object","properties":{"width":{"type":"integer"},"format":{"type":"string"},"height":{"type":"integer"},"resizedAt":{"type":"string"},"sizeBytes":{"type":"integer"},"imageDataUrl":{"type":"string"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_BUdIOaNcvs2P8EmdsIq7M","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Resizes a remote image to specified pixel dimensions and returns the resized image as a data URL with metadata.","exampleAgentPrompt":"Can you resize this image — https://example.com/photo.jpg — to 800 pixels wide and 600 pixels tall, and give me the result as a data URL?","exampleUseCases":[{"title":"Thumbnail generation for product catalog","prompt":"Take this product image at https://shop.example.com/items/shoe-red.jpg and resize it to 300 by 300 pixels so I can use it as a thumbnail in the catalog."},{"title":"Banner image resizing for blog post","prompt":"I need this image https://myblog.com/header-full.png resized to 1200 pixels wide and 400 pixels tall for my blog banner — can you do that and give me the data URL?"},{"title":"Avatar preparation for user profile","prompt":"Resize the image at https://cdn.example.com/user-photo.jpg down to 150 by 150 pixels so it fits the avatar slot in our app."}],"resultDescription":"Returns a JSON object containing the resized image as a base64-encoded data URL (imageDataUrl), the actual output width and height in pixels, the image format string, file size in bytes, and a timestamp (resizedAt) indicating when the resize was performed.","failureModes":["Invalid or unreachable image URL returns an error (network fetch failure)","Width or height exceeding 2000px may be rejected as out of range","Non-image URLs (e.g. HTML pages) will fail to decode","Payment failure on Base mainnet USDC will result in 402 response before processing","Malformed JSON body or missing required fields returns a 400 validation error"],"whenToPreferThis":"Choose this endpoint when you need a quick, pay-per-call image resize from a public URL with no signup or API key, just a small USDC micropayment via the x402 protocol. Ideal for agents that occasionally need to resize images on-demand without maintaining a dedicated image processing service. Best for single-image, real-time resize operations up to 2000×2000 px where you want the result inline as a data URL.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:47:41.045Z","isFirstParty":false}