SnapEditDocs
API Reference

Erase wires/lines from image

remove-wireline

Remove wires, cables, and line objects from an image using a mask. input_mask can come from the Detect Wires API and may be manually modified before removal.

post/v1/images/remove-wires

Credit cost: 4

AuthorizationThis endpoint requires an API key. Pass it in the api-key header on every request. See the quickstart

Body

NameTypeStatusDescription
input_image
fileRequiredImage file or URL to erase wires from.
input_mask
fileRequiredWire mask image file or URL. Can be generated by the Detect Wires API and modified manually.

Responses

Wires erased successfullySingleImageResponse

NameTypeDescription
createdintegerUnix timestamp of when the response was created
dataobject[]
urlstringURL to download the result image
curl -X POST "https://api.snapapi.ai/v1/images/remove-wires" \
  -H "api-key: YOUR_API_KEY" \
  -F "input_image=@./image.jpg" \
  -F "input_mask=@./image.png"
Response
{
  "created": 1745827200,
  "data": [
    {
      "url": "https://outputs.snapapi.ai/outputs/abc123.png"
    }
  ]
}

Examples

(1 example)

Input

Input 1Input 2

Output

Output