---
title: Object Eraser | Runware Docs
url: https://runware.ai/docs/models/object-eraser
description: Targeted object removal with mask-based inpainting
---
# Object Eraser

![Object Eraser](https://assets.runware.ai/covers/object-eraser.jpg)

Object Eraser is an image editing model that removes selected objects from an image using a provided mask. It performs targeted inpainting to reconstruct missing regions while preserving surrounding structure, lighting, and scene continuity. Optional prompt conditioning allows control over the fill result, enabling texture matching, contextual completion, and alignment with the original image content.

- **Status**: live
- **ID**: `runware:300@1`
- Try in Playground
- **Release Date**: January 19, 2026
- **Zero Data Retention**: Yes
- **Capabilities**: Image to Image, Edit, Checkpoint

## Pricing

$0.0045 from, per run · ~49s per request

**Measured runs**

- steps 5 · 1024×1024 input: `$0.0045` (~29s)

**4 example generations**

- [inpaint](https://runware.ai/docs/models/object-eraser/examples#example-wildland-commander-headshot-clean-plate): `$0.0032` (~49s)
- [inpaint](https://runware.ai/docs/models/object-eraser/examples#example-opera-scenic-mural-restoration): `$0.0038` (~1m 3s)
- [inpaint](https://runware.ai/docs/models/object-eraser/examples#example-risograph-atrium-photo-restyle): `$0.0051` (~1m 2s)
- [inpaint](https://runware.ai/docs/models/object-eraser/examples#example-geothermal-exhibit-panoramic-clean-plate) · steps 5: `$0.0064` (~39s)

billed by compute time, so a request costs what it took · times vary, measured end to end · [How pricing works](https://runware.ai/docs/models-api/pricing)

## Request Parameters

**API Options**

Platform-level options for task execution and delivery.

### [taskType](https://runware.ai/docs/models/object-eraser#request-tasktype)

- **Type**: `string`
- **Required**: true
- **Value**: `imageInference`

Identifier for the type of task being performed.

### [taskUUID](https://runware.ai/docs/models/object-eraser#request-taskuuid)

- **Type**: `string`
- **Required**: true
- **Format**: `UUID v4`

UUID v4 identifier for tracking tasks and matching async responses. Must be unique per task.

### [outputType](https://runware.ai/docs/models/object-eraser#request-outputtype)

- **Type**: `string`
- **Default**: `URL`

Image output type.

**Allowed values**: `URL` `base64Data` `dataURI`

### [outputFormat](https://runware.ai/docs/models/object-eraser#request-outputformat)

- **Type**: `string`
- **Default**: `JPG`

Specifies the file format of the generated output. The available values depend on the task type and the specific model's capabilities.

- \`JPG\`: Best for photorealistic images with smaller file sizes (no transparency).
- \`PNG\`: Lossless compression, supports high quality and transparency (alpha channel).
- \`WEBP\`: Modern format providing superior compression and transparency support.

> [!NOTE]
> \*\*Transparency\*\*: If you are using features like background removal or LayerDiffuse that require transparency, you must select a format that supports an alpha channel (e.g., \`PNG\`, \`WEBP\`, \`TIFF\`). \`JPG\` does not support transparency.

**Allowed values**: `JPG` `PNG` `WEBP`

### [outputQuality](https://runware.ai/docs/models/object-eraser#request-outputquality)

- **Type**: `integer`
- **Min**: `20`
- **Max**: `99`
- **Default**: `95`

Compression quality of the output. Higher values preserve quality but increase file size.

### [webhookURL](https://runware.ai/docs/models/object-eraser#request-webhookurl)

- **Type**: `string`
- **Format**: `uri`

Webhook URL that receives JSON responses via HTTP POST when generation tasks complete. For batch requests with multiple results, each completed item triggers a separate webhook call as it becomes available.

**Learn more** (1 resource):

- [Webhooks](https://runware.ai/docs/models-api/webhooks) (platform)

### [deliveryMethod](https://runware.ai/docs/models/object-eraser#request-deliverymethod)

- **Type**: `string`
- **Default**: `sync`

Determines how the API delivers task results.

**Allowed values**:

- `sync` Returns results directly in the API response. Over HTTP, a task still running after 120 seconds continues as an async task and comes back with status 'processing'. Poll for its results using getResponse.
- `async` Returns an immediate acknowledgment with the task UUID. Poll for results using getResponse.

**Learn more** (1 resource):

- [Task Polling](https://runware.ai/docs/models-api/task-polling) (platform)

### [uploadEndpoint](https://runware.ai/docs/models/object-eraser#request-uploadendpoint)

- **Type**: `string`
- **Format**: `uri`

Specifies a URL where the generated content will be automatically uploaded using the HTTP PUT method. The raw binary data of the media file is sent directly as the request body. For secure uploads to cloud storage, use presigned URLs that include temporary authentication credentials.

**Common use cases:**

- **Cloud storage**: Upload directly to S3 buckets, Google Cloud Storage, or Azure Blob Storage using presigned URLs.
- **CDN integration**: Upload to content delivery networks for immediate distribution.

```text
// S3 presigned URL for secure upload
https://your-bucket.s3.amazonaws.com/generated/content.mp4?X-Amz-Signature=abc123&X-Amz-Expires=3600

// Google Cloud Storage presigned URL
https://storage.googleapis.com/your-bucket/content.jpg?X-Goog-Signature=xyz789

// Custom storage endpoint
https://storage.example.com/uploads/generated-image.jpg
```

The content data will be sent as the request body to the specified URL when generation is complete.

### [safety](https://runware.ai/docs/models/object-eraser#request-safety)

- **Path**: `safety.checkContent`
- **Type**: `object (1 property)`

Content safety checking configuration for image generation.

#### [checkContent](https://runware.ai/docs/models/object-eraser#request-safety-checkcontent)

- **Path**: `safety.checkContent`
- **Type**: `boolean`

Enable or disable content safety checking. Increases total generation time and adds a small charge on top of the generation cost.

### [ttl](https://runware.ai/docs/models/object-eraser#request-ttl)

- **Type**: `integer`
- **Min**: `60`

Time-to-live (TTL) in seconds for generated content. Only applies when `outputType` is `URL`.

### [includeCost](https://runware.ai/docs/models/object-eraser#request-includecost)

- **Type**: `boolean`

Include task cost in the response.

### [numberResults](https://runware.ai/docs/models/object-eraser#request-numberresults)

- **Type**: `integer`
- **Min**: `1`
- **Max**: `20`
- **Default**: `1`

Number of results to generate. Each result uses a different seed, producing variations of the same parameters.

**Inputs**

Input resources for the task (images, audio, etc). These must be nested inside the \`inputs\` object.

### [image](https://runware.ai/docs/models/object-eraser#request-inputs-image)

- **Path**: `inputs.image`
- **Type**: `string`
- **Required**: true

Image input (UUID, URL, Data URI, or Base64).

### [mask](https://runware.ai/docs/models/object-eraser#request-inputs-mask)

- **Path**: `inputs.mask`
- **Type**: `string`
- **Required**: true

Image used to specify which areas of the input image should be edited (UUID, URL, Data URI, or Base64). White marks the area to edit, black is preserved.

**Learn more** (1 resource):

- [Image Inpainting: Seed And Mask Image The Foundation](https://runware.ai/docs/learn/image-inpainting#seed-and-mask-image-the-foundation) (learn)

**Core Parameters**

Primary parameters that define the task output.

### [model](https://runware.ai/docs/models/object-eraser#request-model)

- **Type**: `string`
- **Required**: true
- **Value**: `runware:300@1`

Send `auto` instead of an AIR identifier to have the model router choose the model for this task. The rest of the request is unchanged, every value you send is kept, and only the parameters you leave out are filled in. See [Model Router](https://runware.ai/docs/models-api/model-router).

**Learn more** (3 resources):

- [Text To Image: Model Selection](https://runware.ai/docs/learn/text-to-image#model-selection) (learn)
- [Image Inpainting: Model Specialized Inpainting Models](https://runware.ai/docs/learn/image-inpainting#model-specialized-inpainting-models) (learn)
- [Image Outpainting: Other Critical Parameters](https://runware.ai/docs/learn/image-outpainting#other-critical-parameters) (learn)

### [positivePrompt](https://runware.ai/docs/models/object-eraser#request-positiveprompt)

- **Type**: `string`
- **Min**: `2`
- **Max**: `3000`

Text prompt describing elements to include in the generated output.

**Learn more** (1 resource):

- [Prompts](https://runware.ai/docs/learn/prompts) (learn)

### [seed](https://runware.ai/docs/models/object-eraser#request-seed)

- **Type**: `integer`
- **Min**: `0`
- **Max**: `9223372036854776000`

Random seed for reproducible generation. When not provided, a random seed is generated in the unsigned 32-bit range.

**Learn more** (1 resource):

- [Seed](https://runware.ai/docs/learn/seed) (learn)

### [steps](https://runware.ai/docs/models/object-eraser#request-steps)

- **Type**: `integer`
- **Min**: `1`
- **Max**: `5`
- **Default**: `4`

Total number of denoising steps. Higher values generally produce more detailed results but take longer.

**Learn more** (1 resource):

- [Steps](https://runware.ai/docs/learn/steps) (learn)

### [CFGScale](https://runware.ai/docs/models/object-eraser#request-cfgscale)

- **Type**: `float`
- **Min**: `1`
- **Max**: `10`
- **Step**: `0.01`
- **Default**: `1`

Guidance scale representing how closely the output will resemble the prompt. Higher values produce results more aligned with the prompt.

**Learn more** (1 resource):

- [Cfg Scale](https://runware.ai/docs/learn/cfg-scale) (learn)

**Features**

Standalone addons and post-processing features.

### [watermark](https://runware.ai/docs/models/object-eraser#request-advancedfeatures-watermark)

- **Path**: `advancedFeatures.watermark`
- **Type**: `object (6 properties)`

Configuration object for adding watermarks to generated videos. Watermarks can be applied using either text or image content with customizable positioning and appearance. You must provide either `text` or `image` content for the watermark, but not both.

**Text watermark**:

```json
"advancedFeatures": {
  "watermark": {
    "text": "© 2025 Company",
    "displayPosition": "bottom-right",
    "opacity": 0.6,
    "fontColor": "#ffffff",
    "bgColor": "#000000"
  }
}
```

**Image watermark**:

```json
"advancedFeatures": {
  "watermark": {
    "image": "c64351d5-4c59-42f7-95e1-eace013eddab",
    "displayPosition": "top-left",
    "opacity": 0.6
  }
}
```

**Tiled watermark**:

```json
"advancedFeatures": {
  "watermark": {
    "text": "PREVIEW",
    "tiled": true,
    "opacity": 0.4,
    "fontColor": "#cccccc"
  }
}
```

#### [text](https://runware.ai/docs/models/object-eraser#request-advancedfeatures-watermark-text)

- **Path**: `advancedFeatures.watermark.text`
- **Type**: `string`
- **Min**: `2`
- **Max**: `32`

Watermark text.

#### [image](https://runware.ai/docs/models/object-eraser#request-advancedfeatures-watermark-image)

- **Path**: `advancedFeatures.watermark.image`
- **Type**: `string`

Watermark image (UUID, URL, Data URI, or Base64).

#### [displayPosition](https://runware.ai/docs/models/object-eraser#request-advancedfeatures-watermark-displayposition)

- **Path**: `advancedFeatures.watermark.displayPosition`
- **Type**: `string`

Watermark position.

**Allowed values**: `top-left` `top-center` `top-right` `center-left` `center-center` `center-right` `bottom-left` `bottom-center` `bottom-right` `tiled`

#### [opacity](https://runware.ai/docs/models/object-eraser#request-advancedfeatures-watermark-opacity)

- **Path**: `advancedFeatures.watermark.opacity`
- **Type**: `float`
- **Min**: `0.1`
- **Max**: `1`
- **Step**: `0.01`

Watermark opacity.

#### [fontColor](https://runware.ai/docs/models/object-eraser#request-advancedfeatures-watermark-fontcolor)

- **Path**: `advancedFeatures.watermark.fontColor`
- **Type**: `string`

Text color in hex format.

#### [bgColor](https://runware.ai/docs/models/object-eraser#request-advancedfeatures-watermark-bgcolor)

- **Path**: `advancedFeatures.watermark.bgColor`
- **Type**: `string`

Background color in hex format.

## Response Parameters

### [taskType](https://runware.ai/docs/models/object-eraser#response-tasktype)

- **Type**: `string`
- **Required**: true
- **Value**: `imageInference`

Identifier for the type of task this response belongs to.

### [taskUUID](https://runware.ai/docs/models/object-eraser#response-taskuuid)

- **Type**: `string`
- **Required**: true
- **Format**: `UUID v4`

UUID v4 identifier echoed from the original request, used to match async responses to their tasks.

### [imageUUID](https://runware.ai/docs/models/object-eraser#response-imageuuid)

- **Type**: `string`
- **Required**: true
- **Format**: `UUID v4`

UUID of the output image.

### [imageURL](https://runware.ai/docs/models/object-eraser#response-imageurl)

- **Type**: `string`
- **Format**: `uri`

URL of the output image.

### [imageBase64Data](https://runware.ai/docs/models/object-eraser#response-imagebase64data)

- **Type**: `string`

Base64-encoded image data.

### [imageDataURI](https://runware.ai/docs/models/object-eraser#response-imagedatauri)

- **Type**: `string`
- **Format**: `uri`

Data URI of the output image.

### [seed](https://runware.ai/docs/models/object-eraser#response-seed)

- **Type**: `integer`

The seed used for generation. If none was provided, shows the randomly generated seed.

### [NSFWContent](https://runware.ai/docs/models/object-eraser#response-nsfwcontent)

- **Type**: `boolean`

Flag indicating if NSFW content was detected.

### [cost](https://runware.ai/docs/models/object-eraser#response-cost)

- **Type**: `float`

Task cost in USD. Present when `includeCost` is set to `true` in the request.

## Examples

### inpaint (inpaint)

![Opera Scenic Mural Restoration](https://assets.runware.ai/examples/object-eraser/18a39d7a-0220-4d81-8989-9d9d9753e1f3.jpg)

```json
{
  "taskType": "imageInference",
  "taskUUID": "82b0bdef-fe70-4587-9253-2f89b9c62ccf",
  "model": "runware:300@1",
  "positivePrompt": "Remove the entire matte-black cardboard scale figure. Reconstruct the newly exposed section of the moonlit harbor cyclorama as though the figure had never been present. Continue the surrounding Art Nouveau scenic artwork seamlessly: layered indigo water, oxidized-teal clouds, silver moonlight, sweeping curved forms, broad hand-painted gouache strokes, subtle canvas texture and period theatrical pigment variation. Match the existing composition, brush direction, perspective, color transitions, illumination and surface wear exactly. Preserve every unmasked area of the archival photograph.",
  "inputs": {
    "image": "https://assets.runware.ai/assets/inputs/c3a5e0c5-67af-4577-a6b9-14246c7a14cf.jpg",
    "mask": "https://assets.runware.ai/assets/inputs/0233bbb8-4157-4709-9853-5d657a9fae87.png"
  }
}
```

---

### inpaint (inpaint)

![Geothermal Exhibit Panoramic Clean Plate](https://assets.runware.ai/examples/object-eraser/e435cbf0-2527-4f16-a233-50160f810aa1.jpg)

```json
{
  "taskType": "imageInference",
  "taskUUID": "09e38d35-8398-444d-acb5-43d2c1ab5016",
  "model": "runware:300@1",
  "positivePrompt": "Remove the entire orange monitoring pod and reconstruct the geothermal terrace hidden behind it as a seamless panoramic clean plate. Continue the pale mineral shelf contours, thin turquoise water channels, subtle reflections, surface cracks, damp textures, drifting dawn mist, and soft ambient shadows with correct perspective. Match the surrounding cool overcast illumination, natural cyan and chalk-white color, documentary realism, lens character, grain, and depth. The repaired area must be indistinguishable from the original landscape, with no remaining equipment, silhouette, artificial patch, repeated texture, edge halo, or invented focal object.",
  "seed": 184726,
  "steps": 5,
  "CFGScale": 3.5,
  "inputs": {
    "image": "https://assets.runware.ai/assets/inputs/d22dd263-eb69-4b9c-9472-1a4baefcd28c.jpg",
    "mask": "https://assets.runware.ai/assets/inputs/ad32226b-ba2d-41ba-9d17-a8141230ff89.png"
  }
}
```

---

### inpaint (inpaint)

![Risograph Atrium Photo Restyle](https://assets.runware.ai/examples/object-eraser/4838e442-2fc6-44ad-b2e3-7fc1f7ce988d.jpg)

```json
{
  "taskType": "imageInference",
  "taskUUID": "64906f29-fc80-45c2-a412-4bd9b844ff25",
  "model": "runware:300@1",
  "positivePrompt": "Remove the masked folding caution sign completely. Reconstruct the newly exposed terrazzo floor as a seamless continuation of the surrounding geometric tile pattern, including correct perspective, grout alignment, soft daylight, and subtle floor shading. Match the existing limited-color risograph treatment exactly: celadon, navy, cream, and persimmon ink layers, coarse halftone grain, flat graphic shapes, and slight print misregistration. Preserve all unmasked architecture and composition. Leave no object fragments, silhouette, halo, replacement object, or artificial patch.",
  "inputs": {
    "image": "https://assets.runware.ai/assets/inputs/4703dcf3-704b-48b3-ab7e-0ef9d2d6cbf9.jpg",
    "mask": "https://assets.runware.ai/assets/inputs/efdc2a39-2b8e-4350-8745-889d5a1e0320.png"
  }
}
```

---

### inpaint (inpaint)

![Wildland Commander Headshot Clean Plate](https://assets.runware.ai/examples/object-eraser/36667091-ef19-4f18-b730-e36214a3d54a.jpg)

```json
{
  "taskType": "imageInference",
  "taskUUID": "6541a7f2-d80f-4dde-b3d9-09d72ac8b621",
  "model": "runware:300@1",
  "positivePrompt": "Remove the entire foreground portrait sitter and reconstruct the newly exposed sage-green muslin studio backdrop as a seamless clean plate. Continue the hand-painted fabric texture, gentle tonal mottling, soft camera-left illumination, subtle edge vignette, and fine analog grain naturally through the erased area. Match the surrounding backdrop precisely in color, texture, focus, lighting falloff, and scale. Leave no person, clothing, hair, silhouette, halo, cutout edge, or residual artifact. The finished image should look like the original empty backdrop photographed under the same studio lighting.",
  "inputs": {
    "image": "https://assets.runware.ai/assets/inputs/3c0d0f0b-971b-40bc-b891-af90fc129bd1.jpg",
    "mask": "https://assets.runware.ai/assets/inputs/b845f439-e9cb-4a5d-aba9-ce1e15e8ae8c.png"
  }
}
```