{
  "openapi": "3.0.1",
  "info": {
    "title": "Image to SVG Vectorizer (PNG, JPG to SVG, Bulk)",
    "description": "Convert PNG, JPG and WebP images to scalable SVG vectors in bulk from URLs: logos, icons, illustrations, signatures, line art for Cricut and laser cutters. Colour or black-and-white, VTracer engine. Pay per image.",
    "version": "0.0",
    "x-build-id": "Etl5OL9rJJVwgsaZL"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/toowl~image-to-svg/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-toowl-image-to-svg",
        "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/toowl~image-to-svg/runs": {
      "post": {
        "operationId": "runs-sync-toowl-image-to-svg",
        "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/toowl~image-to-svg/run-sync": {
      "post": {
        "operationId": "run-sync-toowl-image-to-svg",
        "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",
        "required": [
          "files"
        ],
        "properties": {
          "files": {
            "title": "Image URLs",
            "type": "array",
            "description": "Direct links to the images: PNG, JPG, WebP, AVIF, GIF, TIFF. Logos, icons, illustrations, scans of drawings and signatures work best.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "color",
              "bw"
            ],
            "type": "string",
            "description": "Colour keeps every colour layer. Black and white makes one solid shape from the dark parts: best for signatures, line art, stencils, cutting machines (Cricut, laser).",
            "default": "color"
          },
          "colorDetail": {
            "title": "Colour detail",
            "minimum": 1,
            "maximum": 7,
            "type": "integer",
            "description": "Colour mode, 1–7: lower merges similar shades into fewer, flatter layers (smaller files); higher keeps more shades.",
            "default": 5
          },
          "layerDifference": {
            "title": "Layer merge",
            "minimum": 0,
            "maximum": 255,
            "type": "integer",
            "description": "Colour mode, 0–255: how different two neighbouring colours must be to stay separate layers.",
            "default": 16
          },
          "filterSpeckle": {
            "title": "Remove specks smaller than (px)",
            "minimum": 1,
            "maximum": 16,
            "type": "integer",
            "description": "Drops noise and tiny spots whose side is smaller than this. Raise it for scans and photos.",
            "default": 4
          },
          "curveMode": {
            "title": "Shapes",
            "enum": [
              "spline",
              "polygon",
              "pixel"
            ],
            "type": "string",
            "description": "Smooth curves for logos and drawings, straight polygons for geometric art, or square pixels for pixel art.",
            "default": "spline"
          },
          "cornerThreshold": {
            "title": "Corner angle (degrees)",
            "minimum": 0,
            "maximum": 180,
            "type": "integer",
            "description": "Angles sharper than this stay corners; the rest become curves.",
            "default": 60
          },
          "threshold": {
            "title": "Black and white: threshold",
            "minimum": 1,
            "maximum": 254,
            "type": "integer",
            "description": "0–255: pixels darker than this become the shape.",
            "default": 128
          },
          "invert": {
            "title": "Black and white: trace the light parts",
            "type": "boolean",
            "description": "Use the light areas as the shape instead (light logo on a dark background).",
            "default": false
          },
          "color": {
            "title": "Black and white: shape colour",
            "type": "string",
            "description": "Hex colour of the traced shape, e.g. #1a7f37. Default black."
          },
          "background": {
            "title": "Background for transparent images",
            "type": "string",
            "description": "Colour mode: hex colour to put behind transparent pixels before tracing, e.g. #ffffff. Leave empty to keep transparency."
          },
          "maxSize": {
            "title": "Max image side (px)",
            "minimum": 64,
            "maximum": 6000,
            "type": "integer",
            "description": "Larger images are scaled down before tracing (tracing time grows fast with size). The SVG scales to any size anyway.",
            "default": 2000
          },
          "timeoutSecs": {
            "title": "Time limit per image (seconds)",
            "minimum": 10,
            "maximum": 900,
            "type": "integer",
            "description": "An image that takes longer is skipped with an error (not charged).",
            "default": 120
          },
          "maxFileSizeMb": {
            "title": "Max file size (MB)",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Larger files are skipped with an error (not charged).",
            "default": 30
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}