Api Endpoint

svgsmith

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

Open interactive test console

Offering

Provider
api.svgsmith.dev
Method
POST
Offering type
Api Endpoint
Transport type
http
Category
Creative
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://api.svgsmith.dev/v1/convert
MIME type
Not provided
First seen
2026-10-16T01:50:14.534Z
Last seen
Tags
svg, vectorize, png-to-svg, image-conversion, AI-agents

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.02 USDC
Atomic price: 20000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "20000",
    "payTo": "0xC34cDa76D8b9eDd3Be25C336CA1cf668522fDF0C"
  }
]

Observed health

Status
Reachable
Latest latency
87 ms
Average latency
79 ms
HTTP status
405
Last checked
Reachability
100% over 14 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "additionalProperties": false,
  "properties": {
    "body": {
      "anyOf": [
        {
          "required": [
            "imageBase64"
          ]
        },
        {
          "required": [
            "imageUrl"
          ]
        }
      ],
      "properties": {
        "background": {
          "description": "Repaint background to this color.",
          "type": "string"
        },
        "detail": {
          "enum": [
            "high",
            "normal",
            "clean",
            "poster"
          ],
          "type": "string"
        },
        "imageBase64": {
          "description": "Base64-encoded raster image (alternative to imageUrl).",
          "type": "string"
        },
        "imageUrl": {
          "description": "Publicly fetchable URL of the raster image to vectorize.",
          "type": "string"
        },
        "mode": {
          "enum": [
            "auto",
            "binary",
            "color",
            "pixel"
          ],
          "type": "string"
        },
        "solid_background": {
          "type": "boolean"
        },
        "transparent_background": {
          "type": "boolean"
        },
        "uniform_outline": {
          "type": "boolean"
        }
      },
      "type": "object"
    },
    "bodyType": {
      "enum": [
        "json",
        "form-data",
        "text"
      ],
      "type": "string"
    },
    "method": {
      "enum": [
        "POST",
        "PUT",
        "PATCH"
      ],
      "type": "string"
    },
    "type": {
      "const": "http",
      "type": "string"
    }
  },
  "required": [
    "type",
    "method",
    "bodyType",
    "body"
  ],
  "type": "object"
}

Output schema

{
  "properties": {
    "example": {
      "properties": {
        "meta": {
          "type": "object"
        },
        "svg": {
          "description": "The converted SVG markup.",
          "type": "string"
        }
      },
      "required": [
        "svg"
      ],
      "type": "object"
    },
    "type": {
      "type": "string"
    }
  },
  "required": [
    "type"
  ],
  "type": "object"
}