ReplicateImage to imageComing soon

topazlabs/dust-and-scratch-v2

topazlabs/dust-and-scratch-v2 is an image to image tool from Replicate that runs in the background and returns images. Coming soon: listed with its price, not yet open to runs.

This tool is listed but not yet available to run.

Price pending

Pricing

Price pending.

Limits

Runs
In the background
Returns
image
Longest queue wait
3600s
Run deadline
1800s
Largest inline input
1024 KB
Largest input file
500 MB
Largest output
4768 MB
Outputs per run
16

Input

FieldKindDefaultDescription
image requiredURL or file—Image with dust, scratches, or surface imperfections to restore
graintrue or falsefalseApply film grain effect to the output
grain_sizenumber (whole)
1 to 5
1Size of the grain particles from 1 to 5
grain_modelJSONsilver richType of grain to apply: silver rich (classic film look), gaussian (uniform noise), or grey (monochromatic grain)
grain_densitynumber (whole)
0 to 60
30Density of the grain particles from 0 to 60
output_formatJSONjpgOutput format
grain_strengthnumber (whole)
0 to 60
30Intensity of the grain effect from 0 to 60

Same request in code

curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "replicate",
    "model": "topazlabs/dust-and-scratch-v2",
    "input": {
      "image": "<image>"
    }
  }'