# SVGSmith Raster-to-SVG Converter

> SVGSmith Raster-to-SVG Converter is a paid API for AI agents from api.svgsmith.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Converts a raster image (PNG, JPEG, or WebP) into clean, editable, self-verified SVG vector art with quality reporting

## Facts

- Endpoint: POST https://api.svgsmith.dev/v1/convert
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/svgsmith-raster-to-svg-converter-8bdb4974
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mQ23K3SZ1BYuOea1-Qhrk

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 svgsmith-raster-to-svg-converter-8bdb4974 -d '<json body>'
```

Example prompt: Convert my company logo PNG to a clean, editable SVG — use color mode with high detail and keep the transparent background.

## When to prefer this

Choose SVGSmith when you need a programmatic, pay-per-use raster-to-SVG conversion with no API key or subscription setup — ideal for agent workflows that occasionally need to vectorize images on demand, especially when you want a self-verified quality report (similarity score + path count) alongside the SVG output. Prefer this over offline tools when you need an API-accessible solution that accepts both image URLs and base64 payloads and supports tunable modes (auto, binary, color, pixel) and detail levels.

## Known failure modes

- Unsupported image format (non-PNG/JPEG/WebP) returns error
- Image URL unreachable or returns non-image content
- Base64 payload too large or malformed
- Low similarity score if source image is too complex or noisy
- Payment failure via x402 if insufficient USDC balance on Base
- Timeout if image is very large or server overloaded

## How this service works

Convert a raster image (PNG, JPEG, or WebP) into clean, editable, self-verified SVG vector art. Pay per conversion in USDC on Base via x402 - no API key, no subscription. Send JSON with imageBase64 or imageUrl; tune with mode (auto/binary/color/pixel), detail (high/normal/clean/poster), transparent or solid background, and outline flags. Returns the SVG plus a quality report (paths, similarity score).

## Output

Returns the converted SVG markup as a string plus a quality report containing the number of vector paths generated and a similarity score indicating how closely the SVG matches the original raster image.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "mode": {
   "enum": [
    "auto",
    "binary",
    "color",
    "pixel"
   ],
   "type": "string"
  },
  "detail": {
   "enum": [
    "high",
    "normal",
    "clean",
    "poster"
   ],
   "type": "string"
  },
  "imageUrl": {
   "type": "string",
   "description": "Publicly fetchable URL of the raster image to vectorize."
  },
  "background": {
   "type": "string",
   "description": "Repaint background to this color."
  },
  "imageBase64": {
   "type": "string",
   "description": "Base64-encoded raster image (alternative to imageUrl)."
  },
  "uniform_outline": {
   "type": "boolean"
  },
  "solid_background": {
   "type": "boolean"
  },
  "transparent_background": {
   "type": "boolean"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/svgsmith-raster-to-svg-converter-8bdb4974/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.svgsmith.dev](https://www.zero.xyz/host/api.svgsmith.dev/llms.txt)
