svgsmith · Convert

by svgsmith

POSTBase

$0.02

per call · USD Coin on Base

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).

Endpoint

POST https://api.svgsmith.dev/v1/convert

4

Calls / 30d

2

Unique payers / 30d

Sep 10

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://api.svgsmith.dev/v1/convert", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "detail": "high",
    "imageUrl": "https://example.com/logo.png",
    "mode": "auto"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://api.svgsmith.dev/v1/convert" \
  -H "Content-Type: application/json" \
  -d '{"detail":"high","imageUrl":"https://example.com/logo.png","mode":"auto"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "meta": {
    "bytes": 38563,
    "detail": "high",
    "mode": "color",
    "similarity": 0.97
  },
  "svg": "<svg xmlns=...>...</svg>"
}

Payment details

Pay to0xc34cda76d8b9edd3be25c336ca1cf668522fdf0c
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of AI & Inference and the homepage with a featured placement.

Get featured →

More from svgsmith & similar services