{
  "openapi": "3.0.1",
  "info": {
    "title": "PNG to SVG Converter: Image Vectorizer for Cricut",
    "description": "PNG to SVG converter and image vectorizer: turn PNG, JPG and WEBP designs, logos and line art into clean SVG files in bulk. Full-colour SVG or single-colour cut files for Cricut, Silhouette and laser, 2-24 colours, background removal and speck cleanup. Also PDF, EPS and DXF. Commercial use OK.",
    "version": "0.1",
    "x-build-id": "8VuY9sXt6hDmB3Iwd"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/vncntlabs~png-to-svg-vectorizer/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-vncntlabs-png-to-svg-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/vncntlabs~png-to-svg-vectorizer/runs": {
      "post": {
        "operationId": "runs-sync-vncntlabs-png-to-svg-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/vncntlabs~png-to-svg-vectorizer/run-sync": {
      "post": {
        "operationId": "run-sync-vncntlabs-png-to-svg-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. One vector file set per image. Use direct download links, not share/preview pages.",
            "items": {
              "type": "string"
            }
          },
          "uploadedImage": {
            "title": "Or upload one image",
            "type": "string",
            "description": "Upload a single image from your computer."
          },
          "keyValueStoreId": {
            "title": "Key-value store with images (bulk)",
            "type": "string",
            "description": "Pick one of your key-value stores; every key ending in .png/.jpg/.jpeg/.webp/.gif/.bmp/.tif(f) is vectorized unless you list keys below."
          },
          "keyValueStoreKeys": {
            "title": "Keys in that store",
            "type": "array",
            "description": "Optional: only process these keys.",
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "Output type",
            "enum": [
              "color",
              "bw"
            ],
            "type": "string",
            "description": "Single colour makes one black compound path with clean holes - one cut layer in Cricut Design Space.",
            "default": "color"
          },
          "maxColors": {
            "title": "Max colours (0 = auto)",
            "minimum": 0,
            "maximum": 64,
            "type": "integer",
            "description": "Auto finds the design's real flat colours and ignores anti-aliased edge pixels. Set e.g. 3 for a 3-colour vinyl or screen-print job.",
            "default": 0
          },
          "palette": {
            "title": "Fixed palette (hex colours)",
            "type": "array",
            "description": "Optional: snap every colour to these, e.g. your vinyl colours #000000, #FFFFFF, #D62828. Overrides max colours.",
            "items": {
              "type": "string"
            }
          },
          "colorLayering": {
            "title": "Colour layering",
            "enum": [
              "stacked",
              "layers"
            ],
            "type": "string",
            "description": "Layers = one compound path per colour, grouped and named by hex code.",
            "default": "stacked"
          },
          "curveStyle": {
            "title": "Curves",
            "enum": [
              "balanced",
              "smooth",
              "sharp",
              "polygon"
            ],
            "type": "string",
            "description": "How outlines are fitted. Smooth gives the lightest cut files.",
            "default": "balanced"
          },
          "speckleSize": {
            "title": "Remove specks smaller than (px)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Removes dust, JPEG noise and tiny islands/holes up to this size (in source pixels, squared area). 0 = keep everything.",
            "default": 3
          },
          "background": {
            "title": "Background",
            "enum": [
              "auto",
              "remove",
              "keep"
            ],
            "type": "string",
            "description": "Only background connected to the image edge is removed, so white inside the design (eyes, letters) stays.",
            "default": "auto"
          },
          "backgroundTolerance": {
            "title": "Background colour tolerance",
            "minimum": 5,
            "maximum": 150,
            "type": "integer",
            "description": "Higher removes more near-background shades (JPEG noise).",
            "default": 40
          },
          "bwMethod": {
            "title": "Single-colour method",
            "enum": [
              "auto",
              "threshold",
              "silhouette"
            ],
            "type": "string",
            "description": "How the single-colour cut shape is chosen.",
            "default": "auto"
          },
          "bwThreshold": {
            "title": "Ink threshold (1-254, empty = auto)",
            "minimum": 1,
            "maximum": 254,
            "type": "integer",
            "description": "Darkness cut-off for the dark-ink method. Empty = automatic (Otsu)."
          },
          "invert": {
            "title": "Invert (light ink becomes the cut)",
            "type": "boolean",
            "description": "For white artwork on a dark background.",
            "default": false
          },
          "outputPdf": {
            "title": "Also PDF",
            "type": "boolean",
            "description": "Vector PDF (Illustrator, Affinity, print shops).",
            "default": false
          },
          "outputEps": {
            "title": "Also EPS",
            "type": "boolean",
            "description": "Vector EPS (stock sites, older software).",
            "default": false
          },
          "outputDxf": {
            "title": "Also DXF",
            "type": "boolean",
            "description": "DXF in millimetres, one layer per colour (laser cutters, LightBurn, CNC, Cricut).",
            "default": false
          },
          "widthInches": {
            "title": "Output width (inches)",
            "minimum": 0.1,
            "maximum": 200,
            "type": "number",
            "description": "Physical width of the SVG/PDF/EPS/DXF. Empty = source pixels / DPI below."
          },
          "dpi": {
            "title": "Source DPI",
            "minimum": 30,
            "maximum": 2400,
            "type": "integer",
            "description": "Used for the physical size when no width is given (300 = typical POD file).",
            "default": 300
          },
          "svgUnits": {
            "title": "SVG size units",
            "enum": [
              "in",
              "mm",
              "px"
            ],
            "type": "string",
            "description": "Units for the SVG width/height attributes (the drawing is the same). Pixels are CSS pixels (96 per inch); without a width they match the source image size.",
            "default": "in"
          },
          "aiUpscale": {
            "title": "AI upscale small images first",
            "enum": [
              "off",
              "auto",
              "always"
            ],
            "type": "string",
            "description": "Real-ESRGAN pre-pass for small or blurry sources: cleaner edges, fewer junk nodes. Charged only when it actually runs.",
            "default": "off"
          },
          "photoHandling": {
            "title": "Photos",
            "enum": [
              "warn",
              "reject",
              "allow"
            ],
            "type": "string",
            "description": "Vectorizing suits logos, text, line art and flat designs. Photos become a flat-colour poster look.",
            "default": "warn"
          },
          "cornerThreshold": {
            "title": "Corner angle (advanced)",
            "minimum": 10,
            "maximum": 120,
            "type": "integer",
            "description": "Turns sharper than this stay corners. Default by curve style (40/55/60). Above ~65 thin spikes may round off."
          },
          "curveTolerance": {
            "title": "Curve tolerance px (advanced)",
            "minimum": 0.2,
            "maximum": 4,
            "type": "number",
            "description": "Max distance the curve may deviate from the traced outline. Default by curve style (0.5/0.8/1.1)."
          },
          "animatedImages": {
            "title": "Animated GIF/WEBP",
            "enum": [
              "reject",
              "first-frame"
            ],
            "type": "string",
            "description": "Animated files are rejected (not charged) unless you choose to use the first frame.",
            "default": "reject"
          },
          "maxImages": {
            "title": "Max images per run",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Safety limit; extra images are skipped.",
            "default": 100
          },
          "maxInputFileSizeMB": {
            "title": "Max input file size (MB)",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Bigger files are rejected (not charged).",
            "default": 50
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}