{"uid":"cap_QMIbICPXJExh7zsm3rHZH","slug":"fastx402-image-convert-f17b96d9","name":"FastX402 Image Convert","description":"200 pay-per-call tools for AI agents, from $0.001 per request in USDC on Base or Solana with x402. No account, no API key.","url":"https://fastx402.tools/image-convert?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"],"type":"string"},"queryParams":{"type":"object","required":["url"],"properties":{"fit":{"enum":["inside","cover","contain","fill"],"type":"string","description":"How to fit width x height, default inside (keep aspect, never enlarge)"},"url":{"type":"string","description":"Absolute http(s) URL of a png, jpeg, webp, gif, tiff or avif image"},"width":{"type":"string","description":"Target width in pixels, 1-4096 (optional)"},"format":{"enum":["webp","png","jpeg","avif"],"type":"string","description":"Output format, default webp"},"height":{"type":"string","description":"Target height in pixels, 1-4096 (optional)"},"quality":{"type":"string","description":"1-100 for jpeg, webp and avif, default 80"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"url":{"type":"string"},"bytes":{"type":"integer"},"width":{"type":"integer"},"format":{"type":"string"},"height":{"type":"integer"},"mime_type":{"type":"string"},"expires_at":{"type":"string"},"input_bytes":{"type":"integer"},"metadata_removed":{"type":"boolean"}}}}}}},"responseSchema":{"type":"json","example":{"url":"https://workshop.tusk80.com/r/c4661ca4c5b587a6d198dcfb346c2fa2.webp","bytes":57590,"width":800,"format":"webp","height":534,"mime_type":"image/webp","expires_at":"2026-10-17T15:20:51.381Z","input_bytes":138435,"metadata_removed":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_skAI5Gwy4oArRkLod2Jav","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":"Converts, resizes, and reformats images from a URL to webp/png/jpeg/avif with optional dimension constraints and quality control","exampleAgentPrompt":"Take this image URL https://example.com/photo.png and convert it to webp format, resizing it to 800 pixels wide while keeping the aspect ratio and stripping any metadata.","exampleUseCases":[{"title":"Optimize product images for e-commerce","prompt":"I have a product image at https://shop.example.com/images/product-hero.tiff — can you convert it to webp at 1200px wide, quality 85, and give me the new URL to embed on the page?"},{"title":"Thumbnail generation for blog posts","prompt":"Resize this blog header image at https://myblog.com/assets/header.jpeg to 400 by 267 pixels in webp format using 'cover' fit mode so it fills the thumbnail box exactly."},{"title":"Strip metadata from user-uploaded photos","prompt":"I need to remove all EXIF data from this user photo at https://uploads.myapp.com/user123/avatar.jpg and convert it to jpeg at quality 75 before storing it publicly."}],"resultDescription":"A JSON object containing a temporary URL to the converted image, the output file size in bytes, output dimensions (width and height), format string, MIME type, expiry timestamp, original input file size, and a boolean indicating whether metadata was removed.","failureModes":["Invalid or unreachable image URL returns an error","Unsupported input image format (e.g. SVG, BMP) returns a format error","Width or height outside 1-4096 range causes a validation error","Payment not included or insufficient USDC results in 402 Payment Required","Network timeout fetching the remote image","Output URL expires after the indicated expires_at timestamp"],"whenToPreferThis":"Use this endpoint when you need a lightweight, no-account, pay-per-call image conversion and resizing service that supports webp, png, jpeg, and avif output, strips metadata, and returns a ready-to-use CDN URL. Ideal for AI agents that need on-the-fly image transformation without managing API keys or subscriptions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T06:47:40.879Z","isFirstParty":false,"canonicalSlug":"fastx402-image-convert-f17b96d9"}