{
  "openapi": "3.0.1",
  "info": {
    "title": "Image Watermark Remover — Batch Remove Logos & Stamps",
    "description": "Remove watermarks, logos and date stamps from up to 20 image URLs per run via API. Get JPG, PNG or WebP files plus before/after previews. USD 0.05 per image.",
    "version": "1.0",
    "x-build-id": "kTtXXVuCy8iWoHiZc"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/muhammadafzal~ai-image-watermark-remover/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-muhammadafzal-ai-image-watermark-remover",
        "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/muhammadafzal~ai-image-watermark-remover/runs": {
      "post": {
        "operationId": "runs-sync-muhammadafzal-ai-image-watermark-remover",
        "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/muhammadafzal~ai-image-watermark-remover/run-sync": {
      "post": {
        "operationId": "run-sync-muhammadafzal-ai-image-watermark-remover",
        "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": [
          "imageUrls"
        ],
        "properties": {
          "imageUrls": {
            "title": "Image URLs",
            "minItems": 1,
            "maxItems": 20,
            "type": "array",
            "description": "Public HTTPS URLs of JPG, PNG, or WebP images to clean. Provide 1–20 URLs. The prefilled sample is a beach photo with a camera date stamp in the bottom-right corner. Private IP ranges, localhost, credentials, and animated GIFs are rejected.",
            "items": {
              "type": "string"
            }
          },
          "detectionMode": {
            "title": "Detection mode",
            "enum": [
              "auto",
              "corner_bottom_right",
              "corner_bottom_left",
              "corner_top_right",
              "corner_top_left",
              "all_corners",
              "bottom_banner",
              "center",
              "full_image",
              "manual_boxes"
            ],
            "type": "string",
            "description": "Use a corner, bottom_banner, or center mode when you know where the watermark sits; it is faster and changes nothing else. 'auto' scans the corners, bottom strip, and center and can also alter real detail on photos without a watermark. 'manual_boxes' uses your coordinates. Example: corner_bottom_right.",
            "default": "auto"
          },
          "inpaintMethod": {
            "title": "Inpainting algorithm",
            "enum": [
              "hybrid",
              "telea",
              "ns"
            ],
            "type": "string",
            "description": "Algorithm used to reconstruct background under watermarks. 'hybrid' combines Navier-Stokes contour continuation with texture noise synthesis to avoid blurry smudges. 'telea' uses Fast Marching method for smooth gradients. 'ns' uses Navier-Stokes fluid dynamics.",
            "default": "hybrid"
          },
          "maskDilation": {
            "title": "Mask dilation radius (px)",
            "minimum": 1,
            "maximum": 25,
            "type": "integer",
            "description": "Number of pixels to expand the watermark mask. Expanding the mask slightly ensures antialiased semi-transparent text edges and halos are completely eliminated. Enter 1–25; default is 5.",
            "default": 5
          },
          "outputFormat": {
            "title": "Output format",
            "enum": [
              "jpeg",
              "png",
              "webp"
            ],
            "type": "string",
            "description": "Image format of the cleaned output file. JPEG is compact, PNG is lossless, and WebP offers high compression quality; default is JPEG.",
            "default": "jpeg"
          },
          "quality": {
            "title": "Output quality",
            "minimum": 60,
            "maximum": 100,
            "type": "integer",
            "description": "Encoding compression quality from 60 to 100 for JPEG or WebP output. Default is 92; ignored for PNG.",
            "default": 92
          },
          "maxDimension": {
            "title": "Max image dimension (px)",
            "minimum": 512,
            "maximum": 6000,
            "type": "integer",
            "description": "Caps the longest image side in pixels before inpainting. Enter 512–6000; default is 4096. Smaller images are never upscaled.",
            "default": 4096
          },
          "createComparison": {
            "title": "Generate before/after comparison",
            "type": "boolean",
            "description": "Create and save a side-by-side Before/After comparison JPEG in the Key-Value Store alongside the cleaned image.",
            "default": true
          },
          "includeBase64": {
            "title": "Include base64 in dataset",
            "type": "boolean",
            "description": "Include a data:image/... base64 string directly in each dataset record for seamless low-code integration in n8n, Make, or Zapier. Keep this or 'Save images to Key-Value Store' on; a run with both off is rejected before any image is processed.",
            "default": false
          },
          "saveToKeyValueStore": {
            "title": "Save images to Key-Value Store",
            "type": "boolean",
            "description": "Save cleaned image files and comparison previews to the Actor Key-Value Store with public download URLs. Keep this or 'Include base64 in dataset' on; a run with both off is rejected before any image is processed.",
            "default": true
          },
          "maxConcurrency": {
            "title": "Parallel image processing",
            "minimum": 1,
            "maximum": 4,
            "type": "integer",
            "description": "Number of images to process simultaneously. Enter 1–4; default is 2.",
            "default": 2
          },
          "manualBoxes": {
            "title": "Manual watermark boxes",
            "type": "array",
            "description": "Custom bounding boxes when detectionMode is set to 'manual_boxes'. Enter absolute pixel coordinates ({x, y, width, height}) or percentages ({xPercent, yPercent, widthPercent, heightPercent}).",
            "items": {
              "type": "object"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}