{
  "x402Version": 2,
  "id": 31405,
  "slug": "31405",
  "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",
  "serviceName": "svgsmith",
  "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1783941580/bazaar-icons/14edc01cca6ba7be.png",
  "resourceType": "Beauty & Personal Care",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xC34cDa76D8b9eDd3Be25C336CA1cf668522fDF0C",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "20000",
      "amountUsd": 0.02,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "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"
  },
  "extensions": {
    "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": [
    "svg",
    "vectorize",
    "png-to-svg",
    "image-conversion",
    "ai-agents",
    "bazaar"
  ],
  "sourceHost": "api.svgsmith.dev",
  "lastUpdated": "2026-10-12T06:47:40.582Z",
  "quality": {
    "calls30d": 2,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-10-12T06:47:40.379Z"
  },
  "metadata": {
    "serviceName": "svgsmith",
    "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1783941580/bazaar-icons/14edc01cca6ba7be.png",
    "extensions": {
      "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"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "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-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "meta": {
      "bytes": 38563,
      "detail": "high",
      "mode": "color",
      "similarity": 0.97
    },
    "svg": "<svg xmlns=...>...</svg>"
  }
}