{"uid":"cap_RlXXRqtVkQktf4t-aALN-","slug":"agent-tollgate-engine-web-image-transform-68e25ef3","name":"Agent Tollgate Engine – Web Image Transform","description":"50 pay-per-call tools for agents over x402 (USDC on Base, Polygon, Solana): crypto market data, token audits, indicators, swap routing, web extraction, DNS/WHOIS/email checks, FX, weather and AI text/image tools.","url":"https://skinwinking.com/api/v1/web/image-transform?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["url"],"properties":{"fit":{"type":"string","default":"scale-down","description":"scale-down, contain, cover, crop or pad"},"url":{"type":"string","description":"Public image URL"},"width":{"type":"integer","maximum":4096,"minimum":1},"format":{"type":"string","default":"webp","description":"webp, avif, jpeg, png or auto"},"height":{"type":"integer","maximum":4096,"minimum":1},"quality":{"type":"integer","default":85,"maximum":100,"minimum":1}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"bytes":7682,"image":"data:image/webp;base64,...","contentType":"image/webp","transformed":true}},"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_tc7r9iWBjz1Hvxp1Xb0gZ","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":"Fetches a public image URL and returns a resized, reformatted, and quality-adjusted image as a base64-encoded data URI via pay-per-call x402 micropayment.","exampleAgentPrompt":"Can you fetch the image at https://example.com/photo.jpg, resize it to 800×600, convert it to WebP at quality 85, and use scale-down fit so it doesn't get stretched?","exampleUseCases":[{"title":"Resize product image for listing","prompt":"Take this product image at https://shop.example.com/items/shoe.png and resize it to 400 wide by 400 tall in WebP format with cover fit and quality 90 so it looks sharp on the listing page."},{"title":"Convert banner to AVIF for web performance","prompt":"Convert the banner image at https://media.myblog.com/hero-banner.png to AVIF format at 1200 pixels wide with quality 75 so it loads faster on my website."},{"title":"Thumbnail generation for article preview","prompt":"Shrink the article header image at https://cdn.news.com/story-header.jpg down to 200×150 pixels as a WebP thumbnail using contain fit at quality 80."}],"resultDescription":"A JSON object containing the transformed image as a base64 data URI string (e.g. 'data:image/webp;base64,...'), the MIME content type (e.g. 'image/webp'), the size in bytes, and a boolean 'transformed' field confirming the operation succeeded.","failureModes":["Invalid or inaccessible image URL returns an error (non-200 source, private URL, or CORS block)","Requested dimensions exceed maximum of 4096px in either axis","Unsupported format string causes a validation error","Payment not received or x402 handshake fails, blocking the request","Source image is too large or times out during fetch","Malformed URL query parameter causes schema validation failure"],"whenToPreferThis":"Choose this endpoint when you need lightweight, pay-per-call image resizing and format conversion without setting up your own image pipeline. It is ideal for agents that occasionally need to transform remote images on demand, particularly when output as a base64 data URI is convenient for downstream embedding. It supports WebP and AVIF output which is useful for web-performance optimization.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:41:33.619Z","isFirstParty":false,"canonicalSlug":"agent-tollgate-engine-web-image-transform-68e25ef3"}