{
  "x402Version": 2,
  "id": 4307,
  "slug": "4307",
  "resource": "https://api.svgsmith.dev/v1/convert",
  "description": "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).",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xC34cDa76D8b9eDd3Be25C336CA1cf668522fDF0C",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "20000",
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "detail": "high",
            "imageUrl": "https://example.com/logo.png",
            "mode": "auto"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "meta": {
              "bytes": 38563,
              "detail": "high",
              "mode": "color",
              "similarity": 0.97
            },
            "svg": "<svg xmlns=...>...</svg>"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "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": {
            "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"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "api.svgsmith.dev",
  "lastUpdated": "2026-09-10T13:36:03.109Z",
  "quality": {
    "calls30d": 4,
    "uniquePayers30d": 2,
    "lastCalledAt": "2026-09-10T13:36:02.739Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.svgsmith.dev",
    "manifest_name": "api.svgsmith.dev",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}