{
  "openapi": "3.0.1",
  "info": {
    "title": "Image Vectorizer: PNG/JPG to SVG, PDF & DXF (Logo Tracer)",
    "description": "Turn PNG, JPEG and other images into clean SVG vector graphics: logos, icons, illustrations, line art, scans, photos and pixel art. Auto colors, transparent background, PDF and DXF for cutters, match score. For AI agents and designers.",
    "version": "0.1",
    "x-build-id": "38CPTAW1CuieTmCYF"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/jumblemog~image-vectorizer/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-jumblemog-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/jumblemog~image-vectorizer/runs": {
      "post": {
        "operationId": "runs-sync-jumblemog-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/jumblemog~image-vectorizer/run-sync": {
      "post": {
        "operationId": "run-sync-jumblemog-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 links",
            "type": "array",
            "description": "Links to PNG, JPEG, WebP, GIF, BMP, TIFF or HEIC images, Google Drive or Dropbox share links, web pages that declare a main image, or base64 data: URLs (data:image/png;base64,...). Instagram, Facebook, X, TikTok and Pinterest links aren't supported because their terms don't allow downloading.",
            "items": {
              "type": "string"
            }
          },
          "files": {
            "title": "Upload images",
            "type": "array",
            "description": "Upload images from your computer, or pick files you already stored in an Apify key-value store."
          },
          "preset": {
            "title": "Kind of image",
            "enum": [
              "auto",
              "logo",
              "illustration",
              "lineart",
              "photo",
              "pixelart"
            ],
            "type": "string",
            "description": "Auto reads the image: flat logos and icons, illustrations with more colors, black-and-white line art and scans, photos, and pixel art (including sprites saved at 2x, 4x or 8x).",
            "default": "auto"
          },
          "colors": {
            "title": "Number of colors",
            "minimum": 2,
            "maximum": 64,
            "type": "integer",
            "description": "How many colors the drawing uses. Empty: the image's own main colors, without anti-aliased edges and JPEG noise. Set it to merge similar shades (fewer) or keep subtle ones (more)."
          },
          "curves": {
            "title": "Curves",
            "enum": [
              "smooth",
              "polygon",
              "pixel"
            ],
            "type": "string",
            "description": "Smooth: Bézier curves, the best look for most images. Straight lines: polygons only, for cutters and tools that don't take curves. Pixel edges: follows the pixels exactly.",
            "default": "smooth"
          },
          "detail": {
            "title": "Detail",
            "enum": [
              "low",
              "medium",
              "high"
            ],
            "type": "string",
            "description": "How small a patch can be and still become its own shape. Low drops specks and makes smaller files; high keeps fine detail.",
            "default": "medium"
          },
          "removeBackground": {
            "title": "Transparent background",
            "type": "boolean",
            "description": "Leave out the color that covers most of the image's edges (such as a white or colored background), everywhere it appears, so the drawing sits on transparency.",
            "default": false
          },
          "outputWidth": {
            "title": "Physical width",
            "type": "string",
            "description": "Draw the SVG, PDF and DXF at a real size, such as 100 mm, 12.5 cm or 4 in, with the height in proportion. Empty: the input's size in pixels (the DXF then uses 96 pixels per inch, in mm)."
          },
          "formats": {
            "title": "Extra files",
            "type": "array",
            "description": "Files to make besides the SVG, the PNG preview and the before-and-after image.",
            "items": {
              "type": "string",
              "enum": [
                "pdf",
                "dxf"
              ],
              "enumTitles": [
                "PDF (vector, for print)",
                "DXF (closed outlines for laser, vinyl and CNC cutters)"
              ]
            }
          },
          "maxImages": {
            "title": "Max images",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Stop after this many images (up to 200 per run).",
            "default": 200
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}