{
  "openapi": "3.0.1",
  "info": {
    "title": "Image to SVG Vectorizer – Convert PNG & JPG to SVG in Bulk",
    "description": "Bulk raster-to-SVG converter for logos, icons, line art, cutting machines (Cricut, laser) and print. Color or black-and-white modes, spline or polygon curves. Open-source vtracer on CPU, no API key. Bulk URLs or a dataset. $2 per 1,000 SVGs.",
    "version": "0.1",
    "x-build-id": "46LCSWyiq6N6ZSRJs"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/gazidev~image-vectorizer/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-gazidev-image-vectorizer",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/gazidev~image-vectorizer/runs": {
      "post": {
        "operationId": "runs-sync-gazidev-image-vectorizer",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/gazidev~image-vectorizer/run-sync": {
      "post": {
        "operationId": "run-sync-gazidev-image-vectorizer",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "imageUrls": {
            "title": "Image URLs",
            "type": "array",
            "description": "Direct links to PNG, JPG, WebP, GIF (first frame), BMP or TIFF files. Logos, icons, clip art and line art give the cleanest SVGs. Duplicates are removed; invalid values and failed downloads are reported for free.",
            "items": {
              "type": "string"
            }
          },
          "bulkText": {
            "title": "Bulk list (paste text or CSV)",
            "type": "string",
            "description": "One URL per line, or a CSV with a `url` / `image` column."
          },
          "datasetId": {
            "title": "Read URLs from an Apify dataset",
            "type": "string",
            "description": "Chain after a scraper, our Image Downloader or Background Remover."
          },
          "datasetField": {
            "title": "Dataset field with the image URL",
            "type": "string",
            "description": "Arrays of URLs are accepted too.",
            "default": "url"
          },
          "colorMode": {
            "title": "Color mode",
            "enum": [
              "color",
              "binary"
            ],
            "type": "string",
            "description": "Black & white traces the dark shapes only (good for stencils, vinyl, laser and Cricut cut files). Light-coloured artwork gives an empty result in this mode (free).",
            "default": "color"
          },
          "curveMode": {
            "title": "Curve fitting",
            "enum": [
              "spline",
              "polygon",
              "none"
            ],
            "type": "string",
            "description": "'Polygon' suits geometric logos and pixel-art-like shapes; 'None' keeps every pixel step.",
            "default": "spline"
          },
          "hierarchical": {
            "title": "Layering",
            "enum": [
              "stacked",
              "cutout"
            ],
            "type": "string",
            "description": "Colour mode only.",
            "default": "stacked"
          },
          "filterSpeckle": {
            "title": "Filter speckle (px)",
            "minimum": 0,
            "maximum": 128,
            "type": "integer",
            "description": "Discard patches smaller than this many pixels (square side). Raise it to remove noise and shrink the SVG.",
            "default": 4
          },
          "colorPrecision": {
            "title": "Colour precision (bits, 1–8)",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Significant bits per RGB channel. Lower = fewer colours and smaller SVGs.",
            "default": 6
          },
          "layerDifference": {
            "title": "Gradient step (0–255)",
            "minimum": 0,
            "maximum": 255,
            "type": "integer",
            "description": "Colour difference between gradient layers. Higher = fewer layers.",
            "default": 16
          },
          "cornerThreshold": {
            "title": "Corner threshold (degrees)",
            "minimum": 0,
            "maximum": 180,
            "type": "integer",
            "description": "Minimum angle that counts as a corner (spline mode). Lower = smoother, rounder shapes.",
            "default": 60
          },
          "lengthThreshold": {
            "title": "Segment length (3.5–10)",
            "minimum": 3.5,
            "maximum": 10,
            "type": "number",
            "description": "Advanced: perform iterative subdivide smoothing until all segments are shorter than this.",
            "default": 4
          },
          "spliceThreshold": {
            "title": "Splice threshold (degrees)",
            "minimum": 0,
            "maximum": 180,
            "type": "integer",
            "description": "Advanced: minimum angle displacement to splice a spline.",
            "default": 45
          },
          "pathPrecision": {
            "title": "Coordinate decimals",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Decimal places in path coordinates. 0–1 gives smaller files.",
            "default": 2
          },
          "keepTransparency": {
            "title": "Keep transparent background",
            "type": "boolean",
            "description": "Colour mode: fully transparent areas stay empty in the SVG (pixels under 50% opacity count as transparent). Off: transparency is filled with the background colour below. Black & white mode always uses the background colour.",
            "default": true
          },
          "backgroundColor": {
            "title": "Background colour",
            "type": "string",
            "description": "Hex colour that semi-transparent pixels are blended onto.",
            "default": "#ffffff"
          },
          "maxMegapixels": {
            "title": "Max image size (megapixels)",
            "minimum": 0.1,
            "maximum": 4,
            "type": "number",
            "description": "Larger images are downscaled first (aspect ratio kept). Bounds run time and SVG size: 1 MP (e.g. 1000×1000) is plenty for logos and icons, since the result is a vector anyway. Max 4.",
            "default": 1
          },
          "photoMaxMegapixels": {
            "title": "Max size for photo-like images (megapixels)",
            "minimum": 0.05,
            "maximum": 4,
            "type": "number",
            "description": "A quick test trace on a thumbnail detects photos and detailed illustrations (hundreds of colour regions). Those are downscaled to this size before tracing, because their SVGs grow huge and slow with every extra pixel. Raise it (up to Max image size) if you really want detailed photo SVGs.",
            "default": 0.3
          },
          "maxSvgMb": {
            "title": "Max SVG size (MB)",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Larger results (typically photos) are not saved and not charged; the row explains how to reduce them.",
            "default": 20
          },
          "maxImages": {
            "title": "Max images",
            "minimum": 0,
            "type": "integer",
            "description": "Safety cap per run. 0 = no limit.",
            "default": 100
          },
          "maxFileSizeMb": {
            "title": "Max download size per file (MB)",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Larger files are skipped for free.",
            "default": 25
          },
          "maxConcurrency": {
            "title": "Parallel downloads",
            "minimum": 1,
            "maximum": 16,
            "type": "integer",
            "description": "Tracing itself runs one image per GB of run memory.",
            "default": 4
          },
          "proxyConfiguration": {
            "title": "Proxy (optional)",
            "type": "object",
            "description": "Only needed if an image host blocks datacenter IPs."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}