Skip to main content

Object Eraser API

spicyapi/object-eraser-v1/edit

Object Eraser by SpicyAPI removes objects from a photo and fills the gap with background that continues the scene. Name them in a few words, paint a mask, or use both; the result keeps the original size and comes back as PNG, JPEG or WebP.

From $0.03/image

Workbench

Input

Image editing
Provide at least one of theseRequirement met
58/1000
What to remove, in a few plain words with a position when there is more than one: "the red car on the left". Name something that is really in the photo, otherwise it comes back unchanged. at least 1 characters · at most 1000 characters
0/1

Drop files or media links, paste, or browse · 1 file · Max 10 MB · JPG · PNG · WEBP

0 / 1 files
Optional black-and-white image the same size as the photo: white marks what to remove, black what to keep. Use it when a description could point at the wrong object. at least 1 characters
1/1

Drop files or media links, paste, or browse · 1 file · Max 10 MB · JPG · PNG · WEBP

  • 1
1 / 1 files
The photo to clean up, as JPEG, PNG or WebP. at least 1 characters
Output format
PNGJPEGWebP
PNG keeps every edge lossless and is the default; JPEG and WebP give smaller files.
Safety checkerOff

SpicyAPI does not run a safety checker on this model. Your prompt and media go to the model as written, and the model itself decides what comes back.

Checking your account before enabling submission and pricing.

~20 s

Output

Ready for a new run

Your result will appear here.

Configure the inputs, review the estimate, then run the model.

Related models and next tasks

Missing the model you need?

Point at it, and it's gone — the scene fills itself back in

Name the object in a few plain words or paint it white on a mask, and the photo comes back without it. The gap is rebuilt from the surroundings — floorboards continue, walls keep their texture, light keeps falling the same way — so the result reads as an untouched photograph, at the size you sent.

Clean up a photo
Point at it, and it's gone — the scene fills itself back in
Request
image_url plus prompt, mask_url, or both
Returns
The same photo without the object, original size
Formats
PNG by default, JPEG or WebP on request
Billing
Per output image, however many objects you remove
Two ways to point
Words, a mask, or bothA short prompt for distinct objects; a black-and-white mask when you need to be exact.
What changes
Only what you selectedFraming, resolution and everything outside the selection come back as they were.
How long it takes
About 10 to 30 secondsThat was the end-to-end range across our test runs, mask or no mask.

What Object Eraser does well

  • A sentence is often enough

    In our test a wooden ladle lying across sauna stones disappeared from words alone, and the stones underneath were rebuilt where the handle had crossed them.

  • A mask when words miss

    A tall rack at the edge of a frame survived two differently worded prompts, then went on the first try with a mask. Thin objects at the border are the classic case.

  • Fills that follow the scene

    The gap is not blurred or smeared: it is rebuilt from what surrounds it, so the edit holds up in a listing, a portfolio or a print.

  • Several small objects, one charge

    Cables, tags and stray packaging can go in the same request; the price is per output image, not per object.

Who uses Object Eraser

  • One stray thing, no reshoot

    Shops and property listings

    One stray thing, no reshoot

    Take out a cable, a price tag, a bin or a stray utensil from a shot that is otherwise ready, instead of booking the room or the product again.

  • Give the subject the frame back

    Travel and event photographers

    Give the subject the frame back

    Clear gear, bystanders or scaffolding out of the background so the person or the landmark finally has the picture to itself.

  • Exact control with a mask

    Editors and retouchers

    Exact control with a mask

    Paint the pixels you want gone and send the mask with the photo. That is how you remove only one of two similar objects, or just part of a fence.

How to call Object Eraser

  1. Say what to remove, and where

    A noun, a colour or material, and a position: "the wooden bench on the left". Naming something that isn't in the photo returns it unchanged — and still counts as a completed request.

  2. Or send a mask the same size

    White over what should go, black over what should stay, at the photo's exact width and height. Paint a little past the edge so outlines and shadows go too.

  3. Poll, then download

    Create the task, poll or take a callback, and fetch the edited photo. For big or overlapping removals, run one pass per object.

Real results from our test runs

  • Removed by description only

    The ladle across the sauna stones was named by material and position, with no mask. It came back gone, and the stones beneath the old handle were filled in.

    {
      "image_url": "https://cdn.spicyapi.ai/models/examples/inputs/fbc8d531c80e6d0d.jpeg",
      "prompt": "the wooden ladle lying across the sauna stones at the left"
    }
    Input
    Removed by description only — Input
    Result
    Removed by description only — Result
  • Removed with a mask

    The black rack by the right-hand window was painted white on a black mask the size of the photo, with no prompt. The rack is gone and the gap is filled with plain wall, but the strip of window that showed through the rack went with it. Anything visible only through the object you remove can be lost, so check that area before you publish.

    {
      "image_url": "https://cdn.spicyapi.ai/models/examples/inputs/d38af287838aa825.png",
      "mask_url": "https://cdn.spicyapi.ai/models/examples/inputs/db1e9e9e301e81f4.png"
    }
    Input
    Removed with a mask — Input
    Result
    Removed with a mask — Result

Object Eraser questions

Where it fits

Object Eraser removes and fills; it never adds anything new. Clear a corner here, then widen the whole frame with Image Expander, or cut the subject out with Background Remover when it is the background you want gone.