{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/svgai-org/json-schema/svgai-org-vectorize-request-schema.json",
  "title": "VectorizeRequest",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/svgai-org-openapi.json#/components/schemas/VectorizeRequest",
  "type": "object",
  "properties": {
    "image": {
      "type": "string",
      "minLength": 100,
      "description": "Raw base64 or an image data URL. PNG, JPEG, or WebP; up to 8 MB decoded. Do not send together with image_url."
    },
    "image_url": {
      "type": "string",
      "format": "uri",
      "pattern": "^https?://",
      "description": "Publicly reachable HTTP(S) image URL. Private/reserved hosts are rejected; up to 8 MB downloaded. Do not send together with image."
    },
    "remove_background": {
      "type": "boolean",
      "default": false,
      "description": "Attempt to remove the subject's background before tracing. Check background_removed for the actual result."
    }
  },
  "oneOf": [
    {
      "required": [
        "image"
      ]
    },
    {
      "required": [
        "image_url"
      ]
    }
  ]
}