# FastX402 Vectorize: Raster Image to SVG Converter

> FastX402 Vectorize: Raster Image to SVG Converter is a paid API for AI agents from fastx402.tools, paid per call via x402, $0.01/call, status healthy (last checked 2026-11-04, last successful call 2026-11-04).

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.

## Facts

- Endpoint: GET https://fastx402.tools/vectorize?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: healthy
- Last checked: 2026-11-04
- Last successful call: 2026-11-04
- Success rate: 100% of calls made through Zero
- Rating: 4.7 / 5 from 1 review
- Activations on Zero: 6
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fastx402-vectorize-raster-image-to-svg-converter-86a6233e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5jMivC04uKY_n4Pozgabl

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability fastx402-vectorize-raster-image-to-svg-converter-86a6233e
```

Example prompt: Can you vectorize this PNG logo for me — https://example.com/logo.png — and give me the SVG in color mode?

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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)

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "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"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fastx402-vectorize-raster-image-to-svg-converter-86a6233e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from fastx402.tools](https://www.zero.xyz/host/fastx402.tools/llms.txt)
