{"uid":"cap_kQkUuhZppJmMPqbaSuGnu","slug":"strale-image-resize-api-f45468f8","name":"Strale Image Resize API","description":"The trust layer for AI agents — 250+ independently tested data capabilities across 27 countries. Execute capabilities via REST, MCP, A2A, or x402 micropayments. Every call returns an audit record with cryptographic chain hashing.","url":"https://api.strale.io/x402/v2/image-resize","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","properties":{"fit":{"enum":["cover","contain","fill","inside","outside"],"type":"string","description":"cover, contain, fill, inside, outside"},"base64":{"type":"string"},"format":{"enum":["png","jpeg","webp"],"type":"string","description":"png, jpeg, or webp"},"quality":{"type":"integer","maximum":100,"minimum":1},"image_url":{"type":"string"},"target_width":{"type":"integer"},"target_height":{"type":"integer"}}}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0324","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.0324/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0324","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0324","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_hV3zeG6H0YkiYPzLZ48Zn","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0324","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Resizes and converts images by URL to specified dimensions, format, and fit mode, returning the processed image with an audit record.","exampleAgentPrompt":"Take this image at https://example.com/photo.jpg and resize it to 800 by 600 pixels using cover fit, output it as a WebP at quality 85.","exampleUseCases":[{"title":"Thumbnail generation for product listings","prompt":"Resize this product image at https://mystore.com/products/shirt.jpg to 300 by 300 pixels with cover fit and save it as a JPEG at quality 80 — I need a uniform thumbnail for our catalog."},{"title":"Convert PNG to WebP for web performance","prompt":"Take the PNG at https://cdn.myblog.com/hero-image.png and convert it to WebP format at 1200 by 630 pixels so it loads faster on the site."},{"title":"Contain a logo within a fixed banner slot","prompt":"Scale the logo at https://assets.mybrand.com/logo.png to fit inside 400 by 100 pixels using contain mode so it doesn't get cropped, and return it as a PNG."}],"resultDescription":"The processed image in the requested format (PNG, JPEG, or WebP), scaled to the target dimensions using the specified fit mode. The response may include a base64-encoded version if requested, and is accompanied by an audit record with a cryptographic chain hash.","failureModes":["Invalid or unreachable image_url returns an error fetching the source image","Unsupported format value causes a validation error","Missing required image_url or target dimensions causes a 400 bad request","Payment not completed or insufficient USDC balance causes a 402 Payment Required","Very large source images may time out during processing"],"whenToPreferThis":"Choose this endpoint when you need a pay-per-call, serverless image resize with no infrastructure setup, especially when operating in an AI agent context that values audit trails and cryptographic provenance per call. Ideal for one-off or low-volume transformations paid via x402 micropayments without managing a subscription or self-hosted image processing pipeline.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T01:18:30.714Z","isFirstParty":false}