{"uid":"cap_5jMivC04uKY_n4Pozgabl","slug":"fastx402-vectorize-raster-image-to-svg-converter-86a6233e","name":"FastX402 Vectorize: Raster Image to SVG Converter","description":"Trace a raster image into an SVG vector: color (vtracer) or black-and-white (potrace); input up to 15 MB, traced at up to 1024 px. Returns a download URL valid for 1 hour, plus the SVG markup inline when it is 100 KB or less (otherwise svg is null)","url":"https://fastx402.tools/vectorize?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":{"url":{"type":"string","description":"Absolute http(s) URL of a png, jpeg, webp, gif, tiff or avif image (logos and icons trace best)"},"mode":{"enum":["color","bw"],"type":"string","description":"color (default) or bw for a black-and-white trace"},"threshold":{"type":"string","description":"bw only: 1-254, pixels darker than this become black, default 128"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"svg":{"type":"string"},"url":{"type":"string"},"mode":{"type":"string"},"bytes":{"type":"integer"},"mime_type":{"type":"string"},"expires_at":{"type":"string"}}}}}}},"responseSchema":{"type":"json","example":{"svg":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" width=\"288\" height=\"288\">\n<path d=\"M0 0 C2.4 0.01 4.8 0 7.2 -0.01 ...\" fill=\"#3A73A4\" transform=\"translate(139,32)\"/>\n...</svg>","url":"https://workshop.tusk80.com/r/cc8e63d9a66c87500e7ae304fe68c8a2.svg","mode":"color","bytes":10085,"mime_type":"image/svg+xml","expires_at":"2026-10-17T15:20:51.441Z"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":1,"rating":{"score":"0.92","successRate":"1.00","reviews":1,"stars":"4.7","state":"rated"},"availabilityStatus":"healthy","priceObserved":{"p10Cents":"1.0000","medianCents":"1.0000","p90Cents":"1.0000","minCents":"1.0000","maxCents":"1.0000","p95Cents":"1.0000","sampleCount":6,"varies":false,"failureChargeRate":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_x4BVZZBCFM8_ySmKSXoCH","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":"Converts a raster image (PNG, JPEG, WebP, GIF, TIFF, AVIF) at a given URL into an SVG vector graphic, with optional color or black-and-white tracing.","exampleAgentPrompt":"Can you vectorize this PNG logo for me — https://example.com/logo.png — and give me the SVG in color mode?","exampleUseCases":[{"title":"Logo vectorization for brand assets","prompt":"I have a PNG logo at https://mybrand.com/logo.png and I need a clean SVG version of it in color so I can use it in our design system — can you convert it?"},{"title":"Black-and-white icon tracing","prompt":"Please trace this icon at https://assets.example.com/icon.jpeg into a black-and-white SVG using a threshold of 140 so dark pixels become solid black."},{"title":"Converting product image for scalable use","prompt":"Can you turn the image at https://shop.example.com/product-icon.webp into an SVG vector file? I want the color version so it looks sharp at any size."}],"resultDescription":"Returns a JSON object containing the full SVG markup as a string, a hosted URL where the SVG can be accessed, the tracing mode used, file size in bytes, MIME type (image/svg+xml), and an expiry timestamp for the hosted file.","failureModes":["Invalid or inaccessible image URL returns an error — the URL must be publicly reachable","Unsupported image format (e.g. BMP, HEIC) will likely fail — only PNG, JPEG, WebP, GIF, TIFF, AVIF are supported","Threshold value out of range (not 1–254) may cause unexpected tracing or an error","Payment failure via x402 protocol will result in a 402 response and no conversion","Very large or complex images may produce oversized SVG output or time out"],"whenToPreferThis":"Choose this endpoint when you need to convert a publicly accessible raster image (logo, icon, illustration) to SVG format without setting up an account or API key. It is ideal for one-off or agent-driven conversions paid per-call with USDC. Prefer it over server-side tools when you need a hosted SVG URL returned immediately alongside the raw markup.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":6,"lastUsedAt":"2026-11-04T05:39:47.853Z","lastSuccessfullyRanAt":"2026-11-04T05:39:47.853Z","lastHealthCheckAt":"2026-11-04T07:14:00.102Z","isFirstParty":false,"canonicalSlug":"fastx402-vectorize-raster-image-to-svg-converter-86a6233e"}