{"uid":"cap_l0sk6VcZsd9O7roQWMH-d","slug":"x402-image-tools-image-format-converter-5379a10d","name":"x402 Image Tools – Image Format Converter","description":"Convert an image at a URL to another format, with an optional quality or lossless encoding. JPEG output gets a white background where the image was transparent.","url":"https://7fg5bxb40m3f0v23.68r.lambda-web.us-east-1.on.aws/v1/convert?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","description":"https URL of a JPEG, PNG, WebP, AVIF, GIF, TIFF or SVG image (up to 20 MB, 40 megapixels)"},"format":{"enum":["webp","avif","png","jpeg","gif","tiff"],"type":"string","description":"the output format"},"inline":{"type":"boolean","description":"also return the image as a data URL when it is at most 1 MB"},"quality":{"type":"integer","description":"1-100"},"lossless":{"type":"boolean","description":"lossless WebP or AVIF"}}},"responseSchema":{"type":"json","example":{"url":"https://dn8i8p8knpn68.cloudfront.net/results/images/3f1c2b9e.webp?Expires=...","bytes":48213,"width":800,"format":"avif","height":600,"expires_in":3600,"input_bytes":912345}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_j58fqimm9NavAwepBcs64","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Converts an image from a URL to a specified format (WebP, AVIF, PNG, JPEG, GIF, or TIFF) with optional quality and lossless encoding settings.","exampleAgentPrompt":"Can you convert this image to WebP with quality 85? The URL is https://example.com/photo.png — return the converted image URL.","exampleUseCases":[{"title":"Convert PNG to JPEG for email","prompt":"I have a transparent PNG at https://mysite.com/logo.png — can you convert it to JPEG with quality 90? I need a white background version for email."},{"title":"Optimize image as lossless AVIF","prompt":"Please convert this image at https://cdn.example.com/hero.png to AVIF in lossless mode so I can use it on my website."},{"title":"Convert TIFF to WebP for web delivery","prompt":"Turn this TIFF image at https://archive.example.com/scan.tiff into a WebP at quality 75 so it loads faster on the web."}],"resultDescription":"A JSON object containing the URL of the converted image hosted on CloudFront (with an expiry time), the byte size of the converted image, its width and height in pixels, the output format, and the original input byte size. Optionally includes the image as a data URL if it is under 1 MB and inline was requested.","failureModes":["Image URL is not publicly accessible or returns a non-200 response","Image exceeds 20 MB or 40 megapixel limit","Unsupported input format (only JPEG, PNG, WebP, AVIF, GIF, TIFF, SVG accepted)","Invalid quality value outside 1-100 range","Network timeout fetching the remote image","Output URL expires after 3600 seconds if not retrieved in time","Payment failure (402) if x402 USDC payment is not fulfilled"],"whenToPreferThis":"Choose this endpoint when you need to convert an image at a known URL from one format to another, especially for web optimization (e.g. converting to WebP or AVIF), handling transparency removal for JPEG output, or controlling quality vs file-size tradeoffs. It supports a broad range of input formats including SVG and TIFF, and returns a ready-to-use CDN URL for the converted image.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T12:36:12.048Z","isFirstParty":false,"canonicalSlug":"x402-image-tools-image-format-converter-5379a10d"}