API Reference

Erase wires/lines from image

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.

Model:remove-wireline
Credit:2
post/v1/images/remove-wires

Authorization — This endpoint requires an API key. Pass it in the api-key header on every request. Learn more

Average processing time

Per request.

Processing time
≈ 1.6 s

Input requirements

Images

Formats
JPEG, PNG, WEBP
Maximum resolution
3000 × 3000 px
View all input requirements

Parameters

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

FieldTypeDescription
createdintegerUnix timestamp of when the response was created
dataobject[]
urlstringURL to download the result image
curl -X POST "https://api.snapedit.app/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.snapedit.app/outputs/abc123.png"
    }
  ]
}

Examples (1 example)

Input

Input 1Input 2

Output

Output