{"uid":"cap_gIiDtDsz90Zz66tlvMo1o","slug":"stableflare-image-transform-api-e2645983","name":"Stableflare Image Transform API","description":"Pay-per-request access to Replicate AI and Cloudflare Browser Rendering. No API keys, no subscriptions.","url":"https://stableflare.dev/api/images/transform","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"dpr":{"type":"number","description":"Device pixel ratio"},"fit":{"enum":["scale-down","contain","cover","crop","pad"],"type":"string","description":"Resize mode"},"blur":{"type":"number","maximum":250,"minimum":1},"width":{"type":"number","description":"Target width in pixels"},"format":{"enum":["auto","webp","avif","jpeg","png"],"type":"string","description":"Output format"},"height":{"type":"number","description":"Target height in pixels"},"rotate":{"type":"number","description":"Rotation degrees (90, 180, 270)"},"gravity":{"type":"string","description":"Crop anchor: auto, face, left, right, top, bottom"},"quality":{"type":"number","maximum":100,"minimum":1,"description":"Output quality"},"sharpen":{"type":"number","maximum":10,"minimum":0},"contrast":{"type":"number"},"image_id":{"type":"string","description":"Cloudflare Images image ID (from upload)"},"metadata":{"enum":["copyright","keep","none"],"type":"string"},"brightness":{"type":"number"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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_NWz6xBmBJZg-5iZb5fA8L","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":"Transforms images via Cloudflare's image transformation pipeline with pay-per-request micropayments, no API key required.","exampleAgentPrompt":"Transform this image at https://example.com/photo.jpg to 800x600 pixels in WebP format — pay per request, no API key needed.","exampleUseCases":[{"title":"Dynamic product image resizing for listings","prompt":"Resize product photos to 300x300 thumbnails and 1200x800 hero images in WebP format for our marketplace listings—just pay per request as we upload them."},{"title":"Format conversion for cross-platform delivery","prompt":"Convert this JPEG to AVIF and WebP versions optimized for mobile and desktop without setting up any API keys—charge me per transformation."},{"title":"Anonymous image optimization for newsletters","prompt":"Take these user-submitted images and optimize them to 600px width in JPEG format for our email campaigns—use pay-per-request so we don't need subscriptions."}],"resultDescription":"The agent receives a transformed image in the requested format and dimensions, processed through Cloudflare's image transformation infrastructure. Response may be a binary image or redirect to the processed image resource.","failureModes":["Payment failure: insufficient USDC balance or x402 payment not accepted (402 Payment Required)","Invalid image URL: source image unreachable or malformed URL (400 Bad Request)","Unsupported transformation parameters: invalid dimensions, format, or quality values (422 Unprocessable Entity)","Image too large or format not supported by Cloudflare transformation pipeline (413/415 error)","Service unavailable if underlying Cloudflare infrastructure is down (503)"],"whenToPreferThis":"Prefer this endpoint when you need one-off image transformations without committing to an API key or subscription, especially in agentic or automated workflows where pay-per-request micropayments via x402/USDC are acceptable. Ideal for low-volume or sporadic image processing tasks where setting up a full Cloudflare account is overhead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T04:07:24.214Z","isFirstParty":false}