[Integrations](https://spiral.ai/integrations) › [Windsurf](https://spiral.ai/integrations/windsurf) › [NAFNet Denoise](https://spiral.ai/integrations/windsurf/nafnet-denoise)

# How to Use NAFNet Denoise in Windsurf

NAFNet Denoise reduces noise in existing photos, with research centered on smartphone images. Unlike NAFNet Deblur, it targets image noise rather than motion blur.

|  |  |
| --- | --- |
| Model | NAFNet Denoise |
| Available through | fal |
| Category | Image |
| Price | Up to $0.02925 per run at the default inputs. |
| Returns | image |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with NAFNet Denoise in Windsurf

- Use NAFNet Denoise on the noisy phone photos in public/photos. Save separate results and create an HTML comparison page with matching zoom levels.
- Use NAFNet Denoise on one representative product photo in this project. Show matching crops of the label, surface texture, and background before proposing replacements.
- Use NAFNet Denoise on the noisy interior photos selected for the property page. Keep the originals and compare furniture edges and wall areas in a review gallery.
- Use NAFNet Denoise to prepare candidates for the travel article's dusk photos. Add original-versus-result previews to a local review page at the article's display width.
- Use NAFNet Denoise on the three photographic assets I marked for cleanup. Record input and output dimensions and show enlarged detail crops alongside each result.

## How to set up NAFNet Denoise in Windsurf

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the server**: Open the Customize page from the Agents window and click MCPs. Under This computer, open the config file, or edit it directly: `~/.config/devin/mcp_config.json` on macOS and Linux, `%APPDATA%\devin\mcp_config.json` on Windows. Add this:

```json
{
  "mcpServers": {
    "spiral": {
      "url": "https://api.spiral.ai/mcp"
    }
  }
}
```

2. **Sign in**: Click Authenticate on the Spiral server in Customize › MCPs, or let the agent call Spiral once: your browser opens. Sign in to Spiral, pick the organization and click Authorize. No API key.

```bash
devin mcp login spiral
```

3. **Check it**: Spiral is listed under This computer in Customize › MCPs. From the terminal:

```bash
devin mcp list
```

### Use the Spiral skill

1. **Send Windsurf this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run NAFNet Denoise**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "fal",
    "model": "fal-ai/nafnet/denoise",
    "input": {
      "image_url": "https://storage.googleapis.com/falserverless/nafnet/noisy.png"
    }
  }'
```

Then paste one of the prompts above: Windsurf finds NAFNet Denoise on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/windsurf

## NAFNet Denoise tools and prices

- [NAFNet-denoise · Image to Image](https://spiral.ai/tools/fal/fal-ai/nafnet/denoise) (fal): Up to $0.02925 per run at the default inputs.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| seed |  | — | seed to be used for generation |

## What can you do with NAFNet Denoise in Windsurf?

Prepare denoised candidates for photographic assets in your project. Have the agent preserve originals and build a comparison view before you choose replacements.

### Smartphone photo cleanup

Denoise a noisy phone photo and compare enlarged crops before choosing the version to keep.

### Product photo review

Try noise reduction on product photos taken with a phone. Inspect packaging text, surface texture, and edges before using the result in a listing.

### Interior listing photos

Create denoised candidates from noisy room photos. Compare wall areas, furniture edges, and fabric details against the originals.

### Event photo selection

Test denoising on noisy indoor event photos. Review faces, hair, and clothing details before adding results to an album.

### Travel photo preparation

Try denoising phone photos taken at dusk. Review sky areas and distant details before selecting images for a travel story.

### Website photo preparation

Prepare denoised candidates for noisy photographic assets. Compare them at the intended display size and inspect enlarged details before replacing an original.

## Overview

- [fal](https://spiral.ai/providers/fal)
- [All Windsurf guides](https://spiral.ai/integrations/windsurf)

## NAFNet Denoise in other agents

- [Amp](https://spiral.ai/integrations/amp/nafnet-denoise)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/nafnet-denoise)
- [Claude](https://spiral.ai/integrations/claude-desktop/nafnet-denoise)
- [Claude Code](https://spiral.ai/integrations/claude-code/nafnet-denoise)
- [Cline](https://spiral.ai/integrations/cline/nafnet-denoise)
- [Codex](https://spiral.ai/integrations/codex/nafnet-denoise)
- [Cursor](https://spiral.ai/integrations/cursor/nafnet-denoise)
- [Devin](https://spiral.ai/integrations/devin/nafnet-denoise)
- [dots](https://spiral.ai/integrations/dots/nafnet-denoise)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/nafnet-denoise)
- [Gemini](https://spiral.ai/integrations/gemini/nafnet-denoise)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/nafnet-denoise)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/nafnet-denoise)
- [goose](https://spiral.ai/integrations/goose/nafnet-denoise)
- [Grok](https://spiral.ai/integrations/grok/nafnet-denoise)
- [Grok Build](https://spiral.ai/integrations/grok-build/nafnet-denoise)
- [Hermes](https://spiral.ai/integrations/hermes/nafnet-denoise)
- [Instinct](https://spiral.ai/integrations/instinct/nafnet-denoise)
- [Manus](https://spiral.ai/integrations/manus/nafnet-denoise)
- [Muse](https://spiral.ai/integrations/muse/nafnet-denoise)
- [Muse Code](https://spiral.ai/integrations/muse-code/nafnet-denoise)
- [n8n](https://spiral.ai/integrations/n8n/nafnet-denoise)
- [Notion](https://spiral.ai/integrations/notion/nafnet-denoise)
- [OpenClaw](https://spiral.ai/integrations/openclaw/nafnet-denoise)
- [opencode](https://spiral.ai/integrations/opencode/nafnet-denoise)
- [Perplexity](https://spiral.ai/integrations/perplexity/nafnet-denoise)
- [Raycast](https://spiral.ai/integrations/raycast/nafnet-denoise)
- [VS Code](https://spiral.ai/integrations/vscode/nafnet-denoise)
- [Zapier](https://spiral.ai/integrations/zapier/nafnet-denoise)

## More Windsurf guides

- [NAFNet Deblur](https://spiral.ai/integrations/windsurf/nafnet-deblur)
- [Nano Banana](https://spiral.ai/integrations/windsurf/nano-banana)
- [Muse Image Text to Image](https://spiral.ai/integrations/windsurf/muse-image-text-to-image)
- [Nano Banana 2](https://spiral.ai/integrations/windsurf/nano-banana-2)
- [Muse Image Edit](https://spiral.ai/integrations/windsurf/muse-image-edit)
- [Nano Banana 2 Image Editing](https://spiral.ai/integrations/windsurf/nano-banana-2-image-editing)

## Questions about NAFNet Denoise in Windsurf

**Can Windsurf use NAFNet Denoise?**

Yes. Add Spiral to Windsurf as an MCP server, and Windsurf can find and run NAFNet Denoise like any built-in tool.

**How much does NAFNet Denoise cost in Windsurf?**

Up to $0.02925 per run at the default inputs. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Windsurf plan is separate.

**Do I need a fal account to use NAFNet Denoise in Windsurf?**

No. Spiral runs NAFNet Denoise on its own fal account. You sign in to Spiral once and never paste a key.

**How long does it take to set up NAFNet Denoise in Windsurf?**

About two minutes: add the server, then sign in, then check it.

**Does Windsurf wait while NAFNet Denoise runs?**

NAFNet Denoise runs in the background. Windsurf starts the run, checks on it and gives you the image when it's ready.

**What photos are a good starting point for NAFNet Denoise?**

Start with noisy smartphone photos. The published RGB denoising evaluation uses SIDD, a dataset of real smartphone images captured under different lighting conditions.

**Can NAFNet Denoise fix motion blur?**

Use it for noise reduction. The official implementation uses a separate deblurring model, so deblurring results in the NAFNet paper do not establish what NAFNet Denoise can do.

**Does NAFNet Denoise upscale an image?**

The published denoising architecture returns the original image height and width. Treat it as restoration at the existing dimensions; super-resolution uses a separate model.

**How should I prompt an agent to use NAFNet Denoise?**

Identify the photo to denoise and ask for an original-versus-result comparison. The published network processes image pixels without text conditioning, so style descriptions do not steer its restoration.

**How should I judge the result?**

Compare the original and result at matching magnification, then zoom into fine details. Check whether the noise reduction is useful without accepting unwanted changes to texture or edges.

