> For the complete documentation index, see [llms.txt](https://developer.topazlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.topazlabs.com/image-models/removal-and-cleanup/dust-and-scratch-2.md).

# Dust & Scratch 2

Automatic blemish cleanup

### Model Overview

**Dust & Scratch 2** is a second generation cleanup model that automatically detects and removes dust, specks, and small blemishes across the entire image while better preserving original detail.

Designed for film scans, archival photos, and damaged prints.

### Key Capabilities

* Automatically identifies and removes dust and minor surface artifacts
* Cleans the entire image in a single pass
* Ideal for fast cleanup of scanned or archival photos

### Model Pricing

<table data-header-hidden data-full-width="false"><thead><tr><th width="119.84765625">Text</th><th width="60.390625" data-type="number">Number</th><th width="59.5390625" data-type="number"></th><th width="60.0859375" data-type="number"></th><th width="60.265625" data-type="number"></th><th width="59.94140625" data-type="number"></th><th width="59.5390625" data-type="number"></th><th width="60.34375" data-type="number"></th><th width="59.9296875" data-type="number"></th><th width="59.828125" data-type="number"></th><th width="59.5078125" data-type="number"></th></tr></thead><tbody><tr><td><code>Output MP</code></td><td>1</td><td>4</td><td>8</td><td>16</td><td>24</td><td>32</td><td>40</td><td>50</td><td>64</td><td>100</td></tr><tr><td><code>Credits</code></td><td>1</td><td>1</td><td>1</td><td>1</td><td>1</td><td>2</td><td>2</td><td>3</td><td>3</td><td>5</td></tr></tbody></table>

### Getting Started

**Endpoint**

* <https://api.topazlabs.com/image/v1/restore-gen/async>
  * `model` — `"Dust-Scratch V2"`

<details>

<summary><strong>Endpoint-Specific Parameters</strong></summary>

* `grain` — boolean, default `false`
* `grainModel` — `"silver rich"`, `"gaussian"`, or `"grey"`, default `"silver rich"` *(required if `grain=true`)*
* `grainStrength` — integer between 0 and 60, default 30 *(required if `grain=true`)*
* `grainDensity` — integer between 0 and 60, default 30 *(required if `grain=true`)*
* `grainSize` — integer between 1 and 5, default 1 *(required if `grain=true`)*

These parameters are **automatically** configured and do not require or accept any selection from the user.

</details>

**Model-Specific Parameters**

* No parameters

**Resolution Limits**

* `input` — 256 MP
* `output` — 256 MP

### Examples

<table data-card-size="large" data-view="cards"><thead><tr><th align="center"></th><th data-hidden data-card-cover data-type="image">Cover image</th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td align="center">Click to view</td><td><a href="https://4007072434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJkSwaYgAsTQke14gpXAF%2Fuploads%2FoZTDAWOnOuDlznw3tjZa%2FDust__Scratch_2_(Ex_1)_slider.jpg?alt=media&amp;token=c2694b86-aef6-4e31-807f-9e7d87de9524">Dust__Scratch_2_(Ex_1)_slider.jpg</a></td><td><a href="https://compare.topazlabs.com/share/image?src1=https%3A%2F%2Fdownloads.topazlabs.com%2Fweb-assets%2Fmodel-examples%2Ftatiana-gonzales-5GJjPvx4G9g-unsplash.jpg&#x26;src1label=Before&#x26;src2=https%3A%2F%2Fdownloads.topazlabs.com%2Fweb-assets%2Fmodel-examples%2Ftatiana-gonzales-5GJjPvx4G9g-unsplash-topaz-dust.jpg&#x26;src2label=After&#x26;zoom=1">https://compare.topazlabs.com/share/image?src1=https%3A%2F%2Fdownloads.topazlabs.com%2Fweb-assets%2Fmodel-examples%2Ftatiana-gonzales-5GJjPvx4G9g-unsplash.jpg&#x26;src1label=Before&#x26;src2=https%3A%2F%2Fdownloads.topazlabs.com%2Fweb-assets%2Fmodel-examples%2Ftatiana-gonzales-5GJjPvx4G9g-unsplash-topaz-dust.jpg&#x26;src2label=After&#x26;zoom=1</a></td></tr><tr><td align="center">Click to view</td><td><a href="https://4007072434-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FJkSwaYgAsTQke14gpXAF%2Fuploads%2FkSBRtlYbhmX0ZQJdlQvH%2FDust__Scratch_2_(Ex_2)_slider.jpg?alt=media&amp;token=8819dcbb-1949-4716-8e74-b6070c5c269b">Dust__Scratch_2_(Ex_2)_slider.jpg</a></td><td><a href="https://compare.topazlabs.com/share/image?src1=https%3A%2F%2Fdownloads.topazlabs.com%2Fweb-assets%2Fmodel-examples%2Fannie-spratt-7jCUHhhnXAo-unsplash.jpg&#x26;src1label=Before&#x26;src2=https%3A%2F%2Fdownloads.topazlabs.com%2Fweb-assets%2Fmodel-examples%2Fannie-spratt-7jCUHhhnXAo-unsplash-topaz-dust.jpg&#x26;src2label=After&#x26;zoom=1">https://compare.topazlabs.com/share/image?src1=https%3A%2F%2Fdownloads.topazlabs.com%2Fweb-assets%2Fmodel-examples%2Fannie-spratt-7jCUHhhnXAo-unsplash.jpg&#x26;src1label=Before&#x26;src2=https%3A%2F%2Fdownloads.topazlabs.com%2Fweb-assets%2Fmodel-examples%2Fannie-spratt-7jCUHhhnXAo-unsplash-topaz-dust.jpg&#x26;src2label=After&#x26;zoom=1</a></td></tr></tbody></table>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developer.topazlabs.com/image-models/removal-and-cleanup/dust-and-scratch-2.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
