{"uid":"cap_5uXKbKm31LDGW6fLOezib","slug":"payweave-cloudflare-image-transform-0cec09af","name":"PayWeave Cloudflare Image Transform","description":"Browser rendering, transcription, image, vision, and speech on Cloudflare&#39;s edge.","url":"https://cloudflare.payweave.services/images/transform","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"fit":{"enum":["scale-down","contain","pad","squeeze","cover","crop"],"type":"string","description":"How the image fits within width/height when both are set."},"blur":{"type":"number","maximum":250,"minimum":0,"description":"Gaussian blur radius (0-250)."},"flip":{"enum":["h","v","hv"],"type":"string","description":"Flip horizontally, vertically, or both."},"width":{"type":"integer","maximum":4096,"minimum":1,"description":"Target width in pixels."},"format":{"enum":["webp","avif","jpeg","png","gif"],"type":"string","description":"Output format: webp (default), avif, jpeg, png, or gif."},"height":{"type":"integer","maximum":4096,"minimum":1,"description":"Target height in pixels."},"rotate":{"enum":[0,90,180,270],"type":"number","description":"Rotation in degrees."},"gravity":{"enum":["face","left","right","top","bottom","center","auto","entropy"],"type":"string","description":"Focal point used when cropping."},"quality":{"type":"integer","maximum":100,"minimum":1,"description":"Output quality for lossy formats (1-100)."},"sharpen":{"type":"number","maximum":10,"minimum":0,"description":"Sharpen strength (0-10)."},"contrast":{"type":"number","minimum":0,"description":"Contrast multiplier (1 = unchanged)."},"background":{"type":"string","description":"Background color (e.g. \"#ffffff\") for pad/transparent areas."},"brightness":{"type":"number","minimum":0,"description":"Brightness multiplier (1 = unchanged)."},"source_url":{"type":"string","format":"uri","description":"Public URL of the source image to transform (max 15 MB)."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_JfS4hr4HgwzsxoH3ZhIUM","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Transforms a source image via URL by applying resize, crop, format conversion, blur, rotation, and other adjustments on Cloudflare's edge network","exampleAgentPrompt":"Take this image at https://example.com/photo.jpg, resize it to 800×600 pixels using cover fit with face-based gravity, convert it to webp at quality 85, and apply a slight sharpen of 2.","exampleUseCases":[{"title":"Product thumbnail generation for listings","prompt":"I have a bunch of product photos from our supplier's servers. Can you grab each one, shrink them down to 200 by 200 pixels for the thumbnail view, convert them all to webp so they load faster, and make sure they're sharp and clear?"},{"title":"Social media image optimization","prompt":"We need to prepare our marketing images for Instagram and Twitter. Take the original high-res photos from our CDN, crop them to square format with smart face detection, resize to 1080 pixels wide, convert to avif for modern browsers, and bump up the contrast a bit to make them pop."},{"title":"Privacy-compliant image redaction","prompt":"Before we share these customer-submitted photos on our public dashboard, can you take each image URL, slightly blur the edges, crop out the sensitive parts using a center-focused approach, resize to 400 by 300 pixels, and save everything as a jpeg to keep file sizes down?"}],"resultDescription":"Returns the transformed image binary in the requested output format (webp, avif, jpeg, png, or gif) with the specified dimensions, quality, and visual adjustments applied.","failureModes":["Source URL unreachable or returns non-image content — request fails with error","Source image exceeds 15 MB size limit — rejected","Invalid parameter values (e.g. width > 4096, blur > 250) — validation error","Unsupported source image format — transformation fails","Payment not provided or insufficient — 402 Payment Required"],"whenToPreferThis":"Choose this endpoint when you need to transform an existing remote image (resize, crop, reformat, blur, adjust) via a simple API call paid per-use without managing Cloudflare credentials. Ideal for agents that need on-demand image optimization or format conversion without self-hosting image processing infrastructure.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:37:20.100Z","isFirstParty":false}